proxy

package
v2.3.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 4

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