Documentation ¶
Overview ¶
Package checksetter holds various setter types that can be used to construct lists of check functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float64 ¶
Float64 can be used to set a list of checkers for a float64.
func (Float64) AllowedValues ¶
AllowedValues returns a description of the allowed values. It includes the separator to be used
func (Float64) CheckSetter ¶
CheckSetter panics if the setter has not been properly created - if the Value is nil.
func (Float64) CurrentValue ¶
CurrentValue returns the current setting of the parameter value
type Int64 ¶
Int64 can be used to set a list of checkers for an int64.
func (Int64) AllowedValues ¶
AllowedValues returns a description of the allowed values. It includes the separator to be used
func (Int64) CheckSetter ¶
CheckSetter panics if the setter has not been properly created - if the Value is nil.
func (Int64) CurrentValue ¶
CurrentValue returns the current setting of the parameter value
type String ¶
String can be used to set a list of checkers for a string.
func (String) AllowedValues ¶
AllowedValues returns a description of the allowed values. It includes the separator to be used
func (String) CheckSetter ¶
CheckSetter panics if the setter has not been properly created - if the Value is nil.
func (String) CurrentValue ¶
CurrentValue returns the current setting of the parameter value
type StringSlice ¶
type StringSlice struct { param.ValueReqMandatory param.NilAVM Value *[]check.StringSlice }
StringSlice can be used to set a list of checkers for a slice of strings.
func (StringSlice) AllowedValues ¶
func (s StringSlice) AllowedValues() string
AllowedValues returns a description of the allowed values. It includes the separator to be used
func (StringSlice) CheckSetter ¶
func (s StringSlice) CheckSetter(name string)
CheckSetter panics if the setter has not been properly created - if the Value is nil.
func (StringSlice) CurrentValue ¶
func (s StringSlice) CurrentValue() string
CurrentValue returns the current setting of the parameter value
func (StringSlice) SetWithVal ¶
func (s StringSlice) SetWithVal(_ string, paramVal string) error
SetWithVal (called when a value follows the parameter) splits the value into a slice of check.StringSlice's and sets the Value accordingly. It will return an error if a check is breached.