Documentation
¶
Index ¶
- type Engine
- func (e *Engine) AddAllowedHosts(hosts ...string) []string
- func (e *Engine) AllowedHosts() []string
- func (e *Engine) GetPlaceholder(name string) string
- func (e *Engine) GetPlaceholders() map[string]string
- func (e *Engine) IsHostAllowed(host string) bool
- func (e *Engine) OnRequest(req *http.Request, host string) (*http.Request, error)
- func (e *Engine) OnResponse(resp *http.Response, req *http.Request, host string) (*http.Response, error)
- func (e *Engine) RemoveAllowedHosts(hosts ...string) []string
- func (e *Engine) SetNetworkHookInvoker(invoker networkHookInvoker)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewEngine ¶
func NewEngine(config *api.NetworkConfig) *Engine
func (*Engine) AddAllowedHosts ¶ added in v0.1.24
func (*Engine) AllowedHosts ¶ added in v0.1.24
func (*Engine) GetPlaceholder ¶
func (*Engine) GetPlaceholders ¶
func (*Engine) IsHostAllowed ¶
func (*Engine) OnResponse ¶
func (*Engine) RemoveAllowedHosts ¶ added in v0.1.24
func (*Engine) SetNetworkHookInvoker ¶ added in v0.1.24
func (e *Engine) SetNetworkHookInvoker(invoker networkHookInvoker)
SetNetworkHookInvoker overrides the SDK-local network hook invoker. This is primarily intended for testing.
Click to show internal directories.
Click to hide internal directories.