engine

package
v0.0.0-...-33bb219 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package engine defines engines that calculate (or retrieve) what the demand for each task is

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	// GetDemand is responsible for setting up the new Demand in tasks. If demand has changed, send on demandUpdate
	GetDemand(tasks *demand.Tasks, demandUpdate chan struct{})

	// When the engine has cleaned itself up, it must close this demandUpdate channel
	StopDemand(demandUpdate chan struct{})
}

Engine determines what the demand should be for each task

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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