proxy

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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 SchemaProvider added in v1.3.0

type SchemaProvider interface {
	GetSchema(url string) []byte
}

SchemaProvider exists because it's not usually the case for the handler to keep the schema around Think multi tenant SaaS applications where a handler might handle schemas for many tenants In case you just want to use one single schema simply use StaticSchemaProvider

type StaticSchemaProvider added in v1.3.0

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

func NewStaticSchemaProvider added in v1.3.0

func NewStaticSchemaProvider(schema []byte) *StaticSchemaProvider

func (StaticSchemaProvider) GetSchema added in v1.3.0

func (s StaticSchemaProvider) GetSchema(url string) []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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