Versions in this module Expand all Collapse all v0 v0.0.3 Sep 22, 2022 Changes in this version + func GetDurationValue(v interface{}) (time.Duration, error) + func ParseExtendedDuration(data string) (result time.Duration, err error) + type DNSConfig struct + Policy NullDNSPolicy + Select NullDNSSelect + TTL null.String + Valid bool + func DefaultDNSConfig() DNSConfig + func (c *DNSConfig) UnmarshalJSON(data []byte) error + func (c *DNSConfig) UnmarshalText(text []byte) error + func (c DNSConfig) String() string + type DNSPolicy uint8 + const DNSany + const DNSonlyIPv4 + const DNSonlyIPv6 + const DNSpreferIPv4 + const DNSpreferIPv6 + func DNSPolicyString(s string) (DNSPolicy, error) + func DNSPolicyValues() []DNSPolicy + func (d *DNSPolicy) UnmarshalJSON(data []byte) error + func (d DNSPolicy) MarshalJSON() ([]byte, error) + func (i DNSPolicy) IsADNSPolicy() bool + func (i DNSPolicy) String() string + type DNSSelect uint8 + const DNSfirst + const DNSrandom + const DNSroundRobin + func DNSSelectString(s string) (DNSSelect, error) + func DNSSelectValues() []DNSSelect + func (d *DNSSelect) UnmarshalJSON(data []byte) error + func (d DNSSelect) MarshalJSON() ([]byte, error) + func (i DNSSelect) IsADNSSelect() bool + func (i DNSSelect) String() string + type Duration time.Duration + func (d *Duration) UnmarshalJSON(data []byte) error + func (d *Duration) UnmarshalText(data []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) String() string + type HostnameTrie struct + func NewHostnameTrie(source []string) (*HostnameTrie, error) + func (t *HostnameTrie) Contains(s string) (matchedPattern string, matchFound bool) + type IPPool struct + func NewIPPool(ranges string) (*IPPool, error) + func (pool *IPPool) GetIP(index uint64) net.IP + func (pool *IPPool) GetIPBig(index *big.Int) net.IP + type NullDNSPolicy struct + Valid bool + func (d *NullDNSPolicy) UnmarshalJSON(data []byte) error + func (d NullDNSPolicy) MarshalJSON() ([]byte, error) + type NullDNSSelect struct + Valid bool + func (d *NullDNSSelect) UnmarshalJSON(data []byte) error + func (d NullDNSSelect) MarshalJSON() ([]byte, error) + type NullDuration struct + Valid bool + func NewNullDuration(d time.Duration, valid bool) NullDuration + func NullDurationFrom(d time.Duration) NullDuration + func (d *NullDuration) UnmarshalJSON(data []byte) error + func (d *NullDuration) UnmarshalText(data []byte) error + func (d NullDuration) MarshalJSON() ([]byte, error) + func (d NullDuration) TimeDuration() time.Duration + func (d NullDuration) ValueOrZero() Duration + type NullHostnameTrie struct + Trie *HostnameTrie + Valid bool + func NewNullHostnameTrie(source []string) (NullHostnameTrie, error) + func (d *NullHostnameTrie) Source() []string + func (d *NullHostnameTrie) UnmarshalJSON(data []byte) error + func (d *NullHostnameTrie) UnmarshalText(data []byte) error + func (d NullHostnameTrie) MarshalJSON() ([]byte, error) + type NullIPPool struct + Pool *IPPool + Valid bool + func (n *NullIPPool) MarshalText() ([]byte, error) + func (n *NullIPPool) UnmarshalText(data []byte) error