repo

package
v0.0.0-...-5c9c1d6 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Repo

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

func (*Repo) Create

func (repo *Repo) Create(order models.Order) (models.Order, error)

Create a new order in the database

func (*Repo) Delete

func (repo *Repo) Delete(id string) error

Delete an order from the database

func (*Repo) Get

func (repo *Repo) Get(OrderID string) (models.Order, error)

Get orders from the database

func (*Repo) Update

func (repo *Repo) Update(order models.Order) (models.Order, error)

Update an order in the database

Jump to

Keyboard shortcuts

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