task

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TaskMap = map[string]Creator{}

Functions

func AddCronTask

func AddCronTask(name string, creator Creator)

Types

type CornTask

type CornTask interface {
	Run(ctx context.Context, col chan<- collector.Collector, args map[string]string)
}

type Creator

type Creator func() CornTask

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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