Documentation ¶
Index ¶
- Constants
- func GetComponentEntryTimestampFromConsul(key string) (string, string, string)
- func GetComponentsMapFromKeysList(keys []string) map[string]bool
- func GetEntriesMapOfComponentFromKeysList(component string, keys []string) map[string]bool
- func GetLatestTimestamp(keys []string, component string, entry string) (timestamp string, err error)
- func GetTimestampInFormat(timestamp string, timeFormat string) (string, error)
- func IsInputCompEntryTsValid(input string) bool
- func IsInputSingleValidWord(input string) bool
Constants ¶
View Source
const (
ConfigComponentsPath = "o2/components/"
)
Variables ¶
This section is empty.
Functions ¶
func GetComponentEntryTimestampFromConsul ¶
Method to split component, entry and timestamp when being passed a key from consul e.g. of key o2/components/quality-control/cru-demo/12345678
func GetLatestTimestamp ¶
func GetLatestTimestamp(keys []string, component string, entry string) (timestamp string, err error)
Method to return the latest timestamp for a specified component & entry If no keys were passed an error and code exit 3 will be returned
func GetTimestampInFormat ¶
Method to parse a timestamp in the specified format
func IsInputCompEntryTsValid ¶
func IsInputSingleValidWord ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.