Documentation
¶
Index ¶
- type ACL
- type Action
- type ArrayStringKeyValue
- type Balance
- type Bind
- type BindProcess
- type CPUMap
- type Comments
- type ConfigHash
- type ConfigVersion
- type Cookie
- type DeclareCapture
- type DefaultServer
- type DgramBind
- type Enabled
- type ErrorFile
- type ExternalCheckCommand
- type ExternalCheckPath
- type Filter
- type Filters
- type ForcePersist
- type Group
- type H1CaseAdjust
- type HTTPAfterResponse
- type HTTPCheck
- type HTTPCheckV2
- type HTTPRequests
- type HTTPResponses
- type HTTPReuse
- type HashType
- type Int64C
- type LoadServerStateFromFile
- type Log
- type LuaLoad
- type LuaPrependPath
- type Mailer
- type MonitorFail
- type MonitorURI
- type Nameserver
- type OptionForwardFor
- type OptionHTTPLog
- type OptionHttpchk
- type OptionMysqlCheck
- type OptionPgsqlCheck
- type OptionRedispatch
- type OptionSmtpchk
- type ParserType
- type Peer
- type ProcessVary
- type Redirect
- type Section
- type Server
- type ServerTemplate
- type SetVar
- type SetVarFmt
- type SimpleAutoOnOff
- type SimpleEnabled
- type SimpleNumber
- type SimpleOnOff
- type SimpleOption
- type SimpleSize
- type SimpleString
- type SimpleStringKeyValue
- type SimpleStringSlice
- type SimpleTime
- type SimpleTimeout
- type SimpleWord
- type Socket
- type SslEngine
- type SslModeAsync
- type Stats
- type StatsSettings
- type Stick
- type StickTable
- type StringC
- type StringKeyValueC
- type StringSliceC
- type TCPCheck
- type TCPRequests
- type TCPResponses
- type TCPType
- type ThreadGroup
- type TimeTwoWords
- type UnProcessed
- type UniqueIDFormat
- type UniqueIDHeader
- type UnixBind
- type UseBackend
- type UseServer
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayStringKeyValue ¶
type ArrayStringKeyValue struct{}
is-multiple:true no-sections:true no-parse:true struct-name:ArrayKeyValue parser-type:StringKeyValueC
type Balance ¶
type Balance struct { Algorithm string Params params.BalanceParams Comment string }
is-multiple:false
type Bind ¶
type Bind struct { Path string // can be address:port or socket path Params []params.BindOption Comment string }
is-multiple:true
type Comments ¶
type Comments struct {
Value string
}
no-sections:true is-multiple:true no-init:true no-parse:true
type ConfigVersion ¶
type ConfigVersion struct {
Value int64
}
no-sections:true no-init:true no-get:true
type Cookie ¶
type Cookie struct { Domain []string Attr []string Name string Type string Comment string Maxidle int64 Maxlife int64 Dynamic bool Httponly bool Indirect bool Nocache bool Postonly bool Preserve bool Secure bool }
is-multiple:false
type DeclareCapture ¶
is-multiple:true
type DefaultServer ¶
type DefaultServer struct { Params []params.ServerOption Comment string }
is-multiple:true
type DgramBind ¶
type DgramBind struct { Path string // can be address:port or socket path Params []params.DgramBindOption Comment string }
is-multiple:true
type Enabled ¶
type Enabled struct {
Comment string
}
Enabled is used by parsers Daemon, MasterWorker, ExternalCheck, NoSplice, CompressionOffload gen:Daemon create-type:bool gen:MasterWorker create-type:bool gen:ExternalCheck create-type:bool gen:NoSplice create-type:bool gen:CompressionOffload create-type:bool
type ExternalCheckCommand ¶
no-parse:true
type Filter ¶
type Filter interface { Parse(parts []string, comment string) error Result() common.ReturnResultLine }
type Filters ¶
type Filters struct{}
no-sections:true is-multiple:true parser-type:Filter is-interface:true no-init:true no-parse:true
type ForcePersist ¶
type H1CaseAdjust ¶
is-multiple:true
type HTTPAfterResponse ¶
type HTTPAfterResponse struct{}
struct-name:AfterResponses is-multiple:true parser-type:Action is-interface:true no-parse:true no-init:true
type HTTPCheck ¶
type HTTPCheck struct{}
struct-name:Checks is-multiple:true parser-type:Action is-interface:true no-init:true no-parse:true test:"ok":http-check set-var(check.port) int(1234) test:"ok":http-check set-var-fmt(check.port) int(1234) test:"ok":http-check unset-var(txn.from)
type HTTPCheckV2 ¶
type HTTPCheckV2 struct { Type string ExclamationMark bool Match string Pattern string Comment string }
is-multiple:true
type HTTPRequests ¶
type HTTPRequests struct{}
struct-name:Requests is-multiple:true parser-type:Action is-interface:true no-init:true no-parse:true test:"ok":http-request add-header Authorization Basic\ eC1oYXByb3h5LXJlY3J1aXRzOlBlb3BsZSB3aG8gZGVjb2RlIG1lc3NhZ2VzIG9mdGVuIGxvdmUgd29ya2luZyBhdCBIQVByb3h5LiBEbyBub3QgYmUgc2h5LCBjb250YWN0IHVz test:"ok":http-request add-header Authorisation "Basic eC1oYXByb3h5LXJlY3J1aXRzOlBlb3BsZSB3aG8gZGVjb2RlIG1lc3NhZ2VzIG9mdGVuIGxvdmUgd29ya2luZyBhdCBIQVByb3h5LiBEbyBub3QgYmUgc2h5LCBjb250YWN0IHVz" test:"ok":http-request return status 200 content-type "text/plain" string "My content" if { var(txn.myip) -m found } test:"ok":http-request return status 200 content-type "text/plain" string "My content" unless { var(txn.myip) -m found } test:"ok":http-request return content-type "text/plain" string "My content" if { var(txn.myip) -m found } test:"ok":http-request return content-type 'text/plain' string 'My content' if { var(txn.myip) -m found } test:"ok":http-request return content-type "text/plain" lf-string "Hello, you are: %[src]" if { var(txn.myip) -m found } test:"ok":http-request return content-type "text/plain" file /my/fancy/response/file if { var(txn.myip) -m found } test:"ok":http-request return content-type "text/plain" lf-file /my/fancy/lof/format/response/file if { var(txn.myip) -m found } test:"ok":http-request return content-type "text/plain" string "My content" hdr X-value value if { var(txn.myip) -m found } test:"ok":http-request return content-type "text/plain" string "My content" hdr X-value x-value hdr Y-value y-value if { var(txn.myip) -m found } test:"ok":http-request return content-type "text/plain" lf-string "Hello, you are: %[src]" test:"ok":http-request redirect location /file.html if { var(txn.routecookie) "ROUTEMP" }:1
type HTTPResponses ¶
type HTTPResponses struct{}
struct-name:Responses is-multiple:true parser-type:Action is-interface:true no-init:true no-parse:true test:"ok":http-response return status 200 content-type "text/plain" string "My content" if { var(txn.myip) -m found } test:"ok":http-response return status 200 content-type "text/plain" string "My content" unless { var(txn.myip) -m found } test:"ok":http-response return content-type "text/plain" string "My content" if { var(txn.myip) -m found } test:"ok":http-response return content-type 'text/plain' string 'My content' if { var(txn.myip) -m found } test:"ok":http-response return content-type "text/plain" lf-string "Hello, you are: %[src]" if { var(txn.myip) -m found } test:"ok":http-response return content-type "text/plain" file /my/fancy/response/file if { var(txn.myip) -m found } test:"ok":http-response return content-type "text/plain" lf-file /my/fancy/lof/format/response/file if { var(txn.myip) -m found } test:"ok":http-response return content-type "text/plain" string "My content" hdr X-value value if { var(txn.myip) -m found } test:"ok":http-response return content-type "text/plain" string "My content" hdr X-value x-value hdr Y-value y-value if { var(txn.myip) -m found } test:"ok":http-response return content-type "text/plain" lf-string "Hello, you are: %[src]"
type Int64C ¶
Int64 is used by parsers MaxConn, NbProc, NbThread gen:MaxConn gen:NbProc gen:NbThread gen:StatsMaxconn
type LoadServerStateFromFile ¶
type LoadServerStateFromFile struct {
Argument string
}
type Log ¶
type Log struct { Global bool NoLog bool Address string Length int64 Format string Facility string Level string MinLevel string Comment string }
is-multiple:true no-init:true no-parse:true
type LuaPrependPath ¶
is-multiple:true
type MonitorFail ¶
type MonitorURI ¶
type MonitorURI struct {
URI string
}
type Nameserver ¶
is-multiple:true
type OptionForwardFor ¶
no-parse:true
type OptionHTTPLog ¶
no-parse:true
type OptionHttpchk ¶
no-parse:true
type OptionMysqlCheck ¶
no-parse:true
type OptionPgsqlCheck ¶
no-parse:true
type OptionRedispatch ¶
no-parse:true
type OptionSmtpchk ¶
no-parse:true
type Redirect ¶
type Redirect struct{}
is-multiple:true parser-type:Action is-interface:true no-init:true no-parse:true
type Server ¶
type Server struct { Name string Address string Params []params.ServerOption Comment string }
is-multiple:true
type ServerTemplate ¶
type ServerTemplate struct { Prefix string NumOrRange string Fqdn string Port int64 Params []params.ServerOption Comment string }
is-multiple:true
type SetVar ¶
type SetVar struct { Name string Expr common.Expression Comment string }
is-multiple:true
type SetVarFmt ¶
is-multiple:true test:"ok":set-var-fmt proc.current_state "primary" test:"ok":set-var-fmt proc.bootid "%pid|%t"
type SimpleAutoOnOff ¶
type SimpleAutoOnOff struct{}
no-sections:true struct-name:AutoOnOff parser-type:StringC
type SimpleEnabled ¶
type SimpleEnabled struct{}
no-sections:true struct-name:Enabled parser-type:Enabled
type SimpleNumber ¶
type SimpleNumber struct{}
no-sections:true struct-name:Number parser-type:Int64C
type SimpleOption ¶
no-sections:true struct-name:Option no-init:true
type SimpleString ¶
type SimpleString struct{}
no-sections:true struct-name:String parser-type:StringC
type SimpleStringKeyValue ¶
type SimpleStringKeyValue struct{}
no-sections:true struct-name:StringKeyValue parser-type:StringKeyValueC
type SimpleStringSlice ¶
type SimpleStringSlice struct{}
no-sections:true struct-name:StringSlice parser-type:StringSliceC
type SimpleTimeout ¶
no-sections:true struct-name:Timeout no-init:true
type Socket ¶
type Socket struct { Path string // can be address:port Params []params.BindOption Comment string }
is-multiple:true
type SslModeAsync ¶
type SslModeAsync struct{}
type Stats ¶
type Stats struct{}
struct-name:Stats is-multiple:true parser-type:StatsSettings is-interface:true no-init:true no-parse:true
type StatsSettings ¶
type Stick ¶
type Stick struct { Type string Pattern string Table string Cond string CondTest string Comment string }
is-multiple:true no-parse:true
type StickTable ¶
type StringC ¶
String is used by parsers Mode, DefaultBackend, SimpleTimeTwoWords, StatsTimeout gen:Mode gen:DefaultBackend gen:StatsTimeout gen:LogSendHostName
type StringKeyValueC ¶
StringKeyValueC is a simple key value, for example environment variables.
type StringSliceC ¶
StringSliceC is used by ConfigSnippet, CompressionAlgo, CompressionType gen:ConfigSnippet gen:CompressionAlgo gen:CompressionType
type TCPCheck ¶
type TCPCheck struct{}
struct-name:Checks is-multiple:true parser-type:Action is-interface:true no-init:true no-parse:true test:"ok":tcp-check expect string +OK\ POP3\ ready test:"ok":tcp-check expect string *\ OK\ IMAP4\ ready test:"ok":tcp-check send PING\r\n test:"ok":tcp-check send PING\r\n comment testcomment test:"ok":tcp-check send QUIT\r\n test:"ok":tcp-check send QUIT\r\n comment testcomment test:"ok":tcp-check send info\ replication\r\n test:"ok":tcp-check set-var-fmt(check.name) "%H" test:"ok":tcp-check set-var-fmt(txn.from) "addr=%[src]:%[src_port]" test:"fail":tcp-check set-var-fmt(txn.from) "addr=%[src]:%[src_port] if TRUE" test:"ok":tcp-check unset-var(txn.from)
type TCPRequests ¶
type TCPRequests struct{}
struct-name:Requests is-multiple:true parser-type:TCPType is-interface:true no-init:true no-parse:true
type TCPResponses ¶
type TCPResponses struct{}
struct-name:Responses is-multiple:true parser-type:TCPType is-interface:true no-init:true no-parse:true
type ThreadGroup ¶
is-multiple:true
type TimeTwoWords ¶
type TimeTwoWords struct{}
no-sections:true struct-name:TimeTwoWords no-init:true parser-type:StringC
type UnProcessed ¶
type UnProcessed struct {
Value string
}
no-sections:true is-multiple:true no-init:true no-parse:true
type UniqueIDFormat ¶
type UniqueIDHeader ¶
type UnixBind ¶
type UnixBind struct { Prefix string Mode string User string UID string Group string GID string Comment string }
is-multiple:false
type UseBackend ¶
is-multiple:true