proxy

package
v2.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointGenerator

type EndpointGenerator func(context.Context, http.ResponseWriter, *http.Request) (string, error)

type SEndpointFactory

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

func NewEndpointFactory

func NewEndpointFactory(f EndpointGenerator, serviceName string) *SEndpointFactory

type SReverseProxy

type SReverseProxy struct {
	*SEndpointFactory
}

func NewHTTPReverseProxy

func NewHTTPReverseProxy(ef *SEndpointFactory) *SReverseProxy

func (*SReverseProxy) ServeHTTP

func (p *SReverseProxy) ServeHTTP(ctx context.Context, w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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