idle

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TaskName task name
	TaskName = "idle"
)

Variables

This section is empty.

Functions

func NewIdle

func NewIdle(params map[string]string) (task.Tasker, error)

NewIdle returns an idle task

Types

type Idle

type Idle struct{}

Idle struct

func (*Idle) Handle

func (t *Idle) Handle(handler func())

Handle task trigger

func (*Idle) Run

func (t *Idle) Run(ctx context.Context)

Run task

Jump to

Keyboard shortcuts

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