params

package
v3.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

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 ServerOptionsString

func ServerOptionsString(options []ServerOption) string

Types

type BalanceHdr

type BalanceHdr struct {
	Name          string
	UseDomainOnly bool
}

func (*BalanceHdr) Parse

func (h *BalanceHdr) Parse(parts []string) (bp BalanceParams, err 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) (bp BalanceParams, err 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) (bp BalanceParams, err error)

func (*BalanceRdpCookie) String

func (r *BalanceRdpCookie) String() string

type BalanceURI

type BalanceURI struct {
	Depth int64
	Len   int64
	Whole bool
}

func (*BalanceURI) Parse

func (b *BalanceURI) Parse(parts []string) (bp BalanceParams, err 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) (bp BalanceParams, err 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

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 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 ErrNotEnoughParams

type ErrNotEnoughParams struct {
}

ParseError struct for creating parse errors

func (*ErrNotEnoughParams) Error

func (e *ErrNotEnoughParams) Error() string

type ErrNotFound

type ErrNotFound struct {
	Have string
	Want string
}

ErrNotFound struct for creating parse errors

func (*ErrNotFound) Error

func (e *ErrNotFound) Error() string

type ErrParseBindOption

type ErrParseBindOption interface {
	Error() string
}

type ErrParseServerOption

type ErrParseServerOption interface {
	Error() 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 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