startup

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 1 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

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

Timer contains references to dependencies required by the startup timer implementation.

func NewStartUpTimer

func NewStartUpTimer(retryIntervalInSeconds, maxWaitInSeconds int) Timer

NewStartUpTimer is a factory method that returns an initialized Timer receiver struct.

func (Timer) HasNotElapsed

func (t Timer) HasNotElapsed() bool

HasNotElapsed returns whether or not the duration specified during construction has elapsed.

func (Timer) SinceAsString

func (t Timer) SinceAsString() string

SinceAsString returns the time since the timer was created as a string.

func (Timer) SleepForInterval

func (t Timer) SleepForInterval()

SleepForInterval pauses execution for the interval specified during construction.

func (Timer) UpdateTimer

func (t Timer) UpdateTimer(maxWaitInSeconds int, retryIntervalInSeconds int)

Update the wait/interval for the timer,

Jump to

Keyboard shortcuts

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