repository

package
v0.0.0-...-54ab06f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	// contains filtered or unexported fields
}

Item is repository implementation for item model.

func NewItem

func NewItem(db *sqlw.DB) *Item

func (*Item) Create

func (r *Item) Create(item model.Item) (*model.Item, error)

Create creates an item.

func (*Item) FindAll

func (r *Item) FindAll() ([]model.Item, error)

FindAll finds all items

func (*Item) FindByID

func (r *Item) FindByID(id string) (*model.Item, error)

FindByID finds an items by specific id.

Jump to

Keyboard shortcuts

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