Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemeHTTP = "http" SchemeHTTPS = "https" RequestHeader = "request" ResponseHeader = "response" UserIdHeader = "X-Unleash-User-Id" )
View Source
const DefaultInterval = 10
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Url string `yaml:"url"` App string `yaml:"app"` Interval *int `yaml:"interval"` Metrics *struct { Interval *int `yaml:"interval"` } `yaml:"metrics"` Toggles []struct { HeaderModifiers *[]struct { HeaderName string `yaml:"headerName"` HeaderValue string `yaml:"headerValue"` Context string `yaml:"context"` } `yaml:"headerModifiers"` PathRewrite *struct { PathMatcher string `yaml:"pathMatcher"` RewriteRule string `yaml:"rewriteRule"` } `yaml:"pathRewrite"` HostRewrite *struct { HostMatcher string `yaml:"hostMatcher"` RewriteRule string `yaml:"rewriteRule"` } `yaml:"hostRewrite"` Feature string `yaml:"feature"` } `yaml:"toggles"` OfflineMode bool `yaml:"offlineMode"` }
func CreateConfig ¶
func CreateConfig() *Config
type FeatureToggle ¶
type FeatureToggle struct {
// contains filtered or unexported fields
}
type HeaderModifier ¶ added in v0.1.0
type HeaderModifier struct {
// contains filtered or unexported fields
}
type HostRewrite ¶ added in v0.1.0
type HostRewrite struct {
// contains filtered or unexported fields
}
type PathRewrite ¶ added in v0.1.0
type PathRewrite struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.