worker

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncWorker

type FuncWorker struct {
	Func         interface{} // 执行的函数
	CallbackFunc interface{} // 回调函数
	Name         string
}

func (FuncWorker) After added in v2.4.0

func (f FuncWorker) After(ctl *controller.TaskCtl, funcArgs []string, result *message.Result) error

func (FuncWorker) Run

func (f FuncWorker) Run(ctl *controller.TaskCtl, funcArgs []string, result *message.Result) error

func (FuncWorker) WorkerName

func (f FuncWorker) WorkerName() string

type WorkerInterface

type WorkerInterface interface {
	Run(ctl *controller.TaskCtl, funcArgs []string, result *message.Result) error
	WorkerName() string
	After(ctl *controller.TaskCtl, funcArgs []string, result *message.Result) error
}

Jump to

Keyboard shortcuts

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