Documentation ¶
Index ¶
- Variables
- type Backend
- type Proxy
- func (p *Proxy) AddBackend(alias string, backend *Backend)
- func (p *Proxy) DeleteBackend(alias string)
- func (p *Proxy) Disable()
- func (p *Proxy) Enable()
- func (p *Proxy) GetClient(alias string) *apiclient.Client
- func (p *Proxy) ProxyCall(c *api.Context, backendAlias string, action string, params url.Values) (*apiclient.Response, *api.Error)
- func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func (p *Proxy) SetClient(alias string, client *apiclient.Client)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorDefines = map[api.ErrorType]*api.ErrorDefine{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) AddBackend ¶
AddBackend add a new backend to proxy.
func (*Proxy) DeleteBackend ¶
DeleteBackend delete a backend from proxy.
func (*Proxy) ServeHTTP ¶
func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.