Documentation
¶
Index ¶
- type Client
- func (c *Client) Cache() cache.Cache
- func (c *Client) Configuration() *oo.Options
- func (c *Client) DefaultPathConfigs(oc *oo.Options) map[string]*po.Options
- func (c *Client) HTTPClient() *http.Client
- func (c *Client) Handler(w http.ResponseWriter, r *http.Request)
- func (c *Client) Handlers() map[string]http.Handler
- func (c *Client) Name() string
- func (c *Client) Router() http.Handler
- func (c *Client) SetCache(cc cache.Cache)
- type Clients
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client Implements the Proxy Client Interface
func NewClient ¶
func NewClient(name string, options *oo.Options, router http.Handler, clients origins.Origins) (*Client, error)
NewClient returns a new Rules Router client reference
func (*Client) Cache ¶
Cache is not used by the Rule, and is present to conform to the Client interface
func (*Client) Configuration ¶
Configuration returns the Client Configuration
func (*Client) DefaultPathConfigs ¶
DefaultPathConfigs returns the default PathConfigs for the given OriginType
func (*Client) HTTPClient ¶
HTTPClient is not used by the Rule, and is present to conform to the Client interface
func (*Client) Handler ¶
func (c *Client) Handler(w http.ResponseWriter, r *http.Request)
Handler processes the HTTP request through the rules engine
Source Files
¶
Click to show internal directories.
Click to hide internal directories.