proxy

package
v0.0.0-...-dd8ca36 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 11 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 {
	// contains filtered or unexported fields
}

Proxy is the struct containing config, backend, client, token

func NewProxy

func NewProxy(cfg *config.Config) (*Proxy, error)

NewProxy creates the proxy

func (*Proxy) Handler

func (p *Proxy) Handler(response http.ResponseWriter, oringinalRequest *http.Request)

Handler is the proxy's main function

func (*Proxy) Health

func (p *Proxy) Health(response http.ResponseWriter, _ *http.Request)

Health implements the healthcheck URL

Jump to

Keyboard shortcuts

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