Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleaner ¶
Cleaner is an interface to be implemented by components that re-queue work assigned to dead workers
type Engine ¶
type Engine interface { // RegisterJob registers a new Job with the async engine RegisterJob(name string, fn model.JobFunction) error // SubmitTask submits an idempotent task to the async engine for reliable, // asynchronous completion SubmitTask(model.Task) error // Start causes the async engine to begin executing queued tasks Start(context.Context) error }
Engine is an interface for a broker-specifc framework for submitting and asynchronously completing provisioning and deprovisioning tasks.
type Heart ¶
type Heart interface { // Beat sends a single heartbeat Beat() error // Start sends heartbeats at regular intervals Start(context.Context) error }
Heart is an interface to be implemented by components that can send worker heartbeats
type Worker ¶
type Worker interface { // GetID returns the worker's ID GetID() string // RegisterJob registers a new Job with the worker RegisterJob(name string, fn model.JobFunction) error // Work causes the worker to begin completing tasks Work(context.Context) error }
Worker is an interface to be implemented by components that receive and asynchronously complete provisioning and deprovisioning tasks
Click to show internal directories.
Click to hide internal directories.