Documentation
¶
Index ¶
- func SendAckToSender(senderId string, requestId uint32, messageId int64) error
- func SendToAll(cmd string, requestId uint32, data []byte)
- func TransferToReceiver(receiverId string, cmd string, requestId uint32, data []byte) error
- type Service
- func (s *Service) Ping(c context.Context, req *proto_build.PingRequest) (*proto_build.PingResponse, error)
- func (s *Service) Register(c context.Context, req *proto_build.RegisterRequest) (*proto_build.RegisterResponse, error)
- func (s *Service) SendMessage(stream proto_build.GatewayService_SendMessageServer) error
- func (s *Service) SendToAll(c context.Context, req *proto_build.SendToAllRequest) (*proto_build.SendToAllResponse, error)
- func (s *Service) UnRegister(c context.Context, req *proto_build.UnRegisterRequest) (*proto_build.UnRegisterResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendAckToSender ¶
Types ¶
type Service ¶
type Service struct { service.BasicService proto_build.UnimplementedGatewayServiceServer }
func NewService ¶
func (*Service) Ping ¶
func (s *Service) Ping(c context.Context, req *proto_build.PingRequest) (*proto_build.PingResponse, error)
func (*Service) Register ¶
func (s *Service) Register(c context.Context, req *proto_build.RegisterRequest) (*proto_build.RegisterResponse, error)
func (*Service) SendMessage ¶
func (s *Service) SendMessage(stream proto_build.GatewayService_SendMessageServer) error
func (*Service) SendToAll ¶
func (s *Service) SendToAll(c context.Context, req *proto_build.SendToAllRequest) (*proto_build.SendToAllResponse, error)
func (*Service) UnRegister ¶
func (s *Service) UnRegister(c context.Context, req *proto_build.UnRegisterRequest) (*proto_build.UnRegisterResponse, error)
Click to show internal directories.
Click to hide internal directories.