Versions in this module Expand all Collapse all v1 v1.1.0 Mar 31, 2017 v1.0.0 Mar 8, 2017 Changes in this version + const RuleAction + const RuleAny + const RuleRoute + type Action struct + Action string + Duration float64 + LogKey string + LogValue string + Probability float64 + ReturnCode int + Tags []string + type Backend struct + LbType string + Name string + Resilience *Resilience + Tags []string + Weight float64 + type Match struct + Headers map[string]string + Source *Source + type Resilience struct + ConsecutiveErrors int + DetectionInterval float64 + MaxConnections int + MaxPendingRequest int + MaxRequests int + MaxRequestsPerConnection int + SleepWindow float64 + type Route struct + Backends []Backend + HTTPReqRetries int + HTTPReqTimeout float64 + URI *URI + type Rule struct + Actions []Action + Destination string + ID string + Match *Match + Priority int + Route *Route + Tags []string + type RuleFilter struct + Destinations []string + IDs []string + RuleType int + Tags []string + func (f *RuleFilter) Apply(rules []Rule) []Rule + func (f *RuleFilter) Empty() bool + func (f *RuleFilter) String() string + type RulesByService struct + Services map[string][]Rule + type RulesIDList struct + IDs []string + type RulesService interface + ListRules func(f *RuleFilter) (*RulesSet, error) + type RulesSet struct + Revision int64 + Rules []Rule + type ServiceDiscovery interface + ListInstances func() ([]*ServiceInstance, error) + ListServiceInstances func(serviceName string) ([]*ServiceInstance, error) + ListServices func() ([]string, error) + type ServiceEndpoint struct + Type string + Value string + type ServiceInstance struct + Endpoint ServiceEndpoint + ID string + LastHeartbeat time.Time + Metadata json.RawMessage + ServiceName string + Status string + TTL int + Tags []string + type ServiceRegistry interface + Deregister func(id string) error + Register func(instance *ServiceInstance) (*ServiceInstance, error) + Renew func(id string) error + type Source struct + Name string + Tags []string + type URI struct + Path string + Prefix string + PrefixRewrite string + type Validator interface + Validate func(Rule) error + func NewValidator() (Validator, error)