Documentation
¶
Index ¶
- func Register(typeName string, factory Factory)
- type Config
- type Engine
- func (e *Engine) GetConfiguredAccounts() []int
- func (e *Engine) Init(config Config)
- func (e *Engine) NotifyReady()
- func (e *Engine) ResolveWallet(name string) (accountID int, walletID int, walletType common.WalletType, err error)
- func (e *Engine) SetAccounts(accountIDs []int, walletTypes map[int]common.WalletType)
- func (e *Engine) SetExecutionRouter(router *adapter.ExecutionRouter)
- func (e *Engine) Start()
- func (e *Engine) Stop()
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
engine.EngineBase
// contains filtered or unexported fields
}
Engine manages ledger actors and orchestrates their lifecycle. Balance state is owned by individual InventoryActors which write to cache.
func (*Engine) GetConfiguredAccounts ¶
GetConfiguredAccounts returns the list of configured account IDs.
func (*Engine) NotifyReady ¶
func (e *Engine) NotifyReady()
NotifyReady is called by each InventoryActor when its snapshot is received. When all inventory actors have reported ready, the engine notifies the system.
func (*Engine) ResolveWallet ¶
func (*Engine) SetAccounts ¶
func (e *Engine) SetAccounts(accountIDs []int, walletTypes map[int]common.WalletType)
SetAccounts sets the account IDs and their wallet types to track.
func (*Engine) SetExecutionRouter ¶
func (e *Engine) SetExecutionRouter(router *adapter.ExecutionRouter)
SetExecutionRouter sets the execution router for subscribing and requesting balance snapshots.
Click to show internal directories.
Click to hide internal directories.