Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRNG ¶
func InitRNG() error
InitRNG will grab some cryptographically secure bytes to use as the seed for the non-crypto random number generator. Suggested on StackOverflow to avoid time-based seeds: https://stackoverflow.com/a/54491783
func InitSignalHandler ¶
Types ¶
type BaseConfig ¶
type BaseConfig struct { Ctx context.Context Cancel func() ConfigMap gosimpleconf.ConfigMap }
func Initialize ¶
func Initialize(configFile string, defaultConfig gosimpleconf.ConfigMap) (*BaseConfig, error)
Initialize will configure all of the base stuff that we want commonly set up at the beginning of a Go project.
Click to show internal directories.
Click to hide internal directories.