Documentation ¶
Overview ¶
Package sync handles synchronized read and write access to config values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
Bool type with concurrent access support.
func (*Bool) MarshalJSON ¶ added in v0.17.0
MarshalJSON returns the JSON encoding of the value.
func (*Bool) UnmarshalJSON ¶ added in v0.17.0
UnmarshalJSON returns the JSON encoding of the value.
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
Float64 type with concurrent access support.
func (*Float64) MarshalJSON ¶ added in v0.17.0
MarshalJSON returns the JSON encoding of the value.
func (*Float64) UnmarshalJSON ¶ added in v0.17.0
UnmarshalJSON returns the JSON encoding of the value.
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 type with concurrent access support.
func (*Int64) MarshalJSON ¶ added in v0.17.0
MarshalJSON returns the JSON encoding of the value.
func (*Int64) UnmarshalJSON ¶ added in v0.17.0
UnmarshalJSON returns the JSON encoding of the value.
type Regexp ¶ added in v0.19.0
type Regexp struct {
// contains filtered or unexported fields
}
func (*Regexp) MarshalJSON ¶ added in v0.19.0
MarshalJSON returns the JSON encoding of the value.
func (*Regexp) UnmarshalJSON ¶ added in v0.19.0
UnmarshalJSON returns the JSON encoding of the value.
type Secret ¶ added in v0.4.0
type Secret struct {
// contains filtered or unexported fields
}
Secret string type for secrets with concurrent access support.
func (*Secret) MarshalJSON ¶ added in v0.17.0
MarshalJSON returns the JSON encoding of the value.
func (*Secret) UnmarshalJSON ¶ added in v0.17.0
UnmarshalJSON returns the JSON encoding of the value.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String type with concurrent access support.
func (*String) MarshalJSON ¶ added in v0.17.0
MarshalJSON returns the JSON encoding of the value.
func (*String) UnmarshalJSON ¶ added in v0.17.0
UnmarshalJSON returns the JSON encoding of the value.
type StringMap ¶ added in v0.15.0
type StringMap struct {
// contains filtered or unexported fields
}
StringMap is a map[string]string type with concurrent access support.
func (*StringMap) MarshalJSON ¶ added in v0.17.0
MarshalJSON returns the JSON encoding of the value.
func (*StringMap) UnmarshalJSON ¶ added in v0.17.0
UnmarshalJSON returns the JSON encoding of the value.
type StringSlice ¶ added in v0.19.0
type StringSlice struct {
// contains filtered or unexported fields
}
StringSlice is a []string type with concurrent access support.
func (*StringSlice) Get ¶ added in v0.19.0
func (s *StringSlice) Get() []string
Get returns the internal value.
func (*StringSlice) MarshalJSON ¶ added in v0.19.0
func (s *StringSlice) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON encoding of the value.
func (*StringSlice) SetString ¶ added in v0.19.0
func (s *StringSlice) SetString(val string) error
SetString parses and sets a value from string type.
func (*StringSlice) String ¶ added in v0.19.0
func (s *StringSlice) String() string
String returns a string representation of the value.
func (*StringSlice) UnmarshalJSON ¶ added in v0.19.0
func (s *StringSlice) UnmarshalJSON(d []byte) error
UnmarshalJSON returns the JSON encoding of the value.
type TimeDuration ¶ added in v0.10.0
type TimeDuration struct {
// contains filtered or unexported fields
}
TimeDuration is Time.Duration type with concurrent access support.
func (*TimeDuration) Get ¶ added in v0.10.0
func (s *TimeDuration) Get() time.Duration
Get returns the internal value.
func (*TimeDuration) MarshalJSON ¶ added in v0.17.0
func (s *TimeDuration) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON encoding of the value.
func (*TimeDuration) Set ¶ added in v0.10.0
func (s *TimeDuration) Set(value time.Duration)
Set a value.
func (*TimeDuration) SetString ¶ added in v0.10.0
func (s *TimeDuration) SetString(val string) error
SetString parses and sets a value from string type.
func (*TimeDuration) String ¶ added in v0.10.0
func (s *TimeDuration) String() string
String returns string representation of value.
func (*TimeDuration) UnmarshalJSON ¶ added in v0.17.0
func (s *TimeDuration) UnmarshalJSON(d []byte) error
UnmarshalJSON returns the JSON encoding of the value.