taskfactory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTaskConfigByName

func GetTaskConfigByName(name string) (define.TaskMetaConfig, error)

GetTaskConfigByName :

func New

func New(globalConf define.Config, taskConf define.TaskConfig) define.Task

New :

func Register

func Register(name string, f taskNew)

Register :

func SetTaskConfigByName

func SetTaskConfigByName(name string, taskFunc ConfigFunc)

SetTaskConfigByName :

Types

type ConfigFunc

type ConfigFunc func() define.TaskMetaConfig

ConfigFunc :

Jump to

Keyboard shortcuts

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