periodic

package
v0.0.0-...-e98602f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, ec *config.Config, hc *hconfig.Config, sc *storage.Client, intervals []Interval)

Types

type Interval

type Interval struct {
	Start time.Duration
	End   time.Duration
}

func NewInterval

func NewInterval(s string) (Interval, error)

HH:MM:SS-HH:MM:SS

type Ticker

type Ticker struct {
	C <-chan time.Duration
	// contains filtered or unexported fields
}

func NewTicker

func NewTicker(starts []time.Duration, loc *time.Location) *Ticker

func (*Ticker) Stop

func (t *Ticker) Stop()

Jump to

Keyboard shortcuts

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