grpchelper

package
v0.0.0-...-f65cdbb Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrListeningData  = errors.New("error")
	ErrPublishingData = errors.New("error")
)

Functions

This section is empty.

Types

type GrpcBroadcaster

type GrpcBroadcaster[T, S proto.Message] struct {
	// contains filtered or unexported fields
}

func NewBroadcaster

func NewBroadcaster[T, S proto.Message](ctx context.Context) *GrpcBroadcaster[T, S]

func (*GrpcBroadcaster[T, S]) Broadcast

func (b *GrpcBroadcaster[T, S]) Broadcast(_ context.Context, value S, utype pb.UpdateType) error

func (*GrpcBroadcaster[T, S]) RcvAndDispatchUpdates

func (b *GrpcBroadcaster[T, S]) RcvAndDispatchUpdates(ctx context.Context, s grpc.ServerStream) error

func (*GrpcBroadcaster[T, S]) Start

func (b *GrpcBroadcaster[T, S]) Start()

func (*GrpcBroadcaster[T, S]) Stop

func (b *GrpcBroadcaster[T, S]) Stop() error

Jump to

Keyboard shortcuts

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