repo

package
v0.0.0-...-398e551 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewpDB

func NewpDB(db *gorm.DB) *pDB

func PGConn

func PGConn(dsn string) (*gorm.DB, error)

Types

type OrderRepository

type OrderRepository interface {
	CreateOrder(ctx context.Context, order *models.Order) error
	UpdateOrder(ctx context.Context, order *models.Order) error
}

type Repository

type Repository struct {
	OrderRepository
}

func NewOrderRepository

func NewOrderRepository(db *gorm.DB) *Repository

Directories

Path Synopsis
Package mock_repo is a generated GoMock package.
Package mock_repo is a generated GoMock package.

Jump to

Keyboard shortcuts

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