Discover Packages
github.com/adjspecies/vault
config
package
Version:
v0.0.0-...-ecb7df7
Opens a new window with list of versions in this module.
Published: Oct 31, 2017
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package config stores the configuration required for running Vault.
Configuration is provided in a YAML file which must be specified via an
environment variable. It contains information regarding the DB, the server
hosting, logging, etc.
type Config struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Environment string `yaml:"environment"`
LogLevel zapcore .Level `yaml:"log-level"`
}
Config holds the values within a YAML configuration file
Read loads a YAML config file into a Config object.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.