ticker

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opt Options) task.Task

New creates new Ticker task

Types

type Options

type Options struct {
	Name         string
	TickInterval time.Duration
	TotalTime    time.Duration
}

Options to create new ticker task Name by default is "ticker"

type Ticker

type Ticker struct {
	TickInterval time.Duration
	TotalTime    time.Duration
}

Ticker task

func (Ticker) Run

func (t Ticker) Run(eventReporter reporter.EventReporter) ([]byte, error)

Run implements the runner interface to run the task

Jump to

Keyboard shortcuts

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