taskrunner

package
v0.0.0-...-cbae104 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	READY_TO_DISPATCH = "d"
	READY_TO_EXECUTE  = "e"
	CLOSE             = "c"

	VIDEO_PATH = "./videos/"
)

Variables

This section is empty.

Functions

func Start

func Start()

func VideoClearDispatcher

func VideoClearDispatcher(dc dataChan) error

func VideoClearExecutor

func VideoClearExecutor(dc dataChan) error

Types

type Runner

type Runner struct {
	Controller controlChan
	Error      controlChan
	Data       dataChan

	Dispatcher fn
	Executor   fn
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(size int, longlived bool, d fn, e fn) *Runner

func (*Runner) StartAll

func (r *Runner) StartAll()

type Worker

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

func NewWorker

func NewWorker(interval time.Duration, r *Runner) *Worker

Jump to

Keyboard shortcuts

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