Versions in this module Expand all Collapse all v0 v0.1.1 Dec 7, 2014 v0.1.0 Dec 7, 2014 Changes in this version + const CurrentVersion + func InitProxyController(backend backend.Backend, stats backend.StatsProvider, app *scroll.App) + type Client struct + Addr string + Registry *plugin.Registry + func NewClient(addr string, registry *plugin.Registry) *Client + func (c *Client) AddEndpoint(upstreamId, id, u string) (*backend.Endpoint, error) + func (c *Client) AddHost(name string) (*backend.Host, error) + func (c *Client) AddHostListener(hostname string, l *backend.Listener) (*backend.Listener, error) + func (c *Client) AddLocation(hostname, id, path, upstream string) (*backend.Location, error) + func (c *Client) AddLocationWithOptions(hostname, id, path, upstream string, options backend.LocationOptions) (*backend.Location, error) + func (c *Client) AddMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId string, ...) (*backend.MiddlewareInstance, error) + func (c *Client) AddUpstream(id string) (*backend.Upstream, error) + func (c *Client) AddUpstreamWithOptions(id string, o backend.UpstreamOptions) (*backend.Upstream, error) + func (c *Client) Delete(endpoint string) (*StatusResponse, error) + func (c *Client) DeleteEndpoint(upstreamId, id string) (*StatusResponse, error) + func (c *Client) DeleteHost(name string) (*StatusResponse, error) + func (c *Client) DeleteHostListener(name, listenerId string) (*StatusResponse, error) + func (c *Client) DeleteLocation(hostname, id string) (*StatusResponse, error) + func (c *Client) DeleteMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId, mId string) (*StatusResponse, error) + func (c *Client) DeleteUpstream(id string) (*StatusResponse, error) + func (c *Client) Get(u string, params url.Values) ([]byte, error) + func (c *Client) GetHost(name string) (*backend.Host, error) + func (c *Client) GetHosts() ([]*backend.Host, error) + func (c *Client) GetLocation(name, id string) (*backend.Location, error) + func (c *Client) GetLogSeverity() (log.Severity, error) + func (c *Client) GetStatus() error + func (c *Client) GetTopEndpoints(upstreamId string, limit int) ([]*backend.Endpoint, error) + func (c *Client) GetTopLocations(hostname, upstreamId string, limit int) ([]*backend.Location, error) + func (c *Client) GetUpstream(id string) (*backend.Upstream, error) + func (c *Client) GetUpstreams() ([]*backend.Upstream, error) + func (c *Client) Post(endpoint string, in interface{}) ([]byte, error) + func (c *Client) Put(endpoint string, in interface{}) ([]byte, error) + func (c *Client) PutForm(endpoint string, values url.Values) (*StatusResponse, error) + func (c *Client) RoundTrip(fn RoundTripFn) ([]byte, error) + func (c *Client) UpdateHostKeyPair(hostname string, keyPair *backend.KeyPair) (*backend.Host, error) + func (c *Client) UpdateLocationOptions(hostname, location string, options backend.LocationOptions) (*backend.Location, error) + func (c *Client) UpdateLocationUpstream(hostname, location, upstream string) (*StatusResponse, error) + func (c *Client) UpdateLogSeverity(s log.Severity) (*StatusResponse, error) + func (c *Client) UpdateMiddleware(spec *plugin.MiddlewareSpec, hostname, locationId string, ...) (*backend.MiddlewareInstance, error) + func (c *Client) UpdateUpstreamOptions(upId string, options backend.UpstreamOptions) (*backend.Upstream, error) + type ConnectionsResponse struct + Connections int + type EndpointsResponse struct + Endpoints []*backend.Endpoint + type ProxyController struct + type RoundTripFn func() (*http.Response, error) + type SeverityResponse struct + Severity string + type StatusResponse struct + Message string + func (e *StatusResponse) Error() string + type UpstreamsResponse struct + Upstreams []*backend.Upstream