Documentation ¶
Index ¶
- type Dispatcher
- type DispatcherBuilder
- type Memory
- func (m *Memory) AddTask(task tasks.Task)
- func (m *Memory) EndWorker()
- func (m *Memory) ForwardTask(task tasks.Task)
- func (m *Memory) SetStatus(taskId, taskSubId, status int)
- func (m *Memory) StartWorker()
- func (m *Memory) Status(taskId int) int
- func (m *Memory) WaitForTasks()
- func (m *Memory) WaitForWorkers()
- type Observer
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func (*Dispatcher) AddTask ¶
func (d *Dispatcher) AddTask(task tasks.Task)
func (*Dispatcher) Status ¶ added in v0.6.1
func (d *Dispatcher) Status(taskId int) int
func (*Dispatcher) Wait ¶
func (d *Dispatcher) Wait()
type DispatcherBuilder ¶
type DispatcherBuilder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶ added in v0.6.1
func NewBuilder() *DispatcherBuilder
func (*DispatcherBuilder) Build ¶
func (db *DispatcherBuilder) Build() (Dispatcher, error)
func (*DispatcherBuilder) WithConsole ¶
func (db *DispatcherBuilder) WithConsole() *DispatcherBuilder
func (*DispatcherBuilder) WithLogfile ¶
func (db *DispatcherBuilder) WithLogfile(filename string) *DispatcherBuilder
func (*DispatcherBuilder) WithWorkerNumber ¶
func (db *DispatcherBuilder) WithWorkerNumber(count int) *DispatcherBuilder
type Memory ¶ added in v0.6.1
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) ForwardTask ¶ added in v0.6.1
func (*Memory) StartWorker ¶ added in v0.6.1
func (m *Memory) StartWorker()
func (*Memory) WaitForTasks ¶ added in v0.6.1
func (m *Memory) WaitForTasks()
func (*Memory) WaitForWorkers ¶ added in v0.6.1
func (m *Memory) WaitForWorkers()
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
func (*Observer) WithConsole ¶
func (o *Observer) WithConsole()
Click to show internal directories.
Click to hide internal directories.