Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶ added in v0.1.1
func Bootstrap(configPtr interface{}) bool
Bootstrap - bootstraps the configuration loading, parsing and reporting for a service through cmd flags. The argument configPtr should be a pointer to a serializable configuration object with all default values.
Bootstrap allows a user to do the following: - Print version and build info and exit - Load an optional configuration file (supports JSON, YAML) - Print the config file (supports JSON, YAML) and exit
NOTE: The user may request a version and build time stamp, in which case Bootstrap will print the values of util.version and util.dateBuilt. To populate those values you must run go build with the following:
-ldflags "-X github.com/jeffail/leaps/util.version $(VERSION) \ -X github.com/jeffail/leaps/util.dateBuilt $(DATE)"
Returns a flag indicating whether the service should continue or not.
func GenerateStampedUUID ¶ added in v0.1.1
func GenerateStampedUUID() string
GenerateStampedGUID - Generates a UUID and prepends a timestamp to it.
func GenerateUUID ¶ added in v0.1.1
func GenerateUUID() string
GenerateUUID - Generates a UUID and returns it as a hex encoded string.
Types ¶
This section is empty.