stream

package
v0.77.10 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: AGPL-3.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogEventToConsoleFn

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

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

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