Documentation ¶
Index ¶
- func CreateDocument(id string, doc map[string]interface{}) (string, error)
- func DeleteDocument(id string) error
- func GetDocument(id string) (map[string]interface{}, error)
- func GetDocuments(sorts []string, limit, skip int) ([]map[string]interface{}, int, int, error)
- func InitDB(name string, exitCode int)
- func InitServer(url string, exitCode int)
- func UpdateDocument(id string, doc map[string]interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDocument ¶
CreateDocument stores a rule in db
func GetDocument ¶
GetDocument get rules from db
func GetDocuments ¶
GetDocuments get rule from db
func InitServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.