scheduler

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotUniqueTaskName = errors.New("not unique task name")
	ErrNilHandler        = errors.New("handler func is nil")
)

Functions

This section is empty.

Types

type EtcdOptions

type EtcdOptions struct {
	Endpoints   []string
	LogWarnings bool
}

type Options

type Options struct {
	Etcd    EtcdOptions
	LockTTL time.Duration
	Timeout time.Duration
}

type Scheduler

type Scheduler interface {
	Every(count ...uint) *builder.Builder
}

func New

func New(logger logger.Logger, opts *Options) (Scheduler, error)

Directories

Path Synopsis
mock
Package mock_builder is a generated GoMock package.
Package mock_builder is a generated GoMock package.
log15adapter
Package log15adapter provides a logger that writes to a github.com/inconshreveable/log15.Logger log.
Package log15adapter provides a logger that writes to a github.com/inconshreveable/log15.Logger log.
logrusadapter
Package logrusadapter provides a logger that writes to a github.com/sirupsen/logrus.Logger log.
Package logrusadapter provides a logger that writes to a github.com/sirupsen/logrus.Logger log.
zapadapter
Package zapadapter provides a logger that writes to a go.uber.org/zap.Logger.
Package zapadapter provides a logger that writes to a go.uber.org/zap.Logger.
zerologadapter
Package zerologadapter provides a logger that writes to a github.com/rs/zerolog.
Package zerologadapter provides a logger that writes to a github.com/rs/zerolog.

Jump to

Keyboard shortcuts

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