Documentation ¶
Index ¶
- Constants
- Variables
- func HasTask(taskID string) bool
- func Submit(cfg *task.Cfg) (*task.Task, error)
- func SubmitAndWait(cfg *task.Cfg) (*task.Task, error)
- func TrySubmit(cfg *task.Cfg) (*task.Task, bool, error)
- type Cfg
- type Taskd
- func (td *Taskd) GetCfg() interface{}
- func (td *Taskd) HasTask(taskID string) bool
- func (td *Taskd) Init() error
- func (td *Taskd) Start() error
- func (td *Taskd) Stop() error
- func (td *Taskd) Submit(taskCfg *task.Cfg) (*task.Task, error)
- func (td *Taskd) SubmitAndWait(taskCfg *task.Cfg) (*task.Task, error)
- func (td *Taskd) TrySubmit(taskCfg *task.Cfg) (*task.Task, bool, error)
- func (td *Taskd) Type() interface{}
Constants ¶
View Source
const ( DefaultPoolSize = 5 DefaultQueueSize = 1024 )
View Source
const DaemonTypeTaskd boot.DaemonType = "taskd"
Variables ¶
View Source
var ( ErrStopping = errors.New("stopping, reject") ErrTaskAlreadyExists = errors.New("task already exists") )
Functions ¶
Types ¶
type Cfg ¶
Click to show internal directories.
Click to hide internal directories.