Documentation ¶
Index ¶
- Variables
- func Get(path, file, env, configType string, cfg interface{}) error
- func GetCustomForDefaultPath(configType string, cfg interface{}) error
- func GetWithAbsolutePath(path, file, configType string, cfg interface{}, notifier Notify) error
- func LookupEnvOrDefault(key string, defaultVal string) string
- type DefaultConfig
- type GRPC
- type GRPCClient
- type HTTP
- type Kafka
- type MaskedString
- type Metrics
- type NOSQLDB
- type Notify
- type SQLDB
- type Service
- type Tracing
Constants ¶
This section is empty.
Variables ¶
View Source
var Environments = map[string]string{
"local": "local",
"staging": "staging",
"production": "production",
}
Functions ¶
func GetCustomForDefaultPath ¶ added in v0.0.10
func GetWithAbsolutePath ¶ added in v0.0.9
func LookupEnvOrDefault ¶ added in v0.0.10
Types ¶
type DefaultConfig ¶ added in v0.0.7
type DefaultConfig struct { Service Service HTTP HTTP GRPC GRPC Tracing Tracing Metrics Metrics SqlDB SQLDB NoSqlDB NOSQLDB }
func GetDefault ¶ added in v0.0.9
func GetDefault() (DefaultConfig, error)
type Kafka ¶ added in v0.0.7
type Kafka struct { TopicPrefix string Broker string Key MaskedString Secret MaskedString }
type MaskedString ¶ added in v0.0.7
type MaskedString string
func (MaskedString) MarshalJSON ¶ added in v0.0.7
func (s MaskedString) MarshalJSON() ([]byte, error)
func (MaskedString) String ¶ added in v0.0.7
func (s MaskedString) String() string
String implements the fmt.Stringer interface.
func (MaskedString) Unmask ¶ added in v0.0.7
func (s MaskedString) Unmask() string
type SQLDB ¶ added in v0.0.7
type SQLDB struct { User string Password MaskedString Host string Port string Database string }
Click to show internal directories.
Click to hide internal directories.