types

package
v5.1.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	Name      string
	Criterion string
	Value     string
	Comment   string
}

type Action

type Action interface {
	Parse(parts []string, parserType ParserType, comment string) error
	String() string
	GetComment() string
}

type ArrayStringKeyValue

type ArrayStringKeyValue struct{}

type Balance

type Balance struct {
	Algorithm string
	Params    params.BalanceParams
	Comment   string
}

type Bind

type Bind struct {
	Path    string // can be address:port or socket path
	Params  []params.BindOption
	Comment string
}

type BindProcess

type BindProcess struct {
	Process string
	Comment string
}

type CPUMap

type CPUMap struct {
	Process string
	CPUSet  string
	Comment string
}

type Command

type Command struct {
	Args    string
	Comment string
}

type Comments

type Comments struct {
	Value string
}

type ConfigHash

type ConfigHash struct {
	Value string
}

type ConfigVersion

type ConfigVersion struct {
	Value int64
}
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
}

type DeclareCapture

type DeclareCapture struct {
	Type    string
	Length  int64
	Comment string
}

type DefaultBind

type DefaultBind struct {
	Params  []params.BindOption
	Comment string
}

type DefaultPath

type DefaultPath struct {
	Type    string
	Path    string
	Comment string
}

type DefaultServer

type DefaultServer struct {
	Params  []params.ServerOption
	Comment string
}

type DgramBind

type DgramBind struct {
	Path    string // can be address:port or socket path
	Params  []params.DgramBindOption
	Comment string
}

type EmailAlert

type EmailAlert struct {
	Attribute string
	Value     string
	Comment   string
}

type Enabled

type Enabled struct {
	Comment string
}

Enabled is used by parsers Daemon, MasterWorker, ExternalCheck, NoSplice, CompressionOffload

type ErrorFile

type ErrorFile struct {
	Code    string
	File    string
	Comment string
}

type ErrorFiles

type ErrorFiles struct {
	Name    string
	Codes   []int64
	Comment string
}

type ErrorLoc302

type ErrorLoc302 struct {
	Code    string
	URL     string
	Comment string
}

type ErrorLoc303

type ErrorLoc303 struct {
	Code    string
	URL     string
	Comment string
}

type ExternalCheckCommand

type ExternalCheckCommand struct {
	Command string
	Comment string
}

type ExternalCheckPath

type ExternalCheckPath struct {
	Path    string
	Comment string
}

type Filter

type Filter interface {
	Parse(parts []string, comment string) error
	Result() common.ReturnResultLine
}

type Filters

type Filters struct{}

type ForcePersist

type ForcePersist struct {
	Cond     string
	CondTest string
	Comment  string
}

type Group

type Group struct {
	Name    string
	Users   []string
	Comment string
}

type H1CaseAdjust

type H1CaseAdjust struct {
	From    string
	To      string
	Comment string
}

type HTTPAfterResponse

type HTTPAfterResponse struct{}

type HTTPCheck

type HTTPCheck struct{}

type HTTPCheckV2

type HTTPCheckV2 struct {
	Type            string
	ExclamationMark bool
	Match           string
	Pattern         string
	Comment         string
}

type HTTPClientResolversPrefer

type HTTPClientResolversPrefer struct {
	Type string
}

type HTTPClientSSLVerify

type HTTPClientSSLVerify struct {
	Type string
}

type HTTPErrors

type HTTPErrors struct{}

type HTTPRequests

type HTTPRequests struct{}

type HTTPResponses

type HTTPResponses struct{}

type HTTPReuse

type HTTPReuse struct {
	ShareType string
	Comment   string
}

type HTTPSendNameHeader

type HTTPSendNameHeader struct {
	Name    string
	Comment string
}

type HashType

type HashType struct {
	Method   string
	Function string
	Modifier string
	Comment  string
}

type IgnorePersist

type IgnorePersist struct {
	Cond     string
	CondTest string
	Comment  string
}

type Int64C

type Int64C struct {
	Value   int64
	Comment string
}

Int64 is used by parsers MaxConn, NbProc, NbThread

type LoadServerStateFromFile

type LoadServerStateFromFile struct {
	Argument string
}

type Log

type Log struct {
	Global      bool
	NoLog       bool
	Address     string
	Length      int64
	Format      string
	SampleRange string
	SampleSize  int64
	Facility    string
	Level       string
	MinLevel    string
	Comment     string
}

type LogStdErr

type LogStdErr struct {
	Global      bool
	Address     string
	Length      int64
	Format      string
	SampleRange string
	SampleSize  int64
	Facility    string
	Level       string
	MinLevel    string
	Comment     string
}

type LuaLoad

type LuaLoad struct {
	File    string
	Comment string
}

type LuaPrependPath

type LuaPrependPath struct {
	Path    string
	Type    string
	Comment string
}

type Mailer

type Mailer struct {
	Name    string
	IP      string
	Port    int64
	Comment string
}

type MonitorFail

type MonitorFail struct {
	Condition string
	ACLList   []string
}

type MonitorURI

type MonitorURI struct {
	URI string
}

type Nameserver

type Nameserver struct {
	Name    string
	Address string
	Comment string
}

type NumaCPUMapping

type NumaCPUMapping struct {
	NoOption bool
	Comment  string
}

type OptionForwardFor

type OptionForwardFor struct {
	Except  string
	Header  string
	IfNone  bool
	Comment string
}

type OptionHTTPLog

type OptionHTTPLog struct {
	NoOption bool
	Clf      bool
	Comment  string
}

type OptionHTTPRestrictReqHdrNames

type OptionHTTPRestrictReqHdrNames struct {
	Policy  string
	Comment string
}

type OptionHttpchk

type OptionHttpchk struct {
	NoOption bool
	Method   string
	URI      string
	Version  string
	Comment  string
}

type OptionMaxReqs

type OptionMaxReqs struct {
	Reqs    int64
	Comment string
}

type OptionMysqlCheck

type OptionMysqlCheck struct {
	NoOption      bool
	User          string
	ClientVersion string
	Comment       string
}

type OptionOriginalTo

type OptionOriginalTo struct {
	Except  string
	Header  string
	Comment string
}

type OptionPgsqlCheck

type OptionPgsqlCheck struct {
	NoOption bool
	User     string
	Comment  string
}

type OptionRedispatch

type OptionRedispatch struct {
	NoOption bool
	Interval *int64
	Comment  string
}

type OptionSmtpchk

type OptionSmtpchk struct {
	NoOption bool
	Hello    string
	Domain   string
	Comment  string
}

type ParserType

type ParserType int
const (
	HTTP ParserType = iota
	TCP
)

type PassHeader

type PassHeader struct {
	Name      string
	Criterion string
	Value     string
	Comment   string
}

type Peer

type Peer struct {
	Name    string
	IP      string
	Port    int64
	Shard   string
	Comment string
}

type Persist

type Persist struct {
	Type    string
	Params  params.PersistParams
	Comment string
}

type ProcessVary

type ProcessVary struct {
	On      bool
	Comment string
}

type QuicSocketOwner

type QuicSocketOwner struct {
	Owner string
}

type Redirect

type Redirect struct{}

type Section

type Section struct {
	Name         string
	FromDefaults string
	Comment      string
}

type Server

type Server struct {
	Name    string
	Address string
	Params  []params.ServerOption
	Comment string
}

type ServerTemplate

type ServerTemplate struct {
	Prefix     string
	NumOrRange string
	Fqdn       string
	Port       int64
	Params     []params.ServerOption
	Comment    string
}

type SetParam

type SetParam struct {
	Name      string
	Format    string
	Criterion string
	Value     string
	Comment   string
}

type SetVar

type SetVar struct {
	Name    string
	Expr    common.Expression
	Comment string
}

type SetVarFmt

type SetVarFmt struct {
	Name    string
	Format  string
	Comment string
}

type SimpleAutoOnOff

type SimpleAutoOnOff struct{}

type SimpleEnabled

type SimpleEnabled struct{}

type SimpleNumber

type SimpleNumber struct{}

type SimpleOnOff

type SimpleOnOff struct{}

type SimpleOption

type SimpleOption struct {
	NoOption bool
	Comment  string
}

type SimpleSize

type SimpleSize struct{}

type SimpleString

type SimpleString struct{}

type SimpleStringKeyValue

type SimpleStringKeyValue struct{}

type SimpleStringSlice

type SimpleStringSlice struct{}

type SimpleTime

type SimpleTime struct{}

type SimpleTimeout

type SimpleTimeout struct {
	Value   string
	Comment string
}

type SimpleWord

type SimpleWord struct{}

type Socket

type Socket struct {
	Path    string // can be address:port
	Params  []params.BindOption
	Comment string
}

type Source

type Source struct {
	Address       string
	Port          int64
	UseSrc        bool
	AddressSecond string
	PortSecond    int64
	Client        bool
	ClientIP      bool
	HdrIP         bool
	Hdr           string
	Occ           string
	Interface     string
	Comment       string
}

type SslEngine

type SslEngine struct {
	Name       string
	Algorithms []string
	Comment    string
}

type SslModeAsync

type SslModeAsync struct{}

type Stats

type Stats struct{}

type StatsSettings

type StatsSettings interface {
	Parse(parts []string, comment string) error
	String() string
	GetComment() string
}

type Stick

type Stick struct {
	Type     string
	Pattern  string
	Table    string
	Cond     string
	CondTest string
	Comment  string
}

type StickTable

type StickTable struct {
	Type   string
	Length string
	Size   string

	Expire  string
	NoPurge bool
	Peers   string
	SrvKey  string
	WriteTo string
	Store   string
	Comment string
}

type StringC

type StringC struct {
	Value   string
	Comment string
}

String is used by parsers Mode, DefaultBackend, SimpleTimeTwoWords, StatsTimeout, CompressionDirection, CompressionAlgoReq

type StringKeyValueC

type StringKeyValueC struct {
	Key     string
	Value   string
	Comment string
}

StringKeyValueC is a simple key value, for example environment variables.

type StringSliceC

type StringSliceC struct {
	Value   []string
	Comment string
}

StringSliceC is used by ConfigSnippet, CompressionAlgo, CompressionType, CompressionTypeReq, CompressionTypeRes, CompressionAlgoRes

type TCPCheck

type TCPCheck struct{}

type TCPRequests

type TCPRequests struct{}

type TCPResponses

type TCPResponses struct{}

type TCPType

type TCPType interface {
	Parse(parts []string, comment string) error
	String() string
	GetComment() string
}

type Table

type Table struct {
	Name    string
	Type    string
	TypeLen int64
	Size    string
	Expire  string
	WriteTo string
	NoPurge bool
	Store   string
	Comment string
}

type ThreadGroup

type ThreadGroup struct {
	Group      string
	NumOrRange string
	Comment    string
}

type TimeTwoWords

type TimeTwoWords struct{}

type UnProcessed

type UnProcessed struct {
	Value string
}

type UniqueIDFormat

type UniqueIDFormat struct {
	LogFormat string
	Comment   string
}

type UniqueIDHeader

type UniqueIDHeader struct {
	Name    string
	Comment string
}

type UnixBind

type UnixBind struct {
	Prefix  string
	Mode    string
	User    string
	UID     string
	Group   string
	GID     string
	Comment string
}

type UseBackend

type UseBackend struct {
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

type UseFcgiApp

type UseFcgiApp struct {
	Name    string
	Comment string
}

type UseServer

type UseServer struct {
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

type User

type User struct {
	Name       string
	Password   string
	IsInsecure bool
	Groups     []string
	Comment    string
}

Jump to

Keyboard shortcuts

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