package
Version:
v0.0.0-...-b01a1fc
Opens a new window with list of versions in this module.
Published: Jun 25, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package util - contains a collection of different functions used across all Retrieval Provider instances.
Utility function like ones to work with time, process lifetime and binary versioning.
func SetMockedClock(fakeTime int64)
SetMockedClock sets a fake timer
SetRealClock ensures the real clock is in use
func SetUpCtrlCExit(gracefulExit func())
SetUpCtrlCExit configures the program such that when Control-C is hit, gracefulExit is called, followed by program exit.
type Clock interface {
Now() time.Time
}
Clock allows the time.Now to be mocked out for testing
GetTimeImpl returns the implementation of clock to use.
Source Files
¶
Directories
¶
Package settings - holds configuration specific to a Retrieval Provider node.
|
Package settings - holds configuration specific to a Retrieval Provider node. |
Click to show internal directories.
Click to hide internal directories.