Documentation
¶
Index ¶
- Variables
- type Bool
- type Duration
- type Forcible
- func (this Forcible[V, T, MV]) Evaluate(other V) V
- func (this Forcible[V, T, MV]) EvaluateOr(other V, def V) V
- func (this Forcible[V, T, MV]) Get() T
- func (this Forcible[V, T, MV]) GetOr(def T) T
- func (this Forcible[V, T, MV]) IsForced() bool
- func (this Forcible[V, T, MV]) IsPresent() bool
- func (this Forcible[V, T, MV]) Select(target Forcible[V, T, MV]) Forcible[V, T, MV]
- func (this *Forcible[V, T, MV]) Set(plain string) error
- func (this Forcible[V, T, MV]) String() string
- type ForcibleBool
- type ForcibleDuration
- type ForcibleString
- type Fqdn
- type Fqdns
- type Header
- type Headers
- type Mutable
- type String
- type Value
- type WildcardSupportingFqdn
- func (this WildcardSupportingFqdn) Get() interface{}
- func (this WildcardSupportingFqdn) IsPresent() bool
- func (this WildcardSupportingFqdn) MarshalText() (text []byte, err error)
- func (this *WildcardSupportingFqdn) Set(plain string) error
- func (this WildcardSupportingFqdn) String() string
- func (this *WildcardSupportingFqdn) UnmarshalText(b []byte) error
- func (this WildcardSupportingFqdn) WithoutWildcard() (hadWildcard bool, withoutWildcard Fqdn, err error)
- type WildcardSupportingFqdns
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIllegalFqdn = errors.New("illegal fqdn")
)
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
func UndefinedBool ¶
func UndefinedBool() Bool
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
func NewDuration ¶ added in v0.7.0
func ParseDuration ¶
type Forcible ¶
type Forcible[V Value[T], T any, MV Mutable[V]] struct { // contains filtered or unexported fields }
func NewForcible ¶
func (Forcible[V, T, MV]) EvaluateOr ¶ added in v0.7.0
func (this Forcible[V, T, MV]) EvaluateOr(other V, def V) V
type ForcibleBool ¶
func NewForcibleBool ¶
func NewForcibleBool(init Bool, forced bool) ForcibleBool
func (ForcibleBool) Select ¶
func (this ForcibleBool) Select(target ForcibleBool) ForcibleBool
type ForcibleDuration ¶
func NewForcibleDuration ¶
func NewForcibleDuration(init Duration, forced bool) ForcibleDuration
func (ForcibleDuration) Select ¶ added in v0.7.0
func (this ForcibleDuration) Select(target ForcibleDuration) ForcibleDuration
type ForcibleString ¶
func NewForcibleString ¶
func NewForcibleString(init String, forced bool) ForcibleString
func (ForcibleString) Select ¶ added in v0.7.0
func (this ForcibleString) Select(target ForcibleString) ForcibleString
type WildcardSupportingFqdn ¶
type WildcardSupportingFqdn Fqdn
func (WildcardSupportingFqdn) Get ¶
func (this WildcardSupportingFqdn) Get() interface{}
func (WildcardSupportingFqdn) IsPresent ¶
func (this WildcardSupportingFqdn) IsPresent() bool
func (WildcardSupportingFqdn) MarshalText ¶
func (this WildcardSupportingFqdn) MarshalText() (text []byte, err error)
func (*WildcardSupportingFqdn) Set ¶
func (this *WildcardSupportingFqdn) Set(plain string) error
func (WildcardSupportingFqdn) String ¶
func (this WildcardSupportingFqdn) String() string
func (*WildcardSupportingFqdn) UnmarshalText ¶
func (this *WildcardSupportingFqdn) UnmarshalText(b []byte) error
func (WildcardSupportingFqdn) WithoutWildcard ¶
func (this WildcardSupportingFqdn) WithoutWildcard() (hadWildcard bool, withoutWildcard Fqdn, err error)
type WildcardSupportingFqdns ¶ added in v0.7.0
type WildcardSupportingFqdns []WildcardSupportingFqdn
func (WildcardSupportingFqdns) String ¶ added in v0.7.0
func (this WildcardSupportingFqdns) String() string
func (WildcardSupportingFqdns) Strings ¶ added in v0.7.0
func (this WildcardSupportingFqdns) Strings() []string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.