db

package
v0.0.0-...-a749b47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDocument

func CreateDocument(id string, doc map[string]interface{}) (string, error)

CreateDocument stores a rule in db

func DeleteDocument

func DeleteDocument(id string) error

DeleteDocument deletes a rule from db

func GetDocument

func GetDocument(id string) (map[string]interface{}, error)

GetDocument get rules from db

func GetDocuments

func GetDocuments(sorts []string, limit, skip int) ([]map[string]interface{}, int, int, error)

GetDocuments get rule from db

func InitDB

func InitDB(name string, exitCode int)

func InitServer

func InitServer(url string, exitCode int)

func UpdateDocument

func UpdateDocument(id string, doc map[string]interface{}) (string, error)

UpdateDocument updates a rule in db

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL