stream

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogEventToConsoleFn added in v0.53.0

func NewLogEventToConsoleFn(logFormat string) (func(e *eventspb.BusEvent), error)

NewLogEventToConsoleFn returns a common logging function for use across tools that deal with events

func ReadEvents added in v0.53.0

func ReadEvents(
	ctx context.Context,
	cancel context.CancelFunc,
	wg *sync.WaitGroup,
	batchSize uint,
	party, market, serverAddr string,
	handleEvent func(event *eventspb.BusEvent),
	reconnect bool,
	types []string,
) error

ReadEvents reads all the events from the server

func Run

func Run(
	batchSize uint,
	party, market, serverAddr, logFormat string,
	reconnect bool,
	types []string,
) error

Run is the main function of `stream` package

func WaitSig added in v0.53.0

func WaitSig(ctx context.Context, cancel func())

WaitSig waits until Terminate or interrupt event is received

Types

This section is empty.

Jump to

Keyboard shortcuts

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