martian

package
v0.0.0-...-9823ec8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 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

func Register

func Register()

Types

type Context

type Context struct {
	context.Context
	// contains filtered or unexported fields
}

func NewContext

func NewContext(parent context.Context) *Context

func (*Context) SkipRoundTrip

func (c *Context) SkipRoundTrip()

func (*Context) SkippingRoundTrip

func (c *Context) SkippingRoundTrip() bool

type Result

type Result struct {
	Result *parse.Result
	Err    error
}

type StaticModifier

type StaticModifier struct {
	*static.Modifier
}

func NewStaticModifier

func NewStaticModifier(rootPath string) *StaticModifier

func (*StaticModifier) ModifyRequest

func (s *StaticModifier) ModifyRequest(req *http.Request) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL