Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToBoolMap

func AddToBoolMap(data map[string]bool, items ...string)

func SplitRequest

func SplitRequest(parts []string) (command, condition []string)

searches for "if" or "unless" and returns result

func StringExtractComment

func StringExtractComment(s string) string

StringExtractComment checks if comment is added

func StringSplitIgnoreEmpty

func StringSplitIgnoreEmpty(s string, separators ...rune) []string

StringSplitIgnoreEmpty while spliting, removes empty items

func StringSplitWithCommentIgnoreEmpty

func StringSplitWithCommentIgnoreEmpty(s string, separators ...rune) (data []string, comment string)

StringSplitWithCommentIgnoreEmpty while spliting, 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

type ReturnResultLine struct {
	Data    string
	Comment string
}

Jump to

Keyboard shortcuts

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