grpc

package
v3.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 14 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) 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 (srv *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