tasktracer

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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()

func (*TaskListener) WaitFor

func (tl *TaskListener) WaitFor(ctx context.Context, tid string) error

type TaskTracer

type TaskTracer struct {
	// contains filtered or unexported fields
}

func NewTaskTracer

func NewTaskTracer(redis *drivers.RedisPool, tracerchan string) *TaskTracer

func (*TaskTracer) FailTask

func (tc *TaskTracer) FailTask(tid string, info string) bool

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 (tc *TaskTracer) NewTaskGroup(params map[string]string, tasknum uint) (string, bool, error)

func (*TaskTracer) RemoveTaskGroup

func (tc *TaskTracer) RemoveTaskGroup(tid string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL