evtclient

package
v0.0.0-...-2bb1cf3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCLI

type ClientCLI struct{}

ClientCLI gathers the event-related client actions available at the command line.

func (*ClientCLI) DoAck

func (cfg *ClientCLI) DoAck(ctx context.Context, UserID, evtID string, when uint64) error

DoAck consumes a message whose owner, timestamp and ID are described on the command line. FIXME(jfsmig): no retry is performed upon error

func (*ClientCLI) DoList

func (cfg *ClientCLI) DoList(ctx context.Context, UserID string, when uint64, marker string, max uint32) error

DoList dumps to os.Stdout the Event objects streamed by the contacted service. The output consists in a JSON stream of objects separated by a CRLF (i.e. one object per line) FIXME(jfsmig): no retry is performed upon error

func (*ClientCLI) DoPush

func (cfg *ClientCLI) DoPush(ctx context.Context, UserID string, msg ...string) error

DoPush insert an event whose content and target are described on the command line. A descriptive error is returned in case of failure. FIXME(jfsmig): no retry is performed upon error

Jump to

Keyboard shortcuts

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