Documentation ¶
Overview ¶
package tradetransactionrepo is a generated GoMock package.
Index ¶
- type MockTradeTransactionRepository
- func (m *MockTradeTransactionRepository) EXPECT() *MockTradeTransactionRepositoryMockRecorder
- func (m *MockTradeTransactionRepository) GetByIDRequest(accountID, orderID, creationOrder int64) (*tradetransaction.TradeRequest, error)
- func (m *MockTradeTransactionRepository) GetByIDResult(accountID, orderID, creationOrder int64) (*tradetransaction.TradeResult, error)
- func (m *MockTradeTransactionRepository) GetByIDTransaction(accountID, orderID, creationOrder int64) (*tradetransaction.TradeTransaction, error)
- func (m *MockTradeTransactionRepository) InsertRequest(tt *tradetransaction.TradeRequest, timeGMT int64) (int64, error)
- func (m *MockTradeTransactionRepository) InsertResult(tt *tradetransaction.TradeResult, timeGMT int64) (int64, error)
- func (m *MockTradeTransactionRepository) InsertTransaction(tt *tradetransaction.TradeTransaction, timeGMT int64) (int64, error)
- type MockTradeTransactionRepositoryMockRecorder
- func (mr *MockTradeTransactionRepositoryMockRecorder) GetByIDRequest(accountID, orderID, creationOrder interface{}) *gomock.Call
- func (mr *MockTradeTransactionRepositoryMockRecorder) GetByIDResult(accountID, orderID, creationOrder interface{}) *gomock.Call
- func (mr *MockTradeTransactionRepositoryMockRecorder) GetByIDTransaction(accountID, orderID, creationOrder interface{}) *gomock.Call
- func (mr *MockTradeTransactionRepositoryMockRecorder) InsertRequest(tt, timeGMT interface{}) *gomock.Call
- func (mr *MockTradeTransactionRepositoryMockRecorder) InsertResult(tt, timeGMT interface{}) *gomock.Call
- func (mr *MockTradeTransactionRepositoryMockRecorder) InsertTransaction(tt, timeGMT interface{}) *gomock.Call
- type TradeTransactionRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTradeTransactionRepository ¶ added in v0.17.0
type MockTradeTransactionRepository struct {
// contains filtered or unexported fields
}
MockTradeTransactionRepository is a mock of TradeTransactionRepository interface.
func NewMockTradeTransactionRepository ¶ added in v0.17.0
func NewMockTradeTransactionRepository(ctrl *gomock.Controller) *MockTradeTransactionRepository
NewMockTradeTransactionRepository creates a new mock instance.
func (*MockTradeTransactionRepository) EXPECT ¶ added in v0.17.0
func (m *MockTradeTransactionRepository) EXPECT() *MockTradeTransactionRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTradeTransactionRepository) GetByIDRequest ¶ added in v0.17.0
func (m *MockTradeTransactionRepository) GetByIDRequest(accountID, orderID, creationOrder int64) (*tradetransaction.TradeRequest, error)
GetByIDRequest mocks base method.
func (*MockTradeTransactionRepository) GetByIDResult ¶ added in v0.17.0
func (m *MockTradeTransactionRepository) GetByIDResult(accountID, orderID, creationOrder int64) (*tradetransaction.TradeResult, error)
GetByIDResult mocks base method.
func (*MockTradeTransactionRepository) GetByIDTransaction ¶ added in v0.17.0
func (m *MockTradeTransactionRepository) GetByIDTransaction(accountID, orderID, creationOrder int64) (*tradetransaction.TradeTransaction, error)
GetByIDTransaction mocks base method.
func (*MockTradeTransactionRepository) InsertRequest ¶ added in v0.17.0
func (m *MockTradeTransactionRepository) InsertRequest(tt *tradetransaction.TradeRequest, timeGMT int64) (int64, error)
InsertRequest mocks base method.
func (*MockTradeTransactionRepository) InsertResult ¶ added in v0.17.0
func (m *MockTradeTransactionRepository) InsertResult(tt *tradetransaction.TradeResult, timeGMT int64) (int64, error)
InsertResult mocks base method.
func (*MockTradeTransactionRepository) InsertTransaction ¶ added in v0.17.0
func (m *MockTradeTransactionRepository) InsertTransaction(tt *tradetransaction.TradeTransaction, timeGMT int64) (int64, error)
InsertTransaction mocks base method.
type MockTradeTransactionRepositoryMockRecorder ¶ added in v0.17.0
type MockTradeTransactionRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTradeTransactionRepositoryMockRecorder is the mock recorder for MockTradeTransactionRepository.
func (*MockTradeTransactionRepositoryMockRecorder) GetByIDRequest ¶ added in v0.17.0
func (mr *MockTradeTransactionRepositoryMockRecorder) GetByIDRequest(accountID, orderID, creationOrder interface{}) *gomock.Call
GetByIDRequest indicates an expected call of GetByIDRequest.
func (*MockTradeTransactionRepositoryMockRecorder) GetByIDResult ¶ added in v0.17.0
func (mr *MockTradeTransactionRepositoryMockRecorder) GetByIDResult(accountID, orderID, creationOrder interface{}) *gomock.Call
GetByIDResult indicates an expected call of GetByIDResult.
func (*MockTradeTransactionRepositoryMockRecorder) GetByIDTransaction ¶ added in v0.17.0
func (mr *MockTradeTransactionRepositoryMockRecorder) GetByIDTransaction(accountID, orderID, creationOrder interface{}) *gomock.Call
GetByIDTransaction indicates an expected call of GetByIDTransaction.
func (*MockTradeTransactionRepositoryMockRecorder) InsertRequest ¶ added in v0.17.0
func (mr *MockTradeTransactionRepositoryMockRecorder) InsertRequest(tt, timeGMT interface{}) *gomock.Call
InsertRequest indicates an expected call of InsertRequest.
func (*MockTradeTransactionRepositoryMockRecorder) InsertResult ¶ added in v0.17.0
func (mr *MockTradeTransactionRepositoryMockRecorder) InsertResult(tt, timeGMT interface{}) *gomock.Call
InsertResult indicates an expected call of InsertResult.
func (*MockTradeTransactionRepositoryMockRecorder) InsertTransaction ¶ added in v0.17.0
func (mr *MockTradeTransactionRepositoryMockRecorder) InsertTransaction(tt, timeGMT interface{}) *gomock.Call
InsertTransaction indicates an expected call of InsertTransaction.
type TradeTransactionRepository ¶
type TradeTransactionRepository interface { InsertTransaction(tt *model.TradeTransaction, timeGMT int64) (int64, error) InsertRequest(tt *model.TradeRequest, timeGMT int64) (int64, error) InsertResult(tt *model.TradeResult, timeGMT int64) (int64, error) GetByIDTransaction(accountID, orderID, creationOrder int64) (*model.TradeTransaction, error) GetByIDRequest(accountID, orderID, creationOrder int64) (*model.TradeRequest, error) GetByIDResult(accountID, orderID, creationOrder int64) (*model.TradeResult, error) }
TradeTransactionRepository is a CRUD to the database
func NewTradeTransactionRepo ¶
func NewTradeTransactionRepo(ctx context.Context, dbCon *sqlx.DB) TradeTransactionRepository
NewTradeTransactionRepo creates a service to interact with PostgreSQL