proxy

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy interface {
	AcceptRequest(uri string, body io.ReadCloser, ctx context.Context) (*bytes.Buffer, error)
	DispatchRequest(input []byte) ([]byte, error)
	AcceptResponse()
	DispatchResponse()
}

type RequestConfig added in v1.4.0

type RequestConfig struct {
	Schema              *[]byte
	BackendHost         string
	BackendAddr         []byte
	AddHeadersToContext [][]byte
}

type RequestConfigProvider added in v1.4.0

type RequestConfigProvider interface {
	GetRequestConfig(requestURI []byte) RequestConfig
}

type StaticRequestConfigProvider added in v1.4.0

type StaticRequestConfigProvider struct {
	// contains filtered or unexported fields
}

func NewStaticSchemaProvider added in v1.3.0

func NewStaticSchemaProvider(config RequestConfig) *StaticRequestConfigProvider

func (*StaticRequestConfigProvider) GetRequestConfig added in v1.4.0

func (s *StaticRequestConfigProvider) GetRequestConfig(requestURI []byte) RequestConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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