Help us shape the future of Go! Take the 2026 Go Developer Survey

engine

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

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

func (e *V2) AddressesService() *addresses.Service

AddressesService returns the addresses service

func (*V2) Chain

func (e *V2) Chain() chain.Service

Chain returns the chain service

func (*V2) Close

func (e *V2) Close(_ context.Context) error

Close closes the V2 and all its services

func (*V2) ContactService

func (e *V2) ContactService() *contacts.Service

ContactService returns the contacts service

func (*V2) DB

func (e *V2) DB() *gorm.DB

DB returns the database Deprecated: DB used as adapter for engine v1

func (*V2) DataService

func (e *V2) DataService() *data.Service

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

func (e *V2) PaymailsService() *paymails.Service

PaymailsService returns the paymails service

func (*V2) Repositories

func (e *V2) Repositories() *repository.All

Repositories returns all repositories

func (*V2) TransactionOutlinesService

func (e *V2) TransactionOutlinesService() outlines.Service

TransactionOutlinesService returns the transaction outlines service

func (*V2) TransactionRecordService

func (e *V2) TransactionRecordService() *record.Service

TransactionRecordService returns the transaction record service

func (*V2) TxSyncService

func (e *V2) TxSyncService() *txsync.Service

TxSyncService returns the tx sync service

func (*V2) UsersService

func (e *V2) UsersService() *users.Service

UsersService returns the users service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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