123456789101112131415161718192021222324252627282930313233 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: flowsrv.proto
- package server
- import (
- "context"
- "ylink/flowsrv/rpc/internal/logic"
- "ylink/flowsrv/rpc/internal/svc"
- "ylink/flowsrv/rpc/pb"
- )
- type FlowsrvServer struct {
- svcCtx *svc.ServiceContext
- pb.UnimplementedFlowsrvServer
- }
- 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)
- }
|