orderssvc

package
v0.18.2 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: 12 Imported by: 0

Documentation

Overview

package orderssvc is a generated GoMock package.

Index

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

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.

func (*MockOrdersService) Insert added in v0.17.0

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

Insert mocks base method.

func (*MockOrdersService) Update added in v0.17.0

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

Update 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

Jump to

Keyboard shortcuts

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