Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAvailableWorkers = errors.New("No available workers")
errors
View Source
var WorkerFactorySingleton = Factory{}
global singleton
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator interface {
// allocate a worker
Allocate(timeout time.Duration) (*Worker, error)
// release a worker
Release(worker *Worker)
Shareable() bool
// get direct access to all workers for things like management / housekeeping
GetWorkers() []*Worker
}
type Statistics ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) GetRuntime ¶
func (*Worker) GetStatistics ¶
func (w *Worker) GetStatistics() *Statistics
Click to show internal directories.
Click to hide internal directories.