package
Version:
v0.0.0-...-bd35244
Opens a new window with list of versions in this module.
Published: Feb 1, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package config provides a common infrastructure for reading configuration
data stored in local TOML files.
Read takes the TOML configuration file at `path`, parses it into `dest` and
then uses github.com/asaskevich/govalidator to validate the struct.
type InvalidConfigError struct {
InvalidFields map[string]string
}
InvalidConfigError is the error that is returned when an invalid
configuration is encountered by the `Read` func.
type TLS struct {
CertificateFile string `toml:"certificate-file" valid:"required"`
PrivateKeyFile string `toml:"private-key-file" valid:"required"`
}
TLS represents a common configuration snippet for configuring TLS in a server process
Source Files
¶
Click to show internal directories.
Click to hide internal directories.