haproxy

package
v1.5.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapPath added in v1.5.0

func GetMapPath(name string) string

Types

type Backend added in v1.4.3

type Backend models.Backend

func (*Backend) UpdateAbortOnClose added in v1.4.3

func (b *Backend) UpdateAbortOnClose(value string) error

func (*Backend) UpdateBalance added in v1.4.3

func (b *Backend) UpdateBalance(value string) error

func (*Backend) UpdateCheckTimeout added in v1.4.3

func (b *Backend) UpdateCheckTimeout(value string) error

func (*Backend) UpdateCookie added in v1.4.3

func (b *Backend) UpdateCookie(cookie *models.Cookie) error

func (*Backend) UpdateForwardfor added in v1.4.3

func (b *Backend) UpdateForwardfor(value string) error

func (*Backend) UpdateHttpchk added in v1.4.3

func (b *Backend) UpdateHttpchk(value string) error

type MapID

type MapID uint64

func NewMapID

func NewMapID(s string) MapID

func (MapID) Path

func (mapID MapID) Path() string

type Maps

type Maps map[string]*mapFile

func NewMapFiles

func NewMapFiles(path string) Maps

func (Maps) AppendRow added in v1.4.6

func (m Maps) AppendRow(name string, row string)

AppendRow appends row to mapFile

func (Maps) Clean

func (m Maps) Clean()

func (Maps) Refresh

func (m Maps) Refresh(client api.HAProxyClient) (reload bool)

func (Maps) SetPreserve added in v1.5.0

func (m Maps) SetPreserve(preserve bool, maps ...string)

SetPreserve sets the preserve flag on a mapFile

type Rule added in v1.5.0

type Rule interface {
	GetID() uint32
	GetType() RuleType
	Create(client api.HAProxyClient, frontend *models.Frontend) error
}

type RuleStatus added in v1.5.0

type RuleStatus int
const (
	TO_DELETE RuleStatus = iota
	TO_CREATE
	CREATED
)

nolint

type RuleType added in v1.5.0

type RuleType int

Order matters ! Rules will be evaluated by HAProxy in the defined order.

const (
	REQ_ACCEPT_CONTENT RuleType = iota
	REQ_INSPECT_DELAY
	REQ_PROXY_PROTOCOL
	REQ_SET_SRC
	REQ_SET_VAR
	REQ_DENY
	REQ_TRACK
	REQ_AUTH
	REQ_RATELIMIT
	REQ_CAPTURE
	REQ_SSL_REDIRECT
	REQ_FORWARDED_PROTO
	REQ_SET_HEADER
	REQ_SET_HOST
	REQ_PATH_REWRITE
	RES_SET_HEADER
)

nolint

type Rules added in v1.5.0

type Rules map[string]*frontendRules

func NewRules added in v1.5.0

func NewRules() Rules

func (Rules) AddRule added in v1.5.0

func (r Rules) AddRule(rule Rule, frontends ...string) error

func (Rules) Clean added in v1.5.0

func (r Rules) Clean(frontends ...string)

func (Rules) EnableSSLPassThrough added in v1.5.0

func (r Rules) EnableSSLPassThrough(passThroughFtd, offloadFtd string)

func (Rules) Refresh added in v1.5.0

func (r Rules) Refresh(client api.HAProxyClient) (reload bool)

type Server added in v1.4.3

type Server models.Server

func (*Server) ResetSendProxy

func (s *Server) ResetSendProxy()

func (*Server) UpdateCheck added in v1.4.3

func (s *Server) UpdateCheck(value string) error

func (*Server) UpdateInter added in v1.4.3

func (s *Server) UpdateInter(value string) error

func (*Server) UpdateMaxconn added in v1.4.3

func (s *Server) UpdateMaxconn(value string) error

func (*Server) UpdateSendProxy

func (s *Server) UpdateSendProxy(value string) (err error)

func (*Server) UpdateServerSsl added in v1.4.3

func (s *Server) UpdateServerSsl(value string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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