Documentation ¶
Overview ¶
Package data provide simple CRUD operation on couchdb doc
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAccount ¶
Decrypts sensitive fields inside the account. The document is modified in place.
func DeleteDatabase ¶
func DeleteDatabase(c echo.Context) error
DeleteDatabase deletes the doctype's database.
func DeleteDoc ¶
func DeleteDoc(c echo.Context) error
DeleteDoc deletes the provided document from its database.
func EncryptAccount ¶
Encrypts sensitive fields inside the account. The document is modified in place.
func UpdateDoc ¶
func UpdateDoc(c echo.Context) error
UpdateDoc updates the document given in the request or creates a new one with the given id.
func ValidDoctype ¶
func ValidDoctype(next echo.HandlerFunc) echo.HandlerFunc
ValidDoctype validates the doctype and sets it in the context of the request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.