scheduler

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCHEDULER_RUN  = "run"
	SCHEDULER_STOP = "stop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(opts *Options)

func WithNode

func WithNode(node *node.Node) Option

type Options

type Options struct {
	Node *node.Node
}

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (s *Scheduler)

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context) (err error)

func (*Scheduler) Stop

func (s *Scheduler) Stop()

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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