package startup
import "github.com/edgexfoundry/go-mod-bootstrap/bootstrap/startup"
Index ¶
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer contains references to dependencies required by the startup timer implementation.
func NewStartUpTimer ¶
NewStartUpTimer is a factory method that returns an initialized Timer receiver struct.
func NewTimer ¶
NewTimer is a factory method that returns a Timer initialized with passed in duration and interval.
func (Timer) HasNotElapsed ¶
HasNotElapsed returns whether or not the duration specified during construction has elapsed.
func (Timer) RemainingAsString ¶
RemainingAsString returns the time remaining on the timer as a string.
func (Timer) SinceAsString ¶
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.
Source Files ¶
- Version
- v0.0.72 (latest)
- Published
- Jan 19, 2021
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 5 days ago –
Tools for package owners.