Documentation
¶
Index ¶
Constants ¶
View Source
const ( QUEUE_SIZE = 10 WORKER_NUM = 8 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(pool *ExecutorPool) *Executor
func (*Executor) CancelTask ¶
func (executor *Executor) CancelTask()
type ExecutorPool ¶
type ExecutorPool struct {
// contains filtered or unexported fields
}
var OCS_EXECUTOR_POOL *ExecutorPool
func NewExecutorPool ¶
func NewExecutorPool() *ExecutorPool
func (*ExecutorPool) AddTask ¶
func (pool *ExecutorPool) AddTask(taskID int64)
func (*ExecutorPool) CancelTask ¶
func (pool *ExecutorPool) CancelTask(taskID int64)
func (*ExecutorPool) RemoveTask ¶
func (pool *ExecutorPool) RemoveTask(taskID int64)
func (*ExecutorPool) Start ¶
func (pool *ExecutorPool) Start()
func (*ExecutorPool) Stop ¶
func (pool *ExecutorPool) Stop()
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
var OCS_SYNCHRONIZER *Synchronizer
func NewSynchronizer ¶
func NewSynchronizer(coordinator *coordinator.Coordinator) *Synchronizer
func (*Synchronizer) Restart ¶
func (synchronizer *Synchronizer) Restart()
func (*Synchronizer) Start ¶
func (synchronizer *Synchronizer) Start()
func (*Synchronizer) Stop ¶
func (synchronizer *Synchronizer) Stop() *context.Context
func (*Synchronizer) Sync ¶
func (synchronizer *Synchronizer) Sync()
Click to show internal directories.
Click to hide internal directories.