grpc

package
v3.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package grpc contains an implementation of the EventsServer, which is used to stream all events published for a set of identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsServer

type EventsServer struct {
	// 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

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

Stream implements the EventsServer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL