Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleaner ¶
type Cleaner struct {
RunBehavior RunFunction
}
Cleaner is a fake implementation of async.Cleaner used for testing
func NewCleaner ¶
func NewCleaner() *Cleaner
NewCleaner returns a new, fake implementation of async.Cleaner used for testing
type Engine ¶
type Engine struct { SubmittedTasks map[string]model.Task RunBehavior RunFunction }
Engine is a fake implementation of async.Engine used for testing
func NewEngine ¶
func NewEngine() *Engine
NewEngine returns a new, fake implementation of async.Engine used for testing
func (*Engine) RegisterJob ¶
func (e *Engine) RegisterJob(name string, fn model.JobFunction) error
RegisterJob registers a new Job with the async engine
type Heart ¶
type Heart struct {
RunBehavior RunFunction
}
Heart is a fake implementation of async.Heart used for testing
type RunFunction ¶
RunFunction describes a function used to provide pluggable runtime behavior to various fake implementations of interfaces from the async package
type Worker ¶
type Worker struct {
RunBehavior RunFunction
}
Worker is a fake implementation of async.Worker used for testing
func NewWorker ¶
func NewWorker() *Worker
NewWorker returns a new, fake implementation of async.Worker used for testing
func (*Worker) RegisterJob ¶
func (w *Worker) RegisterJob(name string, fn model.JobFunction) error
RegisterJob registers a new Job with the worker