mongo

package
v0.0.0-...-c3e71be Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemRepository

type ItemRepository struct {
}

ItemRepository godoc

func (ItemRepository) CreateItem

func (ItemRepository) CreateItem(newItem models.Item) (err error)

CreateItem godoc

func (ItemRepository) DeleteItem

func (ItemRepository) DeleteItem(id int) (err error)

DeleteItem godoc

func (ItemRepository) GetItem

func (ItemRepository) GetItem(id int) (item models.Item, err error)

GetItem godoc

func (ItemRepository) GetItems

func (ItemRepository) GetItems() (items []models.Item, err error)

GetItems godoc

func (ItemRepository) UpdateItem

func (ItemRepository) UpdateItem(item models.Item) (err error)

UpdateItem godoc

Jump to

Keyboard shortcuts

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