Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { YamlConfig SyncLogMethodsSet set.Set Synclog *log.Logger Accesslog *log.Logger Mainlog *log.Logger }
Config contains processed YamlConfig data
type YAMLURL ¶
YAMLURL type fields in yaml configuration will parse urls
func (*YAMLURL) UnmarshalYAML ¶
UnmarshalYAML parses strings to url.URL
type YamlConfig ¶
type YamlConfig struct { // Listen interface and port e.g. "0:8000", "localhost:9090", ":80" Listen string `yaml:"Listen,omitempty"` // List of backend uri's e.g. "http:// s3.mydaracenter.org" Backends []YAMLURL `yaml:"Backends,omitempty,flow"` // Limit of outgoing connections. When limit is reached, akubra will omit external backend // with greatest number of stalled connections ConnLimit int64 `yaml:"ConnLimit,omitempty"` // Additional not amazon specific headers proxy will add to original request AdditionalRequestHeaders map[string]string `yaml:"AdditionalRequestHeaders,omitempty"` // Additional headers added to backend response AdditionalResponseHeaders map[string]string `yaml:"AdditionalResponseHeaders,omitempty"` // Read timeout on outgoing connections ConnectionTimeout string `yaml:"ConnectionTimeout,omitempty"` // Dial timeout on outgoing connections ConnectionDialTimeout string `yaml:"ConnectionDialTimeout,omitempty"` // Backend in maintenance mode. Akubra will not send data there MaintainedBackend string `yaml:"MaintainedBackend,omitempty"` // List request methods to be logged in synclog in case of backend failure SyncLogMethods []string `yaml:"SyncLogMethods,omitempty"` // Should we keep alive connections with backend servers KeepAlive bool `yaml:"KeepAlive"` }
YamlConfig contains configuration fields of config file
Click to show internal directories.
Click to hide internal directories.