params

package
v6.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindOptionsString

func BindOptionsString(options []BindOption) string

func CreateBindOptionDoubleWord

func CreateBindOptionDoubleWord(name1 string, name2 string) (BindOptionDoubleWord, ErrParseBindOption)

CreateBindOptionDoubleWord creates valid two word value

func CreateBindOptionValue

func CreateBindOptionValue(name string, value string) (BindOptionValue, ErrParseBindOption)

CreateBindOptionValue creates valid option with value

func CreateBindOptionWord

func CreateBindOptionWord(name string) (BindOptionWord, ErrParseBindOption)

CreateBindOptionWord creates valid one word value

func CreateServerOptionDoubleWord

func CreateServerOptionDoubleWord(name1 string, name2 string) (ServerOptionDoubleWord, ErrParseServerOption)

CreateServerOptionDoubleWord creates valid two word value

func CreateServerOptionValue

func CreateServerOptionValue(name string, value string) (ServerOptionValue, ErrParseServerOption)

CreateServerOptionValue creates valid option with value

func CreateServerOptionWord

func CreateServerOptionWord(name string) (ServerOptionWord, ErrParseServerOption)

CreateServerOptionWord creates valid one word value

func DgramBindOptionsString

func DgramBindOptionsString(options []DgramBindOption) string

func ServerOptionsString

func ServerOptionsString(options []ServerOption) string

Types

type BalanceHash

type BalanceHash struct {
	Expression string
}

func (*BalanceHash) Parse

func (r *BalanceHash) Parse(parts []string) (BalanceParams, error)

func (*BalanceHash) String

func (r *BalanceHash) String() string

type BalanceHdr

type BalanceHdr struct {
	Name          string
	UseDomainOnly bool
}

func (*BalanceHdr) Parse

func (h *BalanceHdr) Parse(parts []string) (BalanceParams, error)

func (*BalanceHdr) String

func (h *BalanceHdr) String() string

type BalanceParams

type BalanceParams interface {
	String() string
	Parse(parts []string) (BalanceParams, error)
}

type BalanceRandom

type BalanceRandom struct {
	Draws int64
}

func (*BalanceRandom) Parse

func (h *BalanceRandom) Parse(parts []string) (BalanceParams, error)

func (*BalanceRandom) String

func (h *BalanceRandom) String() string

type BalanceRdpCookie

type BalanceRdpCookie struct {
	Name string
}

func (*BalanceRdpCookie) Parse

func (r *BalanceRdpCookie) Parse(parts []string) (BalanceParams, error)

func (*BalanceRdpCookie) String

func (r *BalanceRdpCookie) String() string

type BalanceURI

type BalanceURI struct {
	Depth    int64
	Len      int64
	Whole    bool
	PathOnly bool
}

func (*BalanceURI) Parse

func (b *BalanceURI) Parse(parts []string) (BalanceParams, error)

func (*BalanceURI) String

func (b *BalanceURI) String() string

type BalanceURLParam

type BalanceURLParam struct {
	Param     string
	CheckPost int64
	MaxWait   int64
}

func (*BalanceURLParam) Parse

func (u *BalanceURLParam) Parse(parts []string) (BalanceParams, error)

func (*BalanceURLParam) String

func (u *BalanceURLParam) String() string

type BindOption

type BindOption interface {
	Parse(options []string, currentIndex int) (int, error)
	Valid() bool
	String() string
}

BindOption ...

func ParseBindOptions

func ParseBindOptions(options []string) ([]BindOption, error)

Parse ...

type BindOptionDoubleWord

type BindOptionDoubleWord struct {
	Name  string
	Value string
}

BindOptionDoubleWord ...

func (*BindOptionDoubleWord) Parse

func (b *BindOptionDoubleWord) Parse(options []string, currentIndex int) (int, error)

Parse ...

func (*BindOptionDoubleWord) String

func (b *BindOptionDoubleWord) String() string

String ...

func (*BindOptionDoubleWord) Valid

func (b *BindOptionDoubleWord) Valid() bool

Valid ...

type BindOptionValue

type BindOptionValue struct {
	Name  string
	Value string
}

BindOptionValue ...

func (*BindOptionValue) Parse

func (b *BindOptionValue) Parse(options []string, currentIndex int) (int, error)

Parse ...

func (*BindOptionValue) String

func (b *BindOptionValue) String() string

String ...

func (*BindOptionValue) Valid

func (b *BindOptionValue) Valid() bool

Valid ...

type BindOptionValueValidation

type BindOptionValueValidation struct {
	AllowedValues []string
}

BindOptionValueValidation ...

type BindOptionWord

type BindOptionWord struct {
	Name string
}

BindOptionWord ...

func (*BindOptionWord) Parse

func (b *BindOptionWord) Parse(options []string, currentIndex int) (int, error)

Parse ...

func (*BindOptionWord) String

func (b *BindOptionWord) String() string

String ...

func (*BindOptionWord) Valid

func (b *BindOptionWord) Valid() bool

Valid ...

type DgramBindOption

type DgramBindOption interface {
	Parse(options []string, currentIndex int) (int, error)
	Valid() bool
	String() string
}

DgramBindOption ...

func ParseDgramBindOptions

func ParseDgramBindOptions(options []string) []DgramBindOption

Parse ...

type ErrParseBindOption

type ErrParseBindOption interface {
	Error() string
}

type ErrParseServerOption

type ErrParseServerOption interface {
	Error() string
}

type NotAllowedValuesError

type NotAllowedValuesError struct {
	Have string
	Want []string
}

NotAllowedValuesError struct for allowed values errors

func (*NotAllowedValuesError) Error

func (e *NotAllowedValuesError) Error() string

type NotEnoughParamsError

type NotEnoughParamsError struct{}

ParseError struct for creating parse errors

func (*NotEnoughParamsError) Error

func (e *NotEnoughParamsError) Error() string

type NotFoundError

type NotFoundError struct {
	Have string
	Want string
}

NotFoundError struct for creating parse errors

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type PersistParams

type PersistParams interface {
	String() string
	Parse(parts []string) (PersistParams, error)
}

type PersistRdpCookie

type PersistRdpCookie struct {
	Name string
}

func (*PersistRdpCookie) Parse

func (r *PersistRdpCookie) Parse(parts []string) (PersistParams, error)

func (*PersistRdpCookie) String

func (r *PersistRdpCookie) String() string

type ServerOption

type ServerOption interface {
	Parse(options []string, currentIndex int) (int, error)
	Valid() bool
	String() string
}

ServerOption ...

func ParseServerOptions

func ParseServerOptions(options []string) []ServerOption

Parse ...

type ServerOptionDoubleWord

type ServerOptionDoubleWord struct {
	Name  string
	Value string
}

ServerOptionDoubleWord ...

func (*ServerOptionDoubleWord) Parse

func (b *ServerOptionDoubleWord) Parse(options []string, currentIndex int) (int, error)

Parse ...

func (*ServerOptionDoubleWord) String

func (b *ServerOptionDoubleWord) String() string

String ...

func (*ServerOptionDoubleWord) Valid

func (b *ServerOptionDoubleWord) Valid() bool

Valid ...

type ServerOptionIDValue

type ServerOptionIDValue struct {
	ID    string
	Name  string
	Value string
}

func (*ServerOptionIDValue) Parse

func (b *ServerOptionIDValue) Parse(options []string, currentIndex int) (int, error)

Parse ...

func (*ServerOptionIDValue) String

func (b *ServerOptionIDValue) String() string

String ...

func (*ServerOptionIDValue) Valid

func (b *ServerOptionIDValue) Valid() bool

Valid ...

type ServerOptionValue

type ServerOptionValue struct {
	Name  string
	Value string
}

ServerOptionValue ...

func (*ServerOptionValue) Parse

func (b *ServerOptionValue) Parse(options []string, currentIndex int) (int, error)

Parse ...

func (*ServerOptionValue) String

func (b *ServerOptionValue) String() string

String ...

func (*ServerOptionValue) Valid

func (b *ServerOptionValue) Valid() bool

Valid ...

type ServerOptionWord

type ServerOptionWord struct {
	Name string
}

ServerOptionWord ...

func (*ServerOptionWord) Parse

func (b *ServerOptionWord) Parse(options []string, currentIndex int) (int, error)

Parse ...

func (*ServerOptionWord) String

func (b *ServerOptionWord) String() string

String ...

func (*ServerOptionWord) Valid

func (b *ServerOptionWord) Valid() bool

Valid ...

Jump to

Keyboard shortcuts

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