broker

package
v0.0.0-...-3a513bd Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJobNotFound = errors.New("job not found")
)

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Consume(JobProcessor) error
	Stop()
	Schedule(*job.Job) error
	List() []*job.Job
	Get(jobID uuid.UUID) (*job.Job, error)
}

func NewMemoryBroker

func NewMemoryBroker() Broker

type JobProcessor

type JobProcessor interface {
	Process(*job.Job) (bool, error)
	GetCapabilities() []string
	Stopped() <-chan struct{}
}

Jump to

Keyboard shortcuts

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