api

package
v0.8.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentVersion = "v2"

Variables

This section is empty.

Functions

func InitProxyController

func InitProxyController(ng engine.Engine, stats engine.StatsProvider, app *scroll.App)

Types

type BackendsResponse

type BackendsResponse struct {
	Backends []engine.Backend
}

type Client

type Client struct {
	Addr     string
	Registry *plugin.Registry
}

func NewClient

func NewClient(addr string, registry *plugin.Registry) *Client

func (*Client) Delete

func (c *Client) Delete(endpoint string) error

func (*Client) DeleteBackend

func (c *Client) DeleteBackend(bk engine.BackendKey) error

func (*Client) DeleteFrontend

func (c *Client) DeleteFrontend(fk engine.FrontendKey) error

func (*Client) DeleteHost

func (c *Client) DeleteHost(hk engine.HostKey) error

func (*Client) DeleteListener

func (c *Client) DeleteListener(lk engine.ListenerKey) error

func (*Client) DeleteMiddleware

func (c *Client) DeleteMiddleware(mk engine.MiddlewareKey) error

func (*Client) DeleteServer

func (c *Client) DeleteServer(sk engine.ServerKey) error

func (*Client) Get

func (c *Client) Get(u string, params url.Values) ([]byte, error)

func (*Client) GetBackend

func (c *Client) GetBackend(bk engine.BackendKey) (*engine.Backend, error)

func (*Client) GetBackends

func (c *Client) GetBackends() ([]engine.Backend, error)

func (*Client) GetFrontend

func (c *Client) GetFrontend(fk engine.FrontendKey) (*engine.Frontend, error)

func (*Client) GetFrontends

func (c *Client) GetFrontends() ([]engine.Frontend, error)

func (*Client) GetHost

func (c *Client) GetHost(hk engine.HostKey) (*engine.Host, error)

func (*Client) GetHosts

func (c *Client) GetHosts() ([]engine.Host, error)

func (*Client) GetListener

func (c *Client) GetListener(lk engine.ListenerKey) (*engine.Listener, error)

func (*Client) GetListeners

func (c *Client) GetListeners() ([]engine.Listener, error)

func (*Client) GetLogSeverity

func (c *Client) GetLogSeverity() (log.Severity, error)

func (*Client) GetMiddleware

func (c *Client) GetMiddleware(mk engine.MiddlewareKey) (*engine.Middleware, error)

func (*Client) GetMiddlewares

func (c *Client) GetMiddlewares(fk engine.FrontendKey) ([]engine.Middleware, error)

func (*Client) GetServer

func (c *Client) GetServer(sk engine.ServerKey) (*engine.Server, error)

func (*Client) GetServers

func (c *Client) GetServers(bk engine.BackendKey) ([]engine.Server, error)

func (*Client) GetStatus

func (c *Client) GetStatus() error

func (*Client) Post

func (c *Client) Post(endpoint string, in interface{}) ([]byte, error)

func (*Client) Put

func (c *Client) Put(endpoint string, in interface{}) ([]byte, error)

func (*Client) PutForm

func (c *Client) PutForm(endpoint string, values url.Values) error

func (*Client) RoundTrip

func (c *Client) RoundTrip(fn RoundTripFn) ([]byte, error)

func (*Client) TopFrontends

func (c *Client) TopFrontends(bk *engine.BackendKey, limit int) ([]engine.Frontend, error)

func (*Client) TopServers

func (c *Client) TopServers(bk *engine.BackendKey, limit int) ([]engine.Server, error)

func (*Client) UpdateLogSeverity

func (c *Client) UpdateLogSeverity(s log.Severity) error

func (*Client) UpsertBackend

func (c *Client) UpsertBackend(b engine.Backend) error

func (*Client) UpsertFrontend

func (c *Client) UpsertFrontend(f engine.Frontend, ttl time.Duration) error

func (*Client) UpsertHost

func (c *Client) UpsertHost(h engine.Host) error

func (*Client) UpsertListener

func (c *Client) UpsertListener(l engine.Listener) error

func (*Client) UpsertMiddleware

func (c *Client) UpsertMiddleware(fk engine.FrontendKey, m engine.Middleware, ttl time.Duration) error

func (*Client) UpsertServer

func (c *Client) UpsertServer(bk engine.BackendKey, srv engine.Server, ttl time.Duration) error

type ConnectionsResponse

type ConnectionsResponse struct {
	Connections int
}

type ProxyController

type ProxyController struct {
	// contains filtered or unexported fields
}

type RoundTripFn

type RoundTripFn func() (*http.Response, error)

type ServersResponse

type ServersResponse struct {
	Servers []engine.Server
}

type SeverityResponse

type SeverityResponse struct {
	Severity string
}

type StatusResponse

type StatusResponse struct {
	Message string
}

func (*StatusResponse) Error

func (e *StatusResponse) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL