storage

package
v0.0.0-...-00872a6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order struct {
	ID          string `bson:"_id"`
	Code        string `bson:"code"`
	Description string `bson:"description"`
	Name        string `bson:"name"`
}

Order order model for storage

type Orders

type Orders []Order

Orders list of orders

type Repository

type Repository interface {
	Create(context.Context, Order) (*uuid.UUID, error)
	Read(context.Context, uuid.UUID) (*Order, error)
	Exist(context.Context, uuid.UUID) (*bool, error)
	Update(context.Context, Order) error
	Delete(context.Context, uuid.UUID) error
	List(context.Context, []uuid.UUID) (Orders, error)
}

Repository Repository interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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