Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGenerator = func() string { id := uuid.NewV4() return id.String() }
Functions ¶
func AppFilePath ¶
func GenerateRandomBytes ¶
func GenerateRandomString ¶
func PanicOnError ¶
func PanicOnError(err error)
func RandomString ¶
Generate a random string of A-Z chars with len = l
Types ¶
type Config ¶
type Config struct { Host string `json:"host"` Port string `json:"port"` TestDB struct { Host string `json:"host"` User string `json:"user"` Password string `json:"password"` DbName string `json:"dbname"` } `json:"test-db"` LiveDB struct { Host string `json:"host"` User string `json:"user"` Password string `json:"password"` DbName string `json:"dbname"` } `json:"live-db"` Deployment string `json:"deployment"` S3host string `json:"s3-host"` }
func LoadConfig ¶
function for loading configuration file
type ConfigError ¶
type ConfigError struct{}
func (*ConfigError) Error ¶
func (*ConfigError) Error() string
Click to show internal directories.
Click to hide internal directories.