Versions in this module Expand all Collapse all v1 v1.0.1 Oct 20, 2016 Changes in this version + func WithClient(c *Client) func(*Pool) + func WithClientTransport(t http.RoundTripper) func(*Client) + func WithHashFn(h consistenthash.Hash) func(*Client) + func WithPath(p string) func(*Client) + func WithProxyTransport(t http.RoundTripper) func(*Pool) + func WithReplicas(r int) func(*Client) + type Client struct + func (c *Client) HTTPClient() *http.Client + func (c *Client) RoundTrip(req *http.Request) (*http.Response, error) + func (c *Client) Set(peers ...string) v1.0.0 Oct 19, 2016 Changes in this version + type ClientOptions struct + HashFn consistenthash.Hash + Path string + Replicas int + type Pool struct + func NewPool(self string, local httpcache.Cache) *Pool + func NewPoolOpts(self string, local httpcache.Cache, opts *ClientOptions) *Pool + func (p *Pool) LocalProxy() http.Handler + type PoolClient struct + func NewClient(peers ...string) *PoolClient + func NewClientOpts(opts *ClientOptions, peers ...string) *PoolClient + func (c *PoolClient) Client() *http.Client + func (c *PoolClient) RoundTrip(req *http.Request) (*http.Response, error) + func (c *PoolClient) Set(peers ...string) Incompatible versions in this module v2.0.0+incompatible Apr 10, 2018