Documentation
¶
Index ¶
- type InternalsOverride
- type V2
- func (e *V2) AddressesService() *addresses.Service
- func (e *V2) Chain() chain.Service
- func (e *V2) Close(_ context.Context) error
- func (e *V2) ContactService() *contacts.Service
- func (e *V2) DB() *gorm.DB
- func (e *V2) DataService() *data.Service
- func (e *V2) OperationsService() *operations.Service
- func (e *V2) PaymailServerConfiguration() *server.Configuration
- func (e *V2) PaymailsService() *paymails.Service
- func (e *V2) Repositories() *repository.All
- func (e *V2) TransactionOutlinesService() outlines.Service
- func (e *V2) TransactionRecordService() *record.Service
- func (e *V2) TxSyncService() *txsync.Service
- func (e *V2) UsersService() *users.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalsOverride ¶
type InternalsOverride = func(*overrides)
InternalsOverride is a function that can be used to override internal dependencies. This is meant to be used for testing purposes.
func WithPaymailClient ¶
func WithPaymailClient(client paymail.ClientInterface) InternalsOverride
WithPaymailClient is a function that can be used to override the paymail.ClientInterface used by the engine. This is meant to be used for testing purposes.
func WithResty ¶
func WithResty(resty *resty.Client) InternalsOverride
WithResty is a function that can be used to override the resty.Client used by the engine. This is meant to be used for testing purposes.
func WithTransport ¶
func WithTransport(transport http.RoundTripper) InternalsOverride
WithTransport is a function that can be used to override the http.RoundTripper used by the engine. This is meant to be used for testing purposes.
type V2 ¶
type V2 struct {
// contains filtered or unexported fields
}
V2 is the engine of the wallet, it is creating all needed services, and preparing database connection.
func NewEngine ¶
func NewEngine(cfg *config.AppConfig, logger zerolog.Logger, overridesOpts ...InternalsOverride) *V2
NewEngine creates a new engine.V2 instance.
func (*V2) AddressesService ¶
AddressesService returns the addresses service
func (*V2) ContactService ¶
ContactService returns the contacts service
func (*V2) DataService ¶
DataService returns the data service
func (*V2) OperationsService ¶
func (e *V2) OperationsService() *operations.Service
OperationsService returns the operations service
func (*V2) PaymailServerConfiguration ¶
func (e *V2) PaymailServerConfiguration() *server.Configuration
PaymailServerConfiguration returns the paymail server configuration
func (*V2) PaymailsService ¶
PaymailsService returns the paymails service
func (*V2) Repositories ¶
func (e *V2) Repositories() *repository.All
Repositories returns all repositories
func (*V2) TransactionOutlinesService ¶
TransactionOutlinesService returns the transaction outlines service
func (*V2) TransactionRecordService ¶
TransactionRecordService returns the transaction record service
func (*V2) TxSyncService ¶
TxSyncService returns the tx sync service
func (*V2) UsersService ¶
UsersService returns the users service