taskrunner

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

* @Descripttion: * @version: * @Author: congsir * @Date: 2022-01-14 14:59:52 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-01-18 12:22:12

* @Descripttion: * @version: * @Author: congsir * @Date: 2022-01-14 14:59:12 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-01-14 17:48:22

* @Descripttion: * @version: * @Author: congsir * @Date: 2022-01-14 14:59:21 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-01-18 17:57:41

* @Descripttion: * @version: * @Author: congsir * @Date: 2022-01-14 14:59:31 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-01-18 10:27:03

Index

Constants

View Source
const (
	READY_TO_DISPATCH = "d"
	READY_TO_EXECUTE  = "e"
	CLOSE             = "c"
	VIDEO_PATH        = "../streamserver/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