// Code generated by goctl. DO NOT EDIT! // Source: flowsrv.proto package server import ( "context" "ylink/comm/kafka" "ylink/flowsrv/rpc/internal/logic" "ylink/flowsrv/rpc/internal/svc" "ylink/flowsrv/rpc/pb" ) type FlowsrvServer struct { svcCtx *svc.ServiceContext pb.UnimplementedFlowsrvServer ConsumerGroup *kafka.ConsumerGroup } func NewFlowsrvServer(svcCtx *svc.ServiceContext) *FlowsrvServer { return &FlowsrvServer{ svcCtx: svcCtx, } } func (s *FlowsrvServer) Connect(in *pb.CommandReq, stream pb.Flowsrv_ConnectServer) error { l := logic.NewConnectLogic(stream.Context(), s.svcCtx) return l.Connect(in, stream) } func (s *FlowsrvServer) Disconnect(ctx context.Context, in *pb.CommandReq) (*pb.CommandResp, error) { l := logic.NewDisconnectLogic(ctx, s.svcCtx) return l.Disconnect(in) }