scheduler

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTaskNotFound = errors.New("Task not found.")
View Source
var ErrTaskStatusNotFound = errors.New("Task status not found.")

Functions

func RegisterScheduler

func RegisterScheduler(name string, new_ NewScheduler, args []Args)

Types

type Args

type Args struct {
	Name        string
	Default     interface{}
	Description string
}

func AllArgs

func AllArgs() []Args

type NewScheduler

type NewScheduler func() (Scheduler, error)

func Get

func Get(name string) (NewScheduler, bool)

type Scheduler

type Scheduler interface {
	LookupTask(string) (Task, error)
}

type Task

type Task interface {
	Id() string
	Group() string
	Name() string
	Image() string
	IP() net.IP
	StartTime() time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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