data

package
v0.0.0-...-3f4c8ed Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 20 Imported by: 3

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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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