Documentation ¶
Index ¶
- func ConvertDateStrToTime(dateStr string) (time.Time, error)
- func ConvertIntToBool(value int) bool
- func GetBoolFromEnvWithDefault(enVarName string, defaultValue bool) bool
- func GetMultipleStringsFromEnvWithDefault(envVarName string, defaultValue []string) []string
- func GetNumberFromEnvWithDefault(envVarName string, defaultValue int) int
- func GetStringFromEnvWithDefault(enVarName, defaultValue string) string
- func MustBeNil(err error)
- func MustGetStringFromEnv(enVarName string) string
- func PanicIfNotNil(err error)
- func RandUUIDSeq() string
- func WithRetries(times int, f func() error) error
- type Neo4jConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDateStrToTime ¶
ConvertDateStrToTime converts a dateStr to a time.Time obj
func ConvertIntToBool ¶
ConvertIntToBool converts an integer to a bool (binary)
func GetBoolFromEnvWithDefault ¶
GetBoolFromEnvWithDefault parses an OS Environment Variable as bool
func GetNumberFromEnvWithDefault ¶
GetNumberFromEnvWithDefault returns default Value if OS Environment Variable is not set
func GetStringFromEnvWithDefault ¶
GetStringFromEnvWithDefault returns default Value if OS Environment Variable is not set
func MustGetStringFromEnv ¶
MustGetStringFromEnv panics if OS Environment Variable is not set
func WithRetries ¶
WithRetries calls f up to the given `times` and returns the last error if times is reached
Types ¶
type Neo4jConfig ¶
Neo4jConfig holds all necessary informations to connect to a neo4j database
func GetNeo4jConfig ¶
func GetNeo4jConfig() *Neo4jConfig
getNeo4jConfig returns a initialized Neo4jConfig object by reading the values from env variables