Documentation
¶
Index ¶
- type AddACL
- type AddHeader
- type Allow
- type Auth
- type CacheUse
- type Capture
- type CheckComment
- type CheckConnect
- type CheckDisableOn404
- type CheckExpect
- type CheckSend
- type CheckSendHeader
- type CheckSendState
- type DelACL
- type DelHeader
- type DelMap
- type Deny
- type DisableL7Retry
- type DoResolve
- type EarlyHint
- type Lua
- type Redirect
- type Reject
- type ReplaceHeader
- type ReplacePath
- type ReplaceURI
- type ReplaceValue
- type ScIncGpc0
- type ScIncGpc1
- type ScSetGpt0
- type SendSpoeGroup
- type SetDst
- type SetDstPort
- type SetHeader
- type SetLogLevel
- type SetMap
- type SetMark
- type SetMethod
- type SetNice
- type SetPath
- type SetPriorityClass
- type SetPriorityOffset
- type SetQuery
- type SetSrc
- type SetSrcPort
- type SetStatus
- type SetTos
- type SetURI
- type SetVar
- type SilentDrop
- type StrictMode
- type Tarpit
- type TrackSc0
- type TrackSc1
- type TrackSc2
- type UnsetVar
- type UseService
- type WaitForHandshake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddACL ¶
func (*AddACL) GetComment ¶
type AddHeader ¶
func (*AddHeader) GetComment ¶
type Allow ¶
func (*Allow) GetComment ¶
type Auth ¶
func (*Auth) GetComment ¶
type CacheUse ¶
func (*CacheUse) GetComment ¶
type Capture ¶
type Capture struct {
Sample string
Len *int64 // Has to be > 0.
SlotID *int64
Cond string
CondTest string
Comment string
}
func (*Capture) GetComment ¶
type CheckComment ¶
http-check comment <string>
func (*CheckComment) GetComment ¶
func (c *CheckComment) GetComment() string
func (*CheckComment) String ¶
func (c *CheckComment) String() string
type CheckConnect ¶
type CheckConnect struct {
Default bool
Port string // TODO: int64?
Addr string
SendProxy bool
ViaSOCKS4 bool
SSL bool
SNI string
ALPN string
Linger bool
Proto string
CheckComment string
Comment string
}
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) String ¶
func (c *CheckConnect) String() string
type CheckDisableOn404 ¶
type CheckDisableOn404 struct {
Comment string
}
http-check disable-on-404
func (*CheckDisableOn404) GetComment ¶
func (c *CheckDisableOn404) GetComment() string
func (*CheckDisableOn404) Parse ¶
func (c *CheckDisableOn404) Parse(parts []string, comment string) error
func (*CheckDisableOn404) String ¶
func (c *CheckDisableOn404) 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 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) String ¶
func (c *CheckExpect) String() string
type CheckSend ¶
type CheckSend struct {
Method string
URI string
URILogFormat string
Version string
Header []CheckSendHeader
Body string
BodyLogFormat string
CheckComment string
Comment string
}
http-check send [meth <method>] [{ uri <uri> | uri-lf <fmt> }>] [ver <version>]
[hdr <name> <fmt>]* [{ body <string> | body-lf <fmt> }]
[comment <msg>]
func (*CheckSend) GetComment ¶
type CheckSendHeader ¶
type CheckSendState ¶
type CheckSendState struct {
Comment string
}
http-check send-state
func (*CheckSendState) GetComment ¶
func (c *CheckSendState) GetComment() string
func (*CheckSendState) String ¶
func (c *CheckSendState) String() string
type DelACL ¶
func (*DelACL) GetComment ¶
type DelHeader ¶
func (*DelHeader) GetComment ¶
type DelMap ¶
func (*DelMap) GetComment ¶
type Deny ¶
func (*Deny) GetComment ¶
type DisableL7Retry ¶
func (*DisableL7Retry) GetComment ¶
func (f *DisableL7Retry) GetComment() string
func (*DisableL7Retry) String ¶
func (f *DisableL7Retry) 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 EarlyHint ¶
func (*EarlyHint) GetComment ¶
type Lua ¶
func (*Lua) GetComment ¶
type Redirect ¶
type Redirect struct {
Type string
Value string
Code string
Option string
Cond string
CondTest string
Comment string
}
func (*Redirect) GetComment ¶
type Reject ¶
func (*Reject) GetComment ¶
type ReplaceHeader ¶
type ReplaceHeader struct {
Name string
MatchRegex string
ReplaceFmt string
Cond string
CondTest string
Comment string
}
func (*ReplaceHeader) GetComment ¶
func (f *ReplaceHeader) GetComment() string
func (*ReplaceHeader) String ¶
func (f *ReplaceHeader) String() string
type ReplacePath ¶
type ReplacePath struct {
MatchRegex string
ReplaceFmt string
Cond string
CondTest string
Comment string
}
func (*ReplacePath) GetComment ¶
func (f *ReplacePath) GetComment() string
func (*ReplacePath) String ¶
func (f *ReplacePath) String() string
type ReplaceURI ¶
type ReplaceURI struct {
MatchRegex string
ReplaceFmt string
Cond string
CondTest string
Comment string
}
func (*ReplaceURI) GetComment ¶
func (f *ReplaceURI) GetComment() string
func (*ReplaceURI) String ¶
func (f *ReplaceURI) String() string
type ReplaceValue ¶
type ReplaceValue struct {
Name string
MatchRegex string
ReplaceFmt string
Cond string
CondTest string
Comment string
}
func (*ReplaceValue) GetComment ¶
func (f *ReplaceValue) GetComment() string
func (*ReplaceValue) String ¶
func (f *ReplaceValue) String() string
type ScIncGpc0 ¶
func (*ScIncGpc0) GetComment ¶
type ScIncGpc1 ¶
func (*ScIncGpc1) 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) String ¶
func (f *SendSpoeGroup) String() string
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) String ¶
func (f *SetDstPort) String() string
type SetHeader ¶
func (*SetHeader) GetComment ¶
type SetLogLevel ¶
func (*SetLogLevel) GetComment ¶
func (f *SetLogLevel) GetComment() string
func (*SetLogLevel) String ¶
func (f *SetLogLevel) String() string
type SetMap ¶
type SetMap struct {
FileName string
KeyFmt string
ValueFmt string
Cond string
CondTest string
Comment string
}
func (*SetMap) GetComment ¶
type SetMark ¶
func (*SetMark) GetComment ¶
type SetMethod ¶
func (*SetMethod) GetComment ¶
type SetNice ¶
func (*SetNice) GetComment ¶
type SetPath ¶
func (*SetPath) GetComment ¶
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, 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, comment string) error
func (*SetPriorityOffset) String ¶
func (f *SetPriorityOffset) String() string
type SetQuery ¶
func (*SetQuery) GetComment ¶
type SetSrc ¶
type SetSrc struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetSrc) GetComment ¶
type SetSrcPort ¶
type SetSrcPort struct {
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetSrcPort) GetComment ¶
func (f *SetSrcPort) GetComment() string
func (*SetSrcPort) String ¶
func (f *SetSrcPort) String() string
type SetStatus ¶
func (*SetStatus) GetComment ¶
type SetTos ¶
func (*SetTos) GetComment ¶
type SetURI ¶
func (*SetURI) GetComment ¶
type SetVar ¶
type SetVar struct {
VarScope string
VarName string
Expr common.Expression
Cond string
CondTest string
Comment string
}
func (*SetVar) GetComment ¶
type SilentDrop ¶
func (*SilentDrop) GetComment ¶
func (f *SilentDrop) GetComment() string
func (*SilentDrop) String ¶
func (f *SilentDrop) String() string
type StrictMode ¶
func (*StrictMode) GetComment ¶
func (f *StrictMode) GetComment() string
func (*StrictMode) String ¶
func (f *StrictMode) String() string
type Tarpit ¶
func (*Tarpit) GetComment ¶
type TrackSc0 ¶
func (*TrackSc0) GetComment ¶
type TrackSc1 ¶
func (*TrackSc1) GetComment ¶
type TrackSc2 ¶
func (*TrackSc2) GetComment ¶
type UnsetVar ¶
func (*UnsetVar) GetComment ¶
type UseService ¶
func (*UseService) GetComment ¶
func (us *UseService) GetComment() string
func (*UseService) Parse ¶
func (us *UseService) Parse(parts []string, comment string) error
Parse parses http-request user-service <name> [ { if | unless } <condition> ]
func (*UseService) String ¶
func (us *UseService) String() string
type WaitForHandshake ¶
func (*WaitForHandshake) GetComment ¶
func (f *WaitForHandshake) GetComment() string
func (*WaitForHandshake) Parse ¶
func (f *WaitForHandshake) Parse(parts []string, comment string) error
func (*WaitForHandshake) String ¶
func (f *WaitForHandshake) String() string
Source Files
¶
- add-acl.go
- add-header.go
- allow.go
- auth.go
- cache-use.go
- capture.go
- check-comment.go
- check-connect.go
- check-disable-on-404.go
- check-expect.go
- check-send-state.go
- check-send.go
- del-acl.go
- del-header.go
- del-map.go
- deny.go
- disable-l7-retry.go
- do-resolve.go
- early-hint.go
- lua.go
- redirect.go
- reject.go
- replace-header.go
- replace-path.go
- replace-uri.go
- replace-value.go
- sc-inc-gpc0.go
- sc-inc-gpc1.go
- sc-set-gpt0.go
- send-spoe-group.go
- set-dst-port.go
- set-dst.go
- set-header.go
- set-log-level.go
- set-map.go
- set-mark.go
- set-method.go
- set-nice.go
- set-path.go
- set-priority-class.go
- set-priority-offset.go
- set-query.go
- set-src-port.go
- set-src.go
- set-status.go
- set-tos.go
- set-uri.go
- set-var.go
- silent-drop.go
- strict-mode.go
- tarpit.go
- track-sc0.go
- track-sc1.go
- track-sc2.go
- unset-var.go
- use-service.go
- wait-for-handshake.go
Click to show internal directories.
Click to hide internal directories.