Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) BatchQuery(ctx context.Context, req *proto.BatchQueryRequest) (*proto.BatchQueryResponse, error)
- func (s *Service) Close()
- func (s *Service) HandleIncomingWakuRelayMessage(msg *wakupb.WakuMessage) error
- func (s *Service) Publish(ctx context.Context, req *proto.PublishRequest) (*proto.PublishResponse, error)
- func (s *Service) Query(ctx context.Context, req *proto.QueryRequest) (*proto.QueryResponse, error)
- func (s *Service) Subscribe(req *proto.SubscribeRequest, stream proto.MessageApi_SubscribeServer) error
- func (s *Service) Subscribe2(stream proto.MessageApi_Subscribe2Server) error
- func (s *Service) SubscribeAll(req *proto.SubscribeAllRequest, stream proto.MessageApi_SubscribeAllServer) error
Constants ¶
View Source
const ( MaxContentTopicNameSize = 300 // 1048576 - 300 - 62 = 1048214 MaxMessageSize = pubsub.DefaultMaxMessageSize - MaxContentTopicNameSize - 62 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
proto.UnimplementedMessageApiServer
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) BatchQuery ¶
func (s *Service) BatchQuery( ctx context.Context, req *proto.BatchQueryRequest, ) (*proto.BatchQueryResponse, error)
func (*Service) HandleIncomingWakuRelayMessage ¶
func (s *Service) HandleIncomingWakuRelayMessage(msg *wakupb.WakuMessage) error
func (*Service) Publish ¶
func (s *Service) Publish( ctx context.Context, req *proto.PublishRequest, ) (*proto.PublishResponse, error)
func (*Service) Query ¶
func (s *Service) Query( ctx context.Context, req *proto.QueryRequest, ) (*proto.QueryResponse, error)
func (*Service) Subscribe ¶
func (s *Service) Subscribe( req *proto.SubscribeRequest, stream proto.MessageApi_SubscribeServer, ) error
func (*Service) Subscribe2 ¶
func (s *Service) Subscribe2(stream proto.MessageApi_Subscribe2Server) error
func (*Service) SubscribeAll ¶
func (s *Service) SubscribeAll( req *proto.SubscribeAllRequest, stream proto.MessageApi_SubscribeAllServer, ) error
Click to show internal directories.
Click to hide internal directories.