package
Version:
v1.4.8
Opens a new window with list of versions in this module.
Published: Mar 22, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func RegisterTasker(name string, fn generator)
RegisterTasker register an tasker to manager
Option task option
WithAddKV wrap the key and value to an option
type Tasker interface {
Run(ctx context.Context)
Handle(handler func())
}
Tasker interface
GenerateTasker generate an tasker by name from manager
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.