heartbeat

package
v0.0.0-...-0637115 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron struct{}

func (Cron) NewCronJob

func (c Cron) NewCronJob(month, day, weekday, hour, minute, second int8, task func(time.Time))

type Croner

type Croner interface {
	NewCronJob(month, day, weekday, hour, minute, second int8, task func(time.Time))
}

type Heartbeat

type Heartbeat struct {
	Croner
	// contains filtered or unexported fields
}

func (*Heartbeat) Process

func (x *Heartbeat) Process(e transistor.Event) error

func (*Heartbeat) Start

func (x *Heartbeat) Start(e chan transistor.Event) error

func (*Heartbeat) Stop

func (x *Heartbeat) Stop()

func (*Heartbeat) Subscribe

func (x *Heartbeat) Subscribe() []string

Jump to

Keyboard shortcuts

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