scheduler

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 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)

Option is function thant sets Options

type Options

type Options struct {
	Node *node.Node
}

Options for configure scheduler

type Scheduler

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

Scheduler schedule the pipeline. allocate the pipeline to the appropriate node for operation

func New

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

New returns a new Scheduler

func (*Scheduler) Run

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

Run start working

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop stop working

type Watcher

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

Watcher watch changes

Jump to

Keyboard shortcuts

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