Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigGetter(e config.ExtraConfig) interface{}
- func HTTPRequestExecutor(result *parse.Result, re client.HTTPRequestExecutor) client.HTTPRequestExecutor
- func NewBackendFactory(logger log.Logger, re client.HTTPRequestExecutor) proxy.BackendFactory
- func NewConfiguredBackendFactory(logger log.Logger, ref func(*config.Backend) client.HTTPRequestExecutor) proxy.BackendFactory
- func Register()
- type Context
- type Result
- type StaticModifier
Constants ¶
View Source
const Namespace = "github.com/starvn/sonic/modifier/martian"
Variables ¶
View Source
var ( ErrEmptyValue = errors.New("getting the extra config for the martian module") ErrBadValue = errors.New("casting the extra config for the martian module") ErrMarshallingValue = errors.New("marshalling the extra config for the martian module") ErrEmptyResponse = errors.New("getting the http response from the request executor") )
Functions ¶
func ConfigGetter ¶
func ConfigGetter(e config.ExtraConfig) interface{}
func HTTPRequestExecutor ¶
func HTTPRequestExecutor(result *parse.Result, re client.HTTPRequestExecutor) client.HTTPRequestExecutor
func NewBackendFactory ¶
func NewBackendFactory(logger log.Logger, re client.HTTPRequestExecutor) proxy.BackendFactory
func NewConfiguredBackendFactory ¶
func NewConfiguredBackendFactory(logger log.Logger, ref func(*config.Backend) client.HTTPRequestExecutor) proxy.BackendFactory
Types ¶
type Context ¶
func NewContext ¶
func (*Context) SkipRoundTrip ¶
func (c *Context) SkipRoundTrip()
func (*Context) SkippingRoundTrip ¶
type StaticModifier ¶
func NewStaticModifier ¶
func NewStaticModifier(rootPath string) *StaticModifier
func (*StaticModifier) ModifyRequest ¶
func (s *StaticModifier) ModifyRequest(req *http.Request) error
Click to show internal directories.
Click to hide internal directories.