proxy

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 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.Request) (string, error)

type RequestManipulator

type RequestManipulator func(ctx context.Context, r *http.Request) (*http.Request, 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
	// contains filtered or unexported fields
}

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