Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeSegment ¶
Types ¶
type AnyValue ¶
type AnyValue struct {
// contains filtered or unexported fields
}
AnyValue is a wrapper of atomic.Value It is used to store values in trie nodes And allowed to assign to empty struct value when node is not an end node anymore
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func (*Key) HasWildcard ¶
func (*Key) NumSegments ¶
func (Key) WithEscaped ¶
type KeyIterator ¶
type KeyIterator = func(YieldKeyFunc)
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) WalkKeys ¶
func (node *Node) WalkKeys(yield YieldKeyFunc)
type Root ¶
type Root struct { *Node // contains filtered or unexported fields }
func (*Root) LoadAndStore ¶
LoadAndStore loads or stores the value for the key Returns the old value if exists, nil otherwise
func (*Root) LoadOrStore ¶
LoadOrStore loads or stores the value for the key Returns the value loaded/stored
func (*Root) MarshalJSON ¶
func (*Root) UnmarshalJSON ¶
type YieldKeyFunc ¶
Click to show internal directories.
Click to hide internal directories.