Documentation ¶
Index ¶
- func NewLogEventToConsoleFn(logFormat string) (func(e *eventspb.BusEvent), error)
- func ReadEvents(ctx context.Context, cancel context.CancelFunc, wg *sync.WaitGroup, ...) error
- func Run(batchSize uint, party, market, serverAddr, logFormat string, reconnect bool, ...) error
- func WaitSig(ctx context.Context, cancel func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogEventToConsoleFn ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.