Back to godoc.org

Package data

v0.0.0-...-0dd9ee0
Latest Go to latest

The highest tagged major version is .

Published: today | License: AGPL-3.0 | Module: github.com/cozy/cozy-stack

Overview

Package data provide simple CRUD operation on couchdb doc

Index

func DecryptAccount

func DecryptAccount(doc couchdb.JSONDoc) bool

Decrypts sensitive fields inside the account. The document is modified in place.

func DeleteDoc

func DeleteDoc(c echo.Context) error

DeleteDoc deletes the provided document from its database.

func EncryptAccount

func EncryptAccount(doc couchdb.JSONDoc) bool

Encrypts sensitive fields inside the account. The document is modified in place.

func Routes

func Routes(router *echo.Group)

Routes sets the routing for the data service

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier