Documentation ¶
Overview ¶
Package grpc contains an implementation of the EventsServer, which is used to stream all events published for a set of identifiers.
Index ¶
- type EventsServer
- func (srv *EventsServer) FindRelated(ctx context.Context, req *ttnpb.FindRelatedEventsRequest) (*ttnpb.FindRelatedEventsResponse, error)
- func (srv *EventsServer) RegisterHandlers(s *grpc_runtime.ServeMux, conn *grpc.ClientConn)
- func (srv *EventsServer) RegisterServices(s *grpc.Server)
- func (*EventsServer) Roles() []ttnpb.ClusterRole
- func (srv *EventsServer) Stream(req *ttnpb.StreamEventsRequest, stream ttnpb.Events_StreamServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventsServer ¶
type EventsServer struct { ttnpb.UnimplementedEventsServer // contains filtered or unexported fields }
EventsServer streams events from a PubSub over gRPC.
func NewEventsServer ¶
func NewEventsServer(ctx context.Context, pubsub events.PubSub) *EventsServer
NewEventsServer returns a new EventsServer on the given PubSub.
func (*EventsServer) FindRelated ¶ added in v3.13.0
func (srv *EventsServer) FindRelated( ctx context.Context, req *ttnpb.FindRelatedEventsRequest, ) (*ttnpb.FindRelatedEventsResponse, error)
FindRelated implements the EventsServer interface.
func (*EventsServer) RegisterHandlers ¶
func (srv *EventsServer) RegisterHandlers(s *grpc_runtime.ServeMux, conn *grpc.ClientConn)
RegisterHandlers implements rpcserver.Registerer.
func (*EventsServer) RegisterServices ¶
func (srv *EventsServer) RegisterServices(s *grpc.Server)
RegisterServices implements rpcserver.Registerer.
func (*EventsServer) Roles ¶
func (*EventsServer) Roles() []ttnpb.ClusterRole
Roles implements rpcserver.Registerer.
func (*EventsServer) Stream ¶
func (srv *EventsServer) Stream(req *ttnpb.StreamEventsRequest, stream ttnpb.Events_StreamServer) error
Stream implements the EventsServer interface.
Click to show internal directories.
Click to hide internal directories.