proxy

package
v0.0.0-...-cfb183a Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

NewParser creates a new reverse proxy configuration annotation parser

Types

type Config

type Config struct {
	BodySize          string `json:"bodySize"`
	ConnectTimeout    int    `json:"connectTimeout"`
	SendTimeout       int    `json:"sendTimeout"`
	ReadTimeout       int    `json:"readTimeout"`
	BufferSize        string `json:"bufferSize"`
	CookieDomain      string `json:"cookieDomain"`
	CookiePath        string `json:"cookiePath"`
	NextUpstream      string `json:"nextUpstream"`
	NextUpstreamTries int    `json:"nextUpstreamTries"`
	ProxyRedirectFrom string `json:"proxyRedirectFrom"`
	ProxyRedirectTo   string `json:"proxyRedirectTo"`
	RequestBuffering  string `json:"requestBuffering"`
	ProxyBuffering    string `json:"proxyBuffering"`
}

Config returns the proxy timeout to use in the upstream server/s

func (*Config) Equal

func (l1 *Config) Equal(l2 *Config) bool

Equal tests for equality between two Configuration types

Jump to

Keyboard shortcuts

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