proxy

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 8 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 struct {
	Log      logs.Logger
	Discover discover.Interface
}

Proxy .

func (*Proxy) Wrap

func (p *Proxy) Wrap(method, path, backendPath, service string, wrapers ...func(h http.HandlerFunc) http.HandlerFunc) (http.HandlerFunc, error)

func (*Proxy) WrapWithServiceURL

func (p *Proxy) WrapWithServiceURL(method, path, backendPath, srvURL string, wrapers ...func(h http.HandlerFunc) http.HandlerFunc) (http.HandlerFunc, error)

Jump to

Keyboard shortcuts

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