Discover Packages
github.com/morfien101/go-metrics-auth
config
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jun 28, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Config is a struct that holds all the configuration options for the application.
New creates a new configuration struct and returns to to the caller.
The configuration file location is either defaultConfigPath const or
METRIC_AUTH_CONFIG environment variable.
type RedisConfig struct {
RedisHost string `json:"redis_host"`
RedisPort string `json:"redis_port"`
AvailableEndpoints []string `json:"endpoints"`
}
type WebServerConfig struct {
ListenAddress string `json:"listen_address"`
Port string `json:"listen_port"`
UseTLS bool `json:"use_tls"`
CertPath string `json:"cert_path"`
KeyPath string `json:"key_path"`
}
WebServerConfig holds the configuration for the http web server
Source Files
¶
Click to show internal directories.
Click to hide internal directories.