Documentation
¶
Index ¶
- type MockChannelAccountStore
- func (_m *MockChannelAccountStore) BatchInsert(ctx context.Context, sqlExec db.SQLExecuter, ...) error
- func (_m *MockChannelAccountStore) BatchInsertAndLock(ctx context.Context, channelAccounts []*store.ChannelAccount, ...) error
- func (_m *MockChannelAccountStore) Count(ctx context.Context) (int, error)
- func (_m *MockChannelAccountStore) Delete(ctx context.Context, sqlExec db.SQLExecuter, publicKey string) error
- func (_m *MockChannelAccountStore) DeleteIfLockedUntil(ctx context.Context, publicKey string, lockedUntilLedgerNumber int) error
- func (_m *MockChannelAccountStore) Get(ctx context.Context, sqlExec db.SQLExecuter, publicKey string, ...) (*store.ChannelAccount, error)
- func (_m *MockChannelAccountStore) GetAll(ctx context.Context, sqlExec db.SQLExecuter, currentLedger int, limit int) ([]*store.ChannelAccount, error)
- func (_m *MockChannelAccountStore) GetAndLock(ctx context.Context, publicKey string, currentLedger int, nextLedgerLock int) (*store.ChannelAccount, error)
- func (_m *MockChannelAccountStore) GetAndLockAll(ctx context.Context, currentLedger int, nextLedgerLock int, limit int) ([]*store.ChannelAccount, error)
- func (_m *MockChannelAccountStore) Insert(ctx context.Context, sqlExec db.SQLExecuter, publicKey string, ...) error
- func (_m *MockChannelAccountStore) InsertAndLock(ctx context.Context, publicKey string, privateKey string, currentLedger int, ...) error
- func (_m *MockChannelAccountStore) Lock(ctx context.Context, sqlExec db.SQLExecuter, publicKey string, ...) (*store.ChannelAccount, error)
- func (_m *MockChannelAccountStore) Unlock(ctx context.Context, sqlExec db.SQLExecuter, publicKey string) (*store.ChannelAccount, error)
- type MockTransactionStore
- func (_m *MockTransactionStore) BulkInsert(ctx context.Context, sqlExec db.SQLExecuter, transactions []store.Transaction) ([]store.Transaction, error)
- func (_m *MockTransactionStore) Get(ctx context.Context, txID string) (*store.Transaction, error)
- func (_m *MockTransactionStore) GetAllByPaymentIDs(ctx context.Context, paymentIDs []string) ([]*store.Transaction, error)
- func (_m *MockTransactionStore) GetTransactionBatchForUpdate(ctx context.Context, dbTx db.DBTransaction, batchSize int, tenantID string) ([]*store.Transaction, error)
- func (_m *MockTransactionStore) GetTransactionPendingUpdateByID(ctx context.Context, sqlExec db.SQLExecuter, txID string) (*store.Transaction, error)
- func (_m *MockTransactionStore) Insert(ctx context.Context, tx store.Transaction) (*store.Transaction, error)
- func (_m *MockTransactionStore) Lock(ctx context.Context, sqlExec db.SQLExecuter, transactionID string, ...) (*store.Transaction, error)
- func (_m *MockTransactionStore) PrepareTransactionForReprocessing(ctx context.Context, sqlExec db.SQLExecuter, transactionID string) (*store.Transaction, error)
- func (_m *MockTransactionStore) Unlock(ctx context.Context, sqlExec db.SQLExecuter, publicKey string) (*store.Transaction, error)
- func (_m *MockTransactionStore) UpdateStatusToError(ctx context.Context, tx store.Transaction, message string) (*store.Transaction, error)
- func (_m *MockTransactionStore) UpdateStatusToSuccess(ctx context.Context, tx store.Transaction) (*store.Transaction, error)
- func (_m *MockTransactionStore) UpdateStellarTransactionHashAndXDRSent(ctx context.Context, txID string, txHash string, txXDRSent string) (*store.Transaction, error)
- func (_m *MockTransactionStore) UpdateStellarTransactionXDRReceived(ctx context.Context, txID string, xdrReceived string) (*store.Transaction, error)
- func (_m *MockTransactionStore) UpdateSyncedTransactions(ctx context.Context, sqlExec db.SQLExecuter, txIDs []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChannelAccountStore ¶
MockChannelAccountStore is an autogenerated mock type for the ChannelAccountStore type
func NewMockChannelAccountStore ¶
func NewMockChannelAccountStore(t interface { mock.TestingT Cleanup(func()) }) *MockChannelAccountStore
NewMockChannelAccountStore creates a new instance of MockChannelAccountStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockChannelAccountStore) BatchInsert ¶
func (_m *MockChannelAccountStore) BatchInsert(ctx context.Context, sqlExec db.SQLExecuter, channelAccounts []*store.ChannelAccount) error
BatchInsert provides a mock function with given fields: ctx, sqlExec, channelAccounts
func (*MockChannelAccountStore) BatchInsertAndLock ¶
func (_m *MockChannelAccountStore) BatchInsertAndLock(ctx context.Context, channelAccounts []*store.ChannelAccount, currentLedger int, nextLedgerLock int) error
BatchInsertAndLock provides a mock function with given fields: ctx, channelAccounts, currentLedger, nextLedgerLock
func (*MockChannelAccountStore) Count ¶
func (_m *MockChannelAccountStore) Count(ctx context.Context) (int, error)
Count provides a mock function with given fields: ctx
func (*MockChannelAccountStore) Delete ¶
func (_m *MockChannelAccountStore) Delete(ctx context.Context, sqlExec db.SQLExecuter, publicKey string) error
Delete provides a mock function with given fields: ctx, sqlExec, publicKey
func (*MockChannelAccountStore) DeleteIfLockedUntil ¶
func (_m *MockChannelAccountStore) DeleteIfLockedUntil(ctx context.Context, publicKey string, lockedUntilLedgerNumber int) error
DeleteIfLockedUntil provides a mock function with given fields: ctx, publicKey, lockedUntilLedgerNumber
func (*MockChannelAccountStore) Get ¶
func (_m *MockChannelAccountStore) Get(ctx context.Context, sqlExec db.SQLExecuter, publicKey string, currentLedgerNumber int) (*store.ChannelAccount, error)
Get provides a mock function with given fields: ctx, sqlExec, publicKey, currentLedgerNumber
func (*MockChannelAccountStore) GetAll ¶
func (_m *MockChannelAccountStore) GetAll(ctx context.Context, sqlExec db.SQLExecuter, currentLedger int, limit int) ([]*store.ChannelAccount, error)
GetAll provides a mock function with given fields: ctx, sqlExec, currentLedger, limit
func (*MockChannelAccountStore) GetAndLock ¶
func (_m *MockChannelAccountStore) GetAndLock(ctx context.Context, publicKey string, currentLedger int, nextLedgerLock int) (*store.ChannelAccount, error)
GetAndLock provides a mock function with given fields: ctx, publicKey, currentLedger, nextLedgerLock
func (*MockChannelAccountStore) GetAndLockAll ¶
func (_m *MockChannelAccountStore) GetAndLockAll(ctx context.Context, currentLedger int, nextLedgerLock int, limit int) ([]*store.ChannelAccount, error)
GetAndLockAll provides a mock function with given fields: ctx, currentLedger, nextLedgerLock, limit
func (*MockChannelAccountStore) Insert ¶
func (_m *MockChannelAccountStore) Insert(ctx context.Context, sqlExec db.SQLExecuter, publicKey string, privateKey string) error
Insert provides a mock function with given fields: ctx, sqlExec, publicKey, privateKey
func (*MockChannelAccountStore) InsertAndLock ¶
func (_m *MockChannelAccountStore) InsertAndLock(ctx context.Context, publicKey string, privateKey string, currentLedger int, nextLedgerLock int) error
InsertAndLock provides a mock function with given fields: ctx, publicKey, privateKey, currentLedger, nextLedgerLock
func (*MockChannelAccountStore) Lock ¶
func (_m *MockChannelAccountStore) Lock(ctx context.Context, sqlExec db.SQLExecuter, publicKey string, currentLedger int32, nextLedgerLock int32) (*store.ChannelAccount, error)
Lock provides a mock function with given fields: ctx, sqlExec, publicKey, currentLedger, nextLedgerLock
func (*MockChannelAccountStore) Unlock ¶
func (_m *MockChannelAccountStore) Unlock(ctx context.Context, sqlExec db.SQLExecuter, publicKey string) (*store.ChannelAccount, error)
Unlock provides a mock function with given fields: ctx, sqlExec, publicKey
type MockTransactionStore ¶
MockTransactionStore is an autogenerated mock type for the TransactionStore type
func NewMockTransactionStore ¶
func NewMockTransactionStore(t interface { mock.TestingT Cleanup(func()) }) *MockTransactionStore
NewMockTransactionStore creates a new instance of MockTransactionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTransactionStore) BulkInsert ¶
func (_m *MockTransactionStore) BulkInsert(ctx context.Context, sqlExec db.SQLExecuter, transactions []store.Transaction) ([]store.Transaction, error)
BulkInsert provides a mock function with given fields: ctx, sqlExec, transactions
func (*MockTransactionStore) Get ¶
func (_m *MockTransactionStore) Get(ctx context.Context, txID string) (*store.Transaction, error)
Get provides a mock function with given fields: ctx, txID
func (*MockTransactionStore) GetAllByPaymentIDs ¶
func (_m *MockTransactionStore) GetAllByPaymentIDs(ctx context.Context, paymentIDs []string) ([]*store.Transaction, error)
GetAllByPaymentIDs provides a mock function with given fields: ctx, paymentIDs
func (*MockTransactionStore) GetTransactionBatchForUpdate ¶
func (_m *MockTransactionStore) GetTransactionBatchForUpdate(ctx context.Context, dbTx db.DBTransaction, batchSize int, tenantID string) ([]*store.Transaction, error)
GetTransactionBatchForUpdate provides a mock function with given fields: ctx, dbTx, batchSize, tenantID
func (*MockTransactionStore) GetTransactionPendingUpdateByID ¶
func (_m *MockTransactionStore) GetTransactionPendingUpdateByID(ctx context.Context, sqlExec db.SQLExecuter, txID string) (*store.Transaction, error)
GetTransactionPendingUpdateByID provides a mock function with given fields: ctx, sqlExec, txID
func (*MockTransactionStore) Insert ¶
func (_m *MockTransactionStore) Insert(ctx context.Context, tx store.Transaction) (*store.Transaction, error)
Insert provides a mock function with given fields: ctx, tx
func (*MockTransactionStore) Lock ¶
func (_m *MockTransactionStore) Lock(ctx context.Context, sqlExec db.SQLExecuter, transactionID string, currentLedger int32, nextLedgerLock int32) (*store.Transaction, error)
Lock provides a mock function with given fields: ctx, sqlExec, transactionID, currentLedger, nextLedgerLock
func (*MockTransactionStore) PrepareTransactionForReprocessing ¶
func (_m *MockTransactionStore) PrepareTransactionForReprocessing(ctx context.Context, sqlExec db.SQLExecuter, transactionID string) (*store.Transaction, error)
PrepareTransactionForReprocessing provides a mock function with given fields: ctx, sqlExec, transactionID
func (*MockTransactionStore) Unlock ¶
func (_m *MockTransactionStore) Unlock(ctx context.Context, sqlExec db.SQLExecuter, publicKey string) (*store.Transaction, error)
Unlock provides a mock function with given fields: ctx, sqlExec, publicKey
func (*MockTransactionStore) UpdateStatusToError ¶
func (_m *MockTransactionStore) UpdateStatusToError(ctx context.Context, tx store.Transaction, message string) (*store.Transaction, error)
UpdateStatusToError provides a mock function with given fields: ctx, tx, message
func (*MockTransactionStore) UpdateStatusToSuccess ¶
func (_m *MockTransactionStore) UpdateStatusToSuccess(ctx context.Context, tx store.Transaction) (*store.Transaction, error)
UpdateStatusToSuccess provides a mock function with given fields: ctx, tx
func (*MockTransactionStore) UpdateStellarTransactionHashAndXDRSent ¶
func (_m *MockTransactionStore) UpdateStellarTransactionHashAndXDRSent(ctx context.Context, txID string, txHash string, txXDRSent string) (*store.Transaction, error)
UpdateStellarTransactionHashAndXDRSent provides a mock function with given fields: ctx, txID, txHash, txXDRSent
func (*MockTransactionStore) UpdateStellarTransactionXDRReceived ¶
func (_m *MockTransactionStore) UpdateStellarTransactionXDRReceived(ctx context.Context, txID string, xdrReceived string) (*store.Transaction, error)
UpdateStellarTransactionXDRReceived provides a mock function with given fields: ctx, txID, xdrReceived
func (*MockTransactionStore) UpdateSyncedTransactions ¶
func (_m *MockTransactionStore) UpdateSyncedTransactions(ctx context.Context, sqlExec db.SQLExecuter, txIDs []string) error
UpdateSyncedTransactions provides a mock function with given fields: ctx, sqlExec, txIDs