client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Schedule(ctx context.Context, e core.Event) (core.ID, error)
	Unschedule(ctx context.Context, id core.ID) error
	OnEvent(ctx context.Context, topic string, cb func(core.Event), cbErr func(error)) (func(), error)
	ListenToEvent(ctx context.Context, topic string, cb func(core.Event)) error
	Close() error
}

func New

func New(addr string) (Client, error)

Jump to

Keyboard shortcuts

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