flowsrvserver.go 574 B

1234567891011121314151617181920212223242526
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: flowsrv.proto
  3. package server
  4. import (
  5. "ylink/flowsrv/rpc/internal/logic"
  6. "ylink/flowsrv/rpc/internal/svc"
  7. "ylink/flowsrv/rpc/pb"
  8. )
  9. type FlowsrvServer struct {
  10. svcCtx *svc.ServiceContext
  11. pb.UnimplementedFlowsrvServer
  12. }
  13. func NewFlowsrvServer(svcCtx *svc.ServiceContext) *FlowsrvServer {
  14. return &FlowsrvServer{
  15. svcCtx: svcCtx,
  16. }
  17. }
  18. func (s *FlowsrvServer) Connect(in *pb.CommandReq, stream pb.Flowsrv_ConnectServer) error {
  19. l := logic.NewConnectLogic(stream.Context(), s.svcCtx)
  20. return l.Connect(in, stream)
  21. }