schedulo

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimestampMode = core.TimestampMode
	CronMode      = core.TimestampMode
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(addr string) (Client, error)

type Event

type Event = core.Event

type ID

type ID = core.ID

Jump to

Keyboard shortcuts

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