registry

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry consolidates services at one place.

func New

func New() *Registry

New creates a new registry.

func (*Registry) GetBeaconchain

func (r *Registry) GetBeaconchain() core.BlockChain

GetBeaconchain gets the beaconchain from registry.

func (*Registry) GetBlockchain

func (r *Registry) GetBlockchain() core.BlockChain

GetBlockchain gets the blockchain from registry.

func (*Registry) GetCxPool

func (r *Registry) GetCxPool() *core.CxPool

GetCxPool gets the cxpool from registry.

func (*Registry) GetEngine

func (r *Registry) GetEngine() engine.Engine

GetEngine gets the engine from registry.

func (*Registry) GetShardChainCollection

func (r *Registry) GetShardChainCollection() *shardchain.CollectionImpl

GetShardChainCollection gets the shard chain collection from registry.

func (*Registry) GetTxPool

func (r *Registry) GetTxPool() *core.TxPool

GetTxPool gets the txpool from registry.

func (*Registry) GetWebHooks

func (r *Registry) GetWebHooks() *webhooks.Hooks

GetWebHooks gets the webhooks from registry.

func (*Registry) IsBackup

func (r *Registry) IsBackup() bool

func (*Registry) SetBeaconchain

func (r *Registry) SetBeaconchain(bc core.BlockChain) *Registry

SetBeaconchain sets the beaconchain to registry.

func (*Registry) SetBlockchain

func (r *Registry) SetBlockchain(bc core.BlockChain) *Registry

SetBlockchain sets the blockchain to registry.

func (*Registry) SetCxPool

func (r *Registry) SetCxPool(cxPool *core.CxPool) *Registry

SetCxPool sets the cxpool to registry.

func (*Registry) SetEngine

func (r *Registry) SetEngine(engine engine.Engine) *Registry

SetEngine sets the engine to registry.

func (*Registry) SetIsBackup

func (r *Registry) SetIsBackup(isBackup bool) *Registry

func (*Registry) SetShardChainCollection

func (r *Registry) SetShardChainCollection(collection *shardchain.CollectionImpl) *Registry

SetShardChainCollection sets the shard chain collection to registry.

func (*Registry) SetTxPool

func (r *Registry) SetTxPool(txPool *core.TxPool) *Registry

SetTxPool sets the txpool to registry.

func (*Registry) SetWebHooks

func (r *Registry) SetWebHooks(hooks *webhooks.Hooks) *Registry

SetWebHooks sets the webhooks to registry.

Jump to

Keyboard shortcuts

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