Documentation ¶
Index ¶
- Variables
- func Now() time.Time
- type MockEntityManager
- type MockFederationResolver
- type MockHTTPClient
- type MockHorizon
- func (m *MockHorizon) LoadAccount(accountID string) (response horizon.AccountResponse, err error)
- func (m *MockHorizon) LoadAccountMergeAmount(p *horizon.PaymentResponse) (err error)
- func (m *MockHorizon) LoadMemo(p *horizon.PaymentResponse) (err error)
- func (m *MockHorizon) LoadOperation(operationID string) (response horizon.PaymentResponse, err error)
- func (m *MockHorizon) StreamPayments(accountID string, cursor *string, onPaymentHandler horizon.PaymentHandler) (err error)
- func (m *MockHorizon) SubmitTransaction(txeBase64 string) (response horizon.SubmitTransactionResponse, err error)
- type MockRepository
- func (m *MockRepository) GetAllowedFiByDomain(domain string) (*entities.AllowedFi, error)
- func (m *MockRepository) GetAllowedUserByDomainAndUserID(domain, userID string) (*entities.AllowedUser, error)
- func (m *MockRepository) GetAuthData(id string) (*entities.AuthData, error)
- func (m *MockRepository) GetAuthorizedTransactionByMemo(memo string) (*entities.AuthorizedTransaction, error)
- func (m *MockRepository) GetLastCursorValue() (cursor *string, err error)
- func (m *MockRepository) GetReceivedPaymentByOperationID(operationID int64) (*entities.ReceivedPayment, error)
- func (m *MockRepository) GetReceivedPayments(page, limit int) ([]*entities.ReceivedPayment, error)
- func (m *MockRepository) GetSentTransactionByPaymentID(paymentID string) (*entities.SentTransaction, error)
- func (m *MockRepository) GetSentTransactions(page, limit int) ([]*entities.SentTransaction, error)
- type MockSignerVerifier
- type MockStellartomlResolver
- type MockTransactionSubmitter
- func (ts *MockTransactionSubmitter) SignAndSubmitRawTransaction(paymentID *string, seed string, tx *xdr.Transaction) (response horizon.SubmitTransactionResponse, err error)
- func (ts *MockTransactionSubmitter) SubmitTransaction(paymentID *string, seed string, operation, memo interface{}) (response horizon.SubmitTransactionResponse, err error)
Constants ¶
This section is empty.
Variables ¶
var PredefinedTime time.Time
PredefinedTime is a time.Time object that will be returned by Now() function
Functions ¶
Types ¶
type MockEntityManager ¶
MockEntityManager ...
type MockFederationResolver ¶
MockFederationResolver ...
func (*MockFederationResolver) ForwardRequest ¶ added in v0.0.30
func (m *MockFederationResolver) ForwardRequest(domain string, fields url.Values) (*fproto.NameResponse, error)
ForwardRequest is a mocking a method
func (*MockFederationResolver) LookupByAccountID ¶ added in v0.0.16
func (m *MockFederationResolver) LookupByAccountID(aid string) (*fproto.IDResponse, error)
LookupByAccountID is a mocking a method
func (*MockFederationResolver) LookupByAddress ¶ added in v0.0.16
func (m *MockFederationResolver) LookupByAddress(addy string) (*fproto.NameResponse, error)
LookupByAddress is a mocking a method
type MockHTTPClient ¶
MockHTTPClient ...
type MockHorizon ¶
MockHorizon ...
func (*MockHorizon) LoadAccount ¶
func (m *MockHorizon) LoadAccount(accountID string) (response horizon.AccountResponse, err error)
LoadAccount is a mocking a method
func (*MockHorizon) LoadAccountMergeAmount ¶ added in v0.0.29
func (m *MockHorizon) LoadAccountMergeAmount(p *horizon.PaymentResponse) (err error)
LoadAccountMergeAmount is a mocking a method
func (*MockHorizon) LoadMemo ¶
func (m *MockHorizon) LoadMemo(p *horizon.PaymentResponse) (err error)
LoadMemo is a mocking a method
func (*MockHorizon) LoadOperation ¶ added in v0.0.22
func (m *MockHorizon) LoadOperation(operationID string) (response horizon.PaymentResponse, err error)
LoadOperation is a mocking a method
func (*MockHorizon) StreamPayments ¶
func (m *MockHorizon) StreamPayments(accountID string, cursor *string, onPaymentHandler horizon.PaymentHandler) (err error)
StreamPayments is a mocking a method
func (*MockHorizon) SubmitTransaction ¶
func (m *MockHorizon) SubmitTransaction(txeBase64 string) (response horizon.SubmitTransactionResponse, err error)
SubmitTransaction is a mocking a method
type MockRepository ¶
MockRepository ...
func (*MockRepository) GetAllowedFiByDomain ¶
func (m *MockRepository) GetAllowedFiByDomain(domain string) (*entities.AllowedFi, error)
GetAllowedFiByDomain is a mocking a method
func (*MockRepository) GetAllowedUserByDomainAndUserID ¶
func (m *MockRepository) GetAllowedUserByDomainAndUserID(domain, userID string) (*entities.AllowedUser, error)
GetAllowedUserByDomainAndUserID is a mocking a method
func (*MockRepository) GetAuthData ¶ added in v0.0.31
func (m *MockRepository) GetAuthData(id string) (*entities.AuthData, error)
GetAuthData is a mocking a method
func (*MockRepository) GetAuthorizedTransactionByMemo ¶
func (m *MockRepository) GetAuthorizedTransactionByMemo(memo string) (*entities.AuthorizedTransaction, error)
GetAuthorizedTransactionByMemo is a mocking a method
func (*MockRepository) GetLastCursorValue ¶
func (m *MockRepository) GetLastCursorValue() (cursor *string, err error)
GetLastCursorValue is a mocking a method
func (*MockRepository) GetReceivedPaymentByOperationID ¶ added in v0.0.22
func (m *MockRepository) GetReceivedPaymentByOperationID(operationID int64) (*entities.ReceivedPayment, error)
GetReceivedPaymentByOperationID is a mocking a method
func (*MockRepository) GetReceivedPayments ¶ added in v0.0.27
func (m *MockRepository) GetReceivedPayments(page, limit int) ([]*entities.ReceivedPayment, error)
func (*MockRepository) GetSentTransactionByPaymentID ¶ added in v0.0.29
func (m *MockRepository) GetSentTransactionByPaymentID(paymentID string) (*entities.SentTransaction, error)
func (*MockRepository) GetSentTransactions ¶ added in v0.0.27
func (m *MockRepository) GetSentTransactions(page, limit int) ([]*entities.SentTransaction, error)
type MockSignerVerifier ¶
MockSignerVerifier ...
type MockStellartomlResolver ¶
MockStellartomlResolver ...
func (*MockStellartomlResolver) GetStellarToml ¶
func (m *MockStellartomlResolver) GetStellarToml(domain string) (resp *stellartoml.Response, err error)
func (*MockStellartomlResolver) GetStellarTomlByAddress ¶
func (m *MockStellartomlResolver) GetStellarTomlByAddress(addy string) (*stellartoml.Response, error)
GetStellarTomlByAddress is a mocking a method
type MockTransactionSubmitter ¶
MockTransactionSubmitter ...
func (*MockTransactionSubmitter) SignAndSubmitRawTransaction ¶
func (ts *MockTransactionSubmitter) SignAndSubmitRawTransaction(paymentID *string, seed string, tx *xdr.Transaction) (response horizon.SubmitTransactionResponse, err error)
SignAndSubmitRawTransaction is a mocking a method
func (*MockTransactionSubmitter) SubmitTransaction ¶
func (ts *MockTransactionSubmitter) SubmitTransaction(paymentID *string, seed string, operation, memo interface{}) (response horizon.SubmitTransactionResponse, err error)
SubmitTransaction is a mocking a method