task

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v1.20.4

func Init() error

func Register added in v1.23.0

func Register(t Task)

func Start

func Start(ctx context.Context)

Types

type Rate added in v1.23.0

type Rate struct {
}

func (Rate) Sync added in v1.23.0

func (Rate) Sync(ctx context.Context)

type Task added in v1.23.0

type Task struct {
	Duration time.Duration
	Callback func(ctx context.Context)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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