Documentation ¶
Index ¶
- Variables
- func CreateNS(key string, db *levigo.DB) bool
- func DeleteNS(key string, db *levigo.DB) bool
- func DeleteNSKey(key string, db *levigo.DB) bool
- func DeleteNSRecursive(key string, db *levigo.DB) bool
- func PushNS(key string, val string, db *levigo.DB) bool
- func ReadNS(key string, db *levigo.DB) golhashmap.HashMap
- func ReadNSRecursive(key string, db *levigo.DB) golhashmap.HashMap
- func UnrootNS(key string, db *levigo.DB) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NamespaceSeparator = ":"
)
NameSpaceSeparator could be modified if something other than colon-char ":"
is to be used as separator symbol for NameSpace.
Functions ¶
func DeleteNSKey ¶
DeleteNSKey directly deletes a child key-val and unroot it from parent.
func DeleteNSRecursive ¶
DeleteNSRecursive to delete a namespace with all children below and unroot it.
func ReadNS ¶
func ReadNS(key string, db *levigo.DB) golhashmap.HashMap
ReadNS reads all direct child values in a given NameSpace For e.g.:
given keys a, a:b, a:b:1, a:b:2, a:b:2:3 reads for a:b:1, a:b:2 if queried for a:b
func ReadNSRecursive ¶
func ReadNSRecursive(key string, db *levigo.DB) golhashmap.HashMap
ReadNSRecursive reads all values belonging to tree below given NameSpace For e.g.:
given keys a, a:b, a:b:1, a:b:2, a:b:2:3 reads for a:b:1, a:b:2, a:b:2:3 if queried for a:b
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.