Documentation ¶
Overview ¶
package ordersrepo is a generated GoMock package.
Index ¶
- type MockOrdersRepository
- func (m *MockOrdersRepository) Delete(accountID, ticket int64) error
- func (m *MockOrdersRepository) EXPECT() *MockOrdersRepositoryMockRecorder
- func (m *MockOrdersRepository) GetByID(accountID, ticket int64) (*orders.Order, error)
- func (m *MockOrdersRepository) Insert(ac *orders.Order) error
- func (m *MockOrdersRepository) Update(ac *orders.Order) error
- type MockOrdersRepositoryMockRecorder
- func (mr *MockOrdersRepositoryMockRecorder) Delete(accountID, ticket interface{}) *gomock.Call
- func (mr *MockOrdersRepositoryMockRecorder) GetByID(accountID, ticket interface{}) *gomock.Call
- func (mr *MockOrdersRepositoryMockRecorder) Insert(ac interface{}) *gomock.Call
- func (mr *MockOrdersRepositoryMockRecorder) Update(ac interface{}) *gomock.Call
- type OrdersRepository
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
func (m *MockOrdersRepository) EXPECT() *MockOrdersRepositoryMockRecorder
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.
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