Back to godoc.org

Package proxy

v5.2.0-release+incompa...
Latest Go to latest

The latest major version is .

Published: Apr 16, 2020 | License: LGPL-3.0 | Module: github.com/goodrain/rainbond

Index

func NewParser

func NewParser(r resolver.Resolver) parser.IngressAnnotation

NewParser creates a new reverse proxy configuration annotation parser

type Config

type Config struct {
	BodySize          int               `json:"bodySize"`
	ConnectTimeout    int               `json:"connectTimeout"`
	SendTimeout       int               `json:"sendTimeout"`
	ReadTimeout       int               `json:"readTimeout"`
	BuffersNumber     int               `json:"buffersNumber"`
	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"`
	SetHeaders        map[string]string `json:"setHeaders"`
}

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

func NewProxyConfig

func NewProxyConfig() Config

NewProxyConfig new proxy config

func (*Config) Equal

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

Equal tests for equality between two Configuration types

func (*Config) Validation

func (s *Config) Validation() error

Validation validation nginx parameters

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier