Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStorable ¶
func CheckStorable(inDoc interface{}) error
CheckStorable returns an error if the given document - or any of it's subdocuments - contains field names which are not valid for storage into MongoDB.
func EscapeKeys ¶
EscapeKeys is used to escape bad keys in a map. A statusDoc without escaped keys is broken.
func IsValidFieldName ¶
IsValidFieldName returns true if the given name is acceptable for use as a MongoDB field name.
func UnescapeKey ¶
UnescapeKey restores escaped characters from a key to their original values.
func UnescapeKeys ¶
UnescapeKeys is used to restore escaped keys from a map to their original values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.