mongo

package
v0.0.0-...-e29411b Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderRepository

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

func (*OrderRepository) Create

func (repository *OrderRepository) Create(order *model.Order) (string, error)

func (*OrderRepository) FindAll

func (repository *OrderRepository) FindAll() ([]*model.Order, error)

type Store

type Store struct {
	*mongo.Database
	// contains filtered or unexported fields
}

func New

func New(db *mongo.Database) *Store

func (*Store) Order

func (s *Store) Order() store.OrderRepository

Jump to

Keyboard shortcuts

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