ordersrepo

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

package ordersrepo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOrdersRepository added in v0.17.0

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

MockOrdersRepository is a mock of OrdersRepository interface.

func NewMockOrdersRepository added in v0.17.0

func NewMockOrdersRepository(ctrl *gomock.Controller) *MockOrdersRepository

NewMockOrdersRepository creates a new mock instance.

func (*MockOrdersRepository) Delete added in v0.17.0

func (m *MockOrdersRepository) Delete(accountID, ticket int64) error

Delete mocks base method.

func (*MockOrdersRepository) EXPECT added in v0.17.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOrdersRepository) GetByID added in v0.17.0

func (m *MockOrdersRepository) GetByID(accountID, ticket int64) (*orders.Order, error)

GetByID mocks base method.

func (*MockOrdersRepository) Insert added in v0.17.0

func (m *MockOrdersRepository) Insert(ac *orders.Order) error

Insert mocks base method.

func (*MockOrdersRepository) Update added in v0.17.0

func (m *MockOrdersRepository) Update(ac *orders.Order) error

Update mocks base method.

type MockOrdersRepositoryMockRecorder added in v0.17.0

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

MockOrdersRepositoryMockRecorder is the mock recorder for MockOrdersRepository.

func (*MockOrdersRepositoryMockRecorder) Delete added in v0.17.0

func (mr *MockOrdersRepositoryMockRecorder) Delete(accountID, ticket interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockOrdersRepositoryMockRecorder) GetByID added in v0.17.0

func (mr *MockOrdersRepositoryMockRecorder) GetByID(accountID, ticket interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockOrdersRepositoryMockRecorder) Insert added in v0.17.0

func (mr *MockOrdersRepositoryMockRecorder) Insert(ac interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockOrdersRepositoryMockRecorder) Update added in v0.17.0

func (mr *MockOrdersRepositoryMockRecorder) Update(ac interface{}) *gomock.Call

Update indicates an expected call of Update.

type OrdersRepository

type OrdersRepository interface {
	Insert(ac *model.Order) error
	GetByID(accountID, ticket int64) (*model.Order, error)
	Update(ac *model.Order) error
	Delete(accountID, ticket int64) error
}

OrdersRepository is a CRUD to the database

func NewOrdersRepo

func NewOrdersRepo(ctx context.Context, dbCon *sqlx.DB) OrdersRepository

NewOrdersRepo creates a service to interact with PostgreSQL

Jump to

Keyboard shortcuts

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