items

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, i *types.Item) error

Create .

func Delete added in v0.2.0

func Delete(ctx context.Context, i *types.Item) error

Delete .

func Get added in v0.2.0

Get .

func GetAll added in v0.2.0

func GetAll(ctx context.Context, c database.Criteria) ([]*types.Item, error)

GetAll .

func GetAllCustom added in v0.2.0

func GetAllCustom(ctx context.Context, p database.Pipeline) ([]*types.Item, error)

GetAllCustom .

func HandleDelete added in v0.2.0

func HandleDelete(c echo.Context) error

HandleDelete .

func HandleGet added in v0.2.0

func HandleGet(c echo.Context) error

HandleGet .

func HandleGetAllForCollection

func HandleGetAllForCollection(c echo.Context) error

HandleGetAllForCollection .

func HandlePost

func HandlePost(c echo.Context) error

HandlePost .

func HandlePostFile added in v0.3.3

func HandlePostFile(c echo.Context) error

HandlePostFile .

func Init added in v0.2.0

func Init(jwtSecret string)

Init .

func InitDatabase added in v0.2.0

func InitDatabase(ctx context.Context, db *mongo.Database) error

InitDatabase .

func Middleware

func Middleware(next echo.HandlerFunc) echo.HandlerFunc

Middleware .

Types

This section is empty.

Jump to

Keyboard shortcuts

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