Documentation ¶
Index ¶
- type TaskListener
- type TaskTracer
- func (tc *TaskTracer) FailTask(tid string, info string) bool
- func (tc *TaskTracer) FinishTask(tid string) bool
- func (tc *TaskTracer) NewListener(ctx context.Context) *TaskListener
- func (tc *TaskTracer) NewTask(tid string) error
- func (tc *TaskTracer) NewTaskByNum(tid string, tasknum uint) error
- func (tc *TaskTracer) NewTaskGroup(params map[string]string, tasknum uint) (string, bool, error)
- func (tc *TaskTracer) RemoveTaskGroup(tid string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskListener ¶
type TaskListener struct {
// contains filtered or unexported fields
}
func (*TaskListener) CloseChan ¶
func (tl *TaskListener) CloseChan()
type TaskTracer ¶
type TaskTracer struct {
// contains filtered or unexported fields
}
func NewTaskTracer ¶
func NewTaskTracer(redis *drivers.RedisPool, tracerchan string) *TaskTracer
func (*TaskTracer) FinishTask ¶
func (tc *TaskTracer) FinishTask(tid string) bool
func (*TaskTracer) NewListener ¶
func (tc *TaskTracer) NewListener(ctx context.Context) *TaskListener
func (*TaskTracer) NewTask ¶
func (tc *TaskTracer) NewTask(tid string) error
func (*TaskTracer) NewTaskByNum ¶
func (tc *TaskTracer) NewTaskByNum(tid string, tasknum uint) error
func (*TaskTracer) NewTaskGroup ¶
func (*TaskTracer) RemoveTaskGroup ¶
func (tc *TaskTracer) RemoveTaskGroup(tid string) error
Click to show internal directories.
Click to hide internal directories.