Documentation
¶
Overview ¶
Copyright 2019 HAProxy Technologies
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CheckParsePair(parts []string, i *int, str *string)
- func CheckWritePair(sb io.StringWriter, key string, value string)
- type CheckConnect
- type CheckExpect
- type DoResolve
- type Lua
- type Reject
- type ScAddGpc
- type ScIncGpc
- type ScIncGpc0
- type ScIncGpc1
- type ScSetGpt
- type ScSetGpt0
- type SendSpoeGroup
- type SetBandwidthLimit
- type SetBcMark
- type SetBcTos
- type SetDst
- type SetDstPort
- type SetFcMark
- type SetFcTos
- type SetLogLevel
- type SetMark
- type SetNice
- type SetPriorityClass
- type SetPriorityOffset
- type SetSrcPort
- type SetTos
- type SetVar
- type SetVarCheck
- type SetVarFmt
- type SetVarFmtCheck
- type SilentDrop
- type TrackSc
- type TrackScT
- type UnsetVar
- type UnsetVarCheck
- type UseService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckParsePair ¶
func CheckWritePair ¶
func CheckWritePair(sb io.StringWriter, key string, value string)
Types ¶
type CheckConnect ¶
type CheckConnect struct {
Port string
Addr string
SNI string
ALPN string
Proto string
CheckComment string
Comment string
Default bool
SendProxy bool
ViaSOCKS4 bool
SSL bool
Linger bool
}
tcp/http-check connect
[default] [port <expr>] [addr <ip>] [send-proxy] [via-socks4] [ssl] [sni <sni>] [alpn <alpn>] [linger] [proto <name>] [comment <msg>]
func (*CheckConnect) GetComment ¶
func (c *CheckConnect) GetComment() string
func (*CheckConnect) Parse ¶
func (c *CheckConnect) Parse(parts []string, parserType types.ParserType, comment string) error
func (*CheckConnect) String ¶
func (c *CheckConnect) String() string
type CheckExpect ¶
type CheckExpect struct {
MinRecv *int64
CheckComment string
OKStatus string
ErrorStatus string
TimeoutStatus string
OnSuccess string
OnError string
StatusCode string
ExclamationMark bool
Match string
Pattern string
Comment string
}
http-check/tcp-check expect
[min-recv <int>] [comment <msg>] [ok-status <st>] [error-status <st>] [tout-status <st>] [on-success <fmt>] [on-error <fmt>] [status-code <expr>] [!] <match> <pattern>
func (*CheckExpect) GetComment ¶
func (c *CheckExpect) GetComment() string
func (*CheckExpect) Parse ¶
func (c *CheckExpect) Parse(parts []string, parserType types.ParserType, comment string) error
func (*CheckExpect) String ¶
func (c *CheckExpect) String() string
type DoResolve ¶
type DoResolve struct {
Var string
Resolvers string
Protocol string
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*DoResolve) GetComment ¶
type ScAddGpc ¶
type ScAddGpc struct {
Idx string
ID string
Int *int64
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*ScAddGpc) GetComment ¶
type ScSetGpt ¶
type ScSetGpt struct {
ScID string
Idx int64
Int *int64
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*ScSetGpt) GetComment ¶
type ScSetGpt0 ¶
type ScSetGpt0 struct {
ID string
Int *int64
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*ScSetGpt0) GetComment ¶
type SendSpoeGroup ¶
func (*SendSpoeGroup) GetComment ¶
func (f *SendSpoeGroup) GetComment() string
func (*SendSpoeGroup) Parse ¶
func (f *SendSpoeGroup) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SendSpoeGroup) String ¶
func (f *SendSpoeGroup) String() string
type SetBandwidthLimit ¶
type SetBandwidthLimit struct {
Limit common.Expression
Period common.Expression
Name string
Cond string
CondTest string
Comment string
}
func (*SetBandwidthLimit) GetComment ¶
func (f *SetBandwidthLimit) GetComment() string
func (*SetBandwidthLimit) Parse ¶
func (f *SetBandwidthLimit) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetBandwidthLimit) String ¶
func (f *SetBandwidthLimit) String() string
type SetBcMark ¶
type SetBcMark struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetBcMark) GetComment ¶
type SetBcTos ¶
type SetBcTos struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetBcTos) GetComment ¶
type SetDst ¶
type SetDst struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetDst) GetComment ¶
type SetDstPort ¶
type SetDstPort struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetDstPort) GetComment ¶
func (f *SetDstPort) GetComment() string
func (*SetDstPort) Parse ¶
func (f *SetDstPort) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetDstPort) String ¶
func (f *SetDstPort) String() string
type SetFcMark ¶
type SetFcMark struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetFcMark) GetComment ¶
type SetFcTos ¶
type SetFcTos struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetFcTos) GetComment ¶
type SetLogLevel ¶
func (*SetLogLevel) GetComment ¶
func (f *SetLogLevel) GetComment() string
func (*SetLogLevel) Parse ¶
func (f *SetLogLevel) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetLogLevel) String ¶
func (f *SetLogLevel) String() string
type SetPriorityClass ¶
type SetPriorityClass struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetPriorityClass) GetComment ¶
func (f *SetPriorityClass) GetComment() string
func (*SetPriorityClass) Parse ¶
func (f *SetPriorityClass) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetPriorityClass) String ¶
func (f *SetPriorityClass) String() string
type SetPriorityOffset ¶
type SetPriorityOffset struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetPriorityOffset) GetComment ¶
func (f *SetPriorityOffset) GetComment() string
func (*SetPriorityOffset) Parse ¶
func (f *SetPriorityOffset) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetPriorityOffset) String ¶
func (f *SetPriorityOffset) String() string
type SetSrcPort ¶
type SetSrcPort struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetSrcPort) GetComment ¶
func (f *SetSrcPort) GetComment() string
func (*SetSrcPort) Parse ¶
func (f *SetSrcPort) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetSrcPort) String ¶
func (f *SetSrcPort) String() string
type SetVar ¶
type SetVar struct {
VarScope string
VarName string
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetVar) GetComment ¶
type SetVarCheck ¶
type SetVarCheck struct {
VarScope string
VarName string
Expr common.Expression
Comment string
}
func (*SetVarCheck) GetComment ¶
func (f *SetVarCheck) GetComment() string
func (*SetVarCheck) Parse ¶
func (f *SetVarCheck) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetVarCheck) String ¶
func (f *SetVarCheck) String() string
type SetVarFmt ¶
type SetVarFmt struct {
VarScope string
VarName string
Fmt common.Expression
Cond string
CondTest string
Comment string
}
func (*SetVarFmt) GetComment ¶
type SetVarFmtCheck ¶
type SetVarFmtCheck struct {
VarScope string
VarName string
Format common.Expression
Comment string
}
func (*SetVarFmtCheck) GetComment ¶
func (f *SetVarFmtCheck) GetComment() string
func (*SetVarFmtCheck) Parse ¶
func (f *SetVarFmtCheck) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SetVarFmtCheck) String ¶
func (f *SetVarFmtCheck) String() string
type SilentDrop ¶
func (*SilentDrop) GetComment ¶
func (f *SilentDrop) GetComment() string
func (*SilentDrop) Parse ¶
func (f *SilentDrop) Parse(parts []string, parserType types.ParserType, comment string) error
func (*SilentDrop) String ¶
func (f *SilentDrop) String() string
type TrackSc ¶
type TrackSc struct {
Type TrackScT
StickCounter int64
Key string
Table string
Comment string
Cond string
CondTest string
}
func (*TrackSc) GetComment ¶
type UnsetVarCheck ¶
func (*UnsetVarCheck) GetComment ¶
func (f *UnsetVarCheck) GetComment() string
func (*UnsetVarCheck) Parse ¶
func (f *UnsetVarCheck) Parse(parts []string, parserType types.ParserType, comment string) error
func (*UnsetVarCheck) String ¶
func (f *UnsetVarCheck) String() string
type UseService ¶
func (*UseService) GetComment ¶
func (us *UseService) GetComment() string
func (*UseService) Parse ¶
func (us *UseService) Parse(parts []string, parserType types.ParserType, comment string) error
Parse parses http-request user-service <name> [ { if | unless } <condition> ]
func (*UseService) String ¶
func (us *UseService) String() string
Source Files
¶
- check-connect.go
- check-expect.go
- check-set-var-fmt.go
- do-resolve.go
- lua.go
- misc.go
- reject.go
- sc-inc-gpc0.go
- sc-inc-gpc1.go
- sc-set-gpt.go
- sc-set-gpt0.go
- sc_add_gpc.go
- sc_inc_gpc.go
- send-spoe-group.go
- set-bandwidth-limit.go
- set-bc-mark.go
- set-bc-tos.go
- set-dst-port.go
- set-dst.go
- set-fc-mark.go
- set-fc-tos.go
- set-log-level.go
- set-mark.go
- set-nice.go
- set-priority-class.go
- set-priority-offset.go
- set-src-port.go
- set-tos.go
- set-var-check.go
- set-var-fmt.go
- set-var.go
- silent-drop.go
- track-sc.go
- unset-var-check.go
- unset-var.go
- use-service.go
Click to show internal directories.
Click to hide internal directories.