Documentation ¶
Index ¶
- func AddProperties(rootProps properties.Properties)
- type ApigeeConfig
- func (a *ApigeeConfig) GetAuth() *AuthConfig
- func (a *ApigeeConfig) GetIntervals() *ApigeeIntervals
- func (a *ApigeeConfig) GetWorkers() *ApigeeWorkers
- func (a *ApigeeConfig) IsProductMode() bool
- func (a *ApigeeConfig) IsProxyMode() bool
- func (a *ApigeeConfig) ShouldCloneAttributes() bool
- func (a *ApigeeConfig) ShouldReportAllTraffic() bool
- func (a *ApigeeConfig) ShouldReportNotSetTraffic() bool
- func (a *ApigeeConfig) ValidateCfg() (err error)
- type ApigeeIntervals
- type ApigeeWorkers
- type AuthConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProperties ¶
func AddProperties(rootProps properties.Properties)
AddProperties - adds config needed for apigee client
Types ¶
type ApigeeConfig ¶
type ApigeeConfig struct { corecfg.IConfigValidator Organization string `config:"organization"` URL string `config:"url"` DataURL string `config:"dataURL"` APIVersion string `config:"apiVersion"` Filter string `config:"filter"` DeveloperID string `config:"developerID"` Auth *AuthConfig `config:"auth"` Intervals *ApigeeIntervals `config:"interval"` Workers *ApigeeWorkers `config:"workers"` CloneAttributes bool `config:"cloneAttributes"` AllTraffic bool `config:"allTraffic"` NotSetTraffic bool `config:"notSetTraffic"` // contains filtered or unexported fields }
ApigeeConfig - represents the config for gateway
func ParseConfig ¶
func ParseConfig(rootProps properties.Properties) *ApigeeConfig
ParseConfig - parse the config on startup
func (*ApigeeConfig) GetAuth ¶
func (a *ApigeeConfig) GetAuth() *AuthConfig
GetAuth - Returns the Auth Config
func (*ApigeeConfig) GetIntervals ¶
func (a *ApigeeConfig) GetIntervals() *ApigeeIntervals
GetIntervals - Returns the Intervals
func (*ApigeeConfig) GetWorkers ¶
func (a *ApigeeConfig) GetWorkers() *ApigeeWorkers
GetWorkers - Returns the number of Workers
func (*ApigeeConfig) IsProductMode ¶
func (a *ApigeeConfig) IsProductMode() bool
func (*ApigeeConfig) IsProxyMode ¶
func (a *ApigeeConfig) IsProxyMode() bool
func (*ApigeeConfig) ShouldCloneAttributes ¶
func (a *ApigeeConfig) ShouldCloneAttributes() bool
func (*ApigeeConfig) ShouldReportAllTraffic ¶
func (a *ApigeeConfig) ShouldReportAllTraffic() bool
func (*ApigeeConfig) ShouldReportNotSetTraffic ¶
func (a *ApigeeConfig) ShouldReportNotSetTraffic() bool
func (*ApigeeConfig) ValidateCfg ¶
func (a *ApigeeConfig) ValidateCfg() (err error)
ValidateCfg - Validates the gateway config
type ApigeeIntervals ¶
type ApigeeIntervals struct { Proxy time.Duration `config:"proxy"` Spec time.Duration `config:"spec"` Product time.Duration `config:"product"` Stats time.Duration `config:"stats"` }
ApigeeIntervals - intervals for the apigee agent to use
type ApigeeWorkers ¶
type ApigeeWorkers struct { Proxy int `config:"proxy"` Spec int `config:"spec"` Product int `config:"product"` }
ApigeeWorkers - number of workers for the apigee agent to use
type AuthConfig ¶
type AuthConfig struct { URL string `config:"url"` ServerUsername string `config:"serverUsername"` ServerPassword string `config:"serverPassword"` Username string `config:"username"` Password string `config:"password"` }
AuthConfig - represents the config for gateway
func (*AuthConfig) GetPassword ¶
func (a *AuthConfig) GetPassword() string
GetPassword - Returns the APIGEE password
func (*AuthConfig) GetServerPassword ¶
func (a *AuthConfig) GetServerPassword() string
GetServerPassword - Returns the APIGEE auth server password
func (*AuthConfig) GetServerUsername ¶
func (a *AuthConfig) GetServerUsername() string
GetServerUsername - Returns the APIGEE auth server username
func (*AuthConfig) GetURL ¶
func (a *AuthConfig) GetURL() string
GetURL - Returns the APIGEE username
func (*AuthConfig) GetUsername ¶
func (a *AuthConfig) GetUsername() string
GetUsername - Returns the APIGEE username