Documentation ¶
Overview ¶
Package data provide simple CRUD operation on couchdb doc
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CozyMetadataFromClaims ¶
func CozyMetadataFromClaims(c echo.Context) *metadata.CozyMetadata
CozyMetadataFromClaims returns a CozyMetadata struct, with the app fields filled with information from the permission claims.
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 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.