Versions in this module Expand all Collapse all v0 v0.0.1 Feb 4, 2019 Changes in this version + type ACL struct + Criterion string + Endpoint *Endpoint + EndpointConfig *EndpointConfig + ID string + func (acl *ACL) GenACL(val string) error + func (acl ACL) String() string + type Backend struct + Handler http.Handler + Name string + Server *url.URL + func NewBackend(name string, serverURL string, options BackendOptions) (*Backend, error) + type BackendOptions struct + Timeout time.Duration + type Endpoint struct + func NewEndpoint(endpointConfig *EndpointConfig, sharder Sharder) (*Endpoint, error) + func (endpoint *Endpoint) Shard(request *http.Request) (*Backend, error) + type EndpointConfig struct + Matcher string + ShardConfig json.RawMessage + ShardExpr string + ShardFunc string + type Sharder interface + Shard func(key string) (*Backend, error)