Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ProxyGateway `mapstructure:"proxy"` StaticServer `mapstructure:"static_server"` }
Config the main struct that define all elements inside `goproxy.yaml`
func LoadConfig ¶
LoadConfig load the config file from `path` and `name`
func (*Config) CreateSettingFile ¶
CreateSettingFile create a setting file if it doesn`t exits
type OptionSSL ¶
type OptionSSL struct { Enable bool `mapstructure:"enable"` SSLPort int `mapstructure:"ssl_port"` CrtFile string `mapstructure:"crt_file"` KeyFile string `mapstructure:"key_file"` }
OptionSSL struct for the ssl options
type ProxyCache ¶
ProxyCache struct for cache options object
type ProxyGateway ¶
type ProxyGateway struct { Host string `mapstructure:"host_proxy"` Port int `mapstructure:"port_proxy"` PortExporterProxy int `mapstructure:"port_exporter_proxy"` ProxySSL OptionSSL `mapstructure:"ssl_proxy"` ProxySecurity ProxySecurity `mapstructure:"security"` ProxyCache ProxyCache `mapstructure:"cache_proxy"` EnpointsProxy []domain.ProxyEndpoint `mapstructure:"services_proxy"` }
ProxyGateway struct for the proxy gateway object
type ProxySecurity ¶
type ProxySecurity struct {
Type string `mapstructure:"type"`
}
ProxySecurity struct for security object
Click to show internal directories.
Click to hide internal directories.