ticker

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskName = "ticker"
)

Variables

This section is empty.

Functions

func NewTicker

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

NewTicker returns a ticker as a tasker

Types

type Ticker

type Ticker struct {
	// contains filtered or unexported fields
}

Ticker struct

func (*Ticker) Handle

func (t *Ticker) Handle(handler func())

Handle ticker task

func (*Ticker) Run

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

Run ticker task

Jump to

Keyboard shortcuts

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