scheduler

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTaskNotFound = errors.New("Task 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