interval

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntervalTask

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

func NewTask

func NewTask(name string, d time.Duration, mode TaskMode, doOnce bool, onExpired OnExpired) *IntervalTask

func (*IntervalTask) Bytes

func (task *IntervalTask) Bytes() []byte

func (*IntervalTask) Do

func (task *IntervalTask) Do() *IntervalTask

func (*IntervalTask) Stop

func (task *IntervalTask) Stop() bool

type OnExpired

type OnExpired func(serializer common.Serializer) []byte

type TaskMode

type TaskMode uint8
const (
	Once TaskMode = iota
	Loop
)

Jump to

Keyboard shortcuts

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