Documentation ¶
Index ¶
- func SplitRequest(parts []string) (command, condition []string)
- func StringExtractComment(s string) string
- func StringSplitIgnoreEmpty(s string, separators ...rune) []string
- func StringSplitWithCommentIgnoreEmpty(s string) (data []string, comment string)
- type Expression
- type ParserData
- type ReturnResultLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitRequest ¶
SplitRequest searches for "if" or "unless" and returns result
func StringExtractComment ¶
StringExtractComment checks if comment is added
func StringSplitIgnoreEmpty ¶
StringSplitIgnoreEmpty while spliting, removes empty items
func StringSplitWithCommentIgnoreEmpty ¶
StringSplitWithCommentIgnoreEmpty while splitting, removes empty items, if we have comment, separate it
Types ¶
type Expression ¶
type Expression struct {
Expr []string
}
Expression is standard HAProxy expression formed by a sample-fetch followed by some converters.
func (*Expression) Parse ¶
func (e *Expression) Parse(expression []string) error
func (*Expression) String ¶
func (e *Expression) String() string
type ParserData ¶
type ParserData interface{}
type ReturnResultLine ¶
Click to show internal directories.
Click to hide internal directories.