Documentation ¶
Overview ¶
package orderssvc is a generated GoMock package.
Index ¶
- type MockOrdersService
- func (m *MockOrdersService) Delete(accountID, ticket int64) error
- func (m *MockOrdersService) EXPECT() *MockOrdersServiceMockRecorder
- func (m *MockOrdersService) GetByID(accountID, ticket int64) (*orders.Order, error)
- func (m *MockOrdersService) Insert(ac *orders.Order) error
- func (m *MockOrdersService) Update(ac *orders.Order) error
- type MockOrdersServiceMockRecorder
- func (mr *MockOrdersServiceMockRecorder) Delete(accountID, ticket interface{}) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) GetByID(accountID, ticket interface{}) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) Insert(ac interface{}) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) Update(ac interface{}) *gomock.Call
- type OrdersService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOrdersService ¶ added in v0.17.0
type MockOrdersService struct {
// contains filtered or unexported fields
}
MockOrdersService is a mock of OrdersService interface.
func NewMockOrdersService ¶ added in v0.17.0
func NewMockOrdersService(ctrl *gomock.Controller) *MockOrdersService
NewMockOrdersService creates a new mock instance.
func (*MockOrdersService) Delete ¶ added in v0.17.0
func (m *MockOrdersService) Delete(accountID, ticket int64) error
Delete mocks base method.
func (*MockOrdersService) EXPECT ¶ added in v0.17.0
func (m *MockOrdersService) EXPECT() *MockOrdersServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrdersService) GetByID ¶ added in v0.17.0
func (m *MockOrdersService) GetByID(accountID, ticket int64) (*orders.Order, error)
GetByID mocks base method.
type MockOrdersServiceMockRecorder ¶ added in v0.17.0
type MockOrdersServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockOrdersServiceMockRecorder is the mock recorder for MockOrdersService.
func (*MockOrdersServiceMockRecorder) Delete ¶ added in v0.17.0
func (mr *MockOrdersServiceMockRecorder) Delete(accountID, ticket interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockOrdersServiceMockRecorder) GetByID ¶ added in v0.17.0
func (mr *MockOrdersServiceMockRecorder) GetByID(accountID, ticket interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockOrdersServiceMockRecorder) Insert ¶ added in v0.17.0
func (mr *MockOrdersServiceMockRecorder) Insert(ac interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockOrdersServiceMockRecorder) Update ¶ added in v0.17.0
func (mr *MockOrdersServiceMockRecorder) Update(ac interface{}) *gomock.Call
Update indicates an expected call of Update.
type OrdersService ¶
type OrdersService interface { Insert(ac *model.Order) error GetByID(accountID, ticket int64) (*model.Order, error) Update(ac *model.Order) error Delete(accountID, ticket int64) error }
OrdersService is a CRUD to the database
func NewOrdersService ¶
func NewOrdersService(ctx context.Context, repo repo.OrdersRepository, beats bb.TickerBeatsService, deals dd.DealsService) OrdersService
NewOrdersService creates a service to interact with PostgreSQL