timer

package
v0.0.0-...-cc682f1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(attempts int, waitTime time.Duration, gf GenRetryFunc) error

Retry executes the given function for the specified number of retry attempts.

func ScheduleWork

func ScheduleWork(tickerDuration time.Duration, l logr.Logger, gsf GenSchedFunc, timeparm time.Duration)

Starts ticker task to run custom work.

Types

type GenRetryFunc

type GenRetryFunc func() (bool, error)

GenFunc is a generic retriable function

type GenSchedFunc

type GenSchedFunc func(timeparm time.Duration)

GenSchedFunc is a generic scheduleable function

Jump to

Keyboard shortcuts

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