package
0.0.0-20200320093016-5792dde6b87e
Repository: https://github.com/teserakt-io/serverlib.git
Documentation: pkg.go.dev
# Functions
NewViperLoader creates a new configuration loader using Viper It will attempt to load file identified by configName (without extension) in pathResolver.ConfigDir().
# Constants
DBSecureConnectionEmpty defines an empty DBSecureConnectionType.
DBSecureConnectionEnabled is used to enable SSL on the database connection.
DBSecureConnectionInsecure is used to disable SSL on database connection.
DBSecureConnectionSelfSigned is used to allow SSL self signed certificates on the database connection.
DBTypeEmpty defines an empty database type.
DBTypePostgres defines the PostgreSQL database type.
DBTypeSQLite defines the SQLite database type.
PostgresSSLModeDisable is used to disable encryption on postgres.
PostgresSSLModeFull is used to enable full certificate checks on postgres.
PostgresSSLModeRequire is used to allow self signed certificates on postgres.
ViperBool defines a viper type for a bool.
ViperDBSecureConnection defines a viper type for a DBSecureConnectionType.
ViperDBType defines a viper type for a DBType.
ViperInt defines a viper type for an int.
ViperRelativePath defines a relative string path representation, from the config file location.
ViperString defines a viper type for a string.
ViperStringSlice defines a viper type for a []string.
# Structs
ViperCfgField defines a struct to instruct viper what and how to load configuration data.
# Interfaces
Loader defines a service able to load configuration.
# Type aliases
DBSecureConnectionType defines the different database connection security options.
DBType defines the different supported database types.
ViperType allow to instruct viper how to cast the loaded values.