Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ForceDisableTls bool
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { Proto *viperpb.ViperProto Validator *validator.Validate // contains filtered or unexported fields }
func NewViperConfig ¶ added in v0.0.17
NewViperConfig returns a Config struct with the viper instance key representing a subtree of this instance. NewViperConfig is case-insensitive for a key.
func (*Config) Complete ¶
func (c *Config) Complete() CompletedConfig
Complete fills in any fields not set that are required to have valid data and can be derived from other fields. If you're going to ApplyOptions, do that first. It's mutating the receiver. ApplyOptions is called inside.
Click to show internal directories.
Click to hide internal directories.