Documentation ¶
Index ¶
- Constants
- func InitProxyController(ng engine.Engine, stats engine.StatsProvider, app *scroll.App)
- type BackendsResponse
- type Client
- func (c *Client) Delete(endpoint string) error
- func (c *Client) DeleteBackend(bk engine.BackendKey) error
- func (c *Client) DeleteFrontend(fk engine.FrontendKey) error
- func (c *Client) DeleteHost(hk engine.HostKey) error
- func (c *Client) DeleteListener(lk engine.ListenerKey) error
- func (c *Client) DeleteMiddleware(mk engine.MiddlewareKey) error
- func (c *Client) DeleteServer(sk engine.ServerKey) error
- func (c *Client) Get(u string, params url.Values) ([]byte, error)
- func (c *Client) GetBackend(bk engine.BackendKey) (*engine.Backend, error)
- func (c *Client) GetBackends() ([]engine.Backend, error)
- func (c *Client) GetFrontend(fk engine.FrontendKey) (*engine.Frontend, error)
- func (c *Client) GetFrontends() ([]engine.Frontend, error)
- func (c *Client) GetHost(hk engine.HostKey) (*engine.Host, error)
- func (c *Client) GetHosts() ([]engine.Host, error)
- func (c *Client) GetListener(lk engine.ListenerKey) (*engine.Listener, error)
- func (c *Client) GetListeners() ([]engine.Listener, error)
- func (c *Client) GetLogSeverity() (log.Severity, error)
- func (c *Client) GetMiddleware(mk engine.MiddlewareKey) (*engine.Middleware, error)
- func (c *Client) GetMiddlewares(fk engine.FrontendKey) ([]engine.Middleware, error)
- func (c *Client) GetServer(sk engine.ServerKey) (*engine.Server, error)
- func (c *Client) GetServers(bk engine.BackendKey) ([]engine.Server, error)
- func (c *Client) GetStatus() 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) error
- func (c *Client) RoundTrip(fn RoundTripFn) ([]byte, error)
- func (c *Client) TopFrontends(bk *engine.BackendKey, limit int) ([]engine.Frontend, error)
- func (c *Client) TopServers(bk *engine.BackendKey, limit int) ([]engine.Server, error)
- func (c *Client) UpdateLogSeverity(s log.Severity) error
- func (c *Client) UpsertBackend(b engine.Backend) error
- func (c *Client) UpsertFrontend(f engine.Frontend, ttl time.Duration) error
- func (c *Client) UpsertHost(h engine.Host) error
- func (c *Client) UpsertListener(l engine.Listener) error
- func (c *Client) UpsertMiddleware(fk engine.FrontendKey, m engine.Middleware, ttl time.Duration) error
- func (c *Client) UpsertServer(bk engine.BackendKey, srv engine.Server, ttl time.Duration) error
- type ConnectionsResponse
- type ProxyController
- type RoundTripFn
- type ServersResponse
- type SeverityResponse
- type StatusResponse
Constants ¶
View Source
const CurrentVersion = "v2"
Variables ¶
This section is empty.
Functions ¶
func InitProxyController ¶
Types ¶
type BackendsResponse ¶
type Client ¶
func (*Client) DeleteBackend ¶
func (c *Client) DeleteBackend(bk engine.BackendKey) error
func (*Client) DeleteFrontend ¶
func (c *Client) DeleteFrontend(fk engine.FrontendKey) 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) GetBackend ¶
func (*Client) GetFrontend ¶
func (*Client) GetListener ¶
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) GetServers ¶
func (*Client) TopFrontends ¶
func (*Client) TopServers ¶
func (*Client) UpsertFrontend ¶
func (*Client) UpsertMiddleware ¶
func (c *Client) UpsertMiddleware(fk engine.FrontendKey, m engine.Middleware, ttl time.Duration) error
func (*Client) UpsertServer ¶
type ConnectionsResponse ¶
type ConnectionsResponse struct {
Connections int
}
type ProxyController ¶
type ProxyController struct {
// contains filtered or unexported fields
}
type RoundTripFn ¶
type ServersResponse ¶
type SeverityResponse ¶
type SeverityResponse struct {
Severity string
}
type StatusResponse ¶
type StatusResponse struct {
Message string
}
func (*StatusResponse) Error ¶
func (e *StatusResponse) Error() string
Click to show internal directories.
Click to hide internal directories.