Documentation ¶
Index ¶
- func NewHost(config *hostconfig.HostConfig, hostServices *ServicesRegistry, ...) hostcommon.Host
- type ServicesRegistry
- func (s *ServicesRegistry) All() map[string]hostcommon.Service
- func (s *ServicesRegistry) CrossChainMachine() l1.CrossChainStateMachine
- func (s *ServicesRegistry) Enclaves() hostcommon.EnclaveService
- func (s *ServicesRegistry) L1Publisher() hostcommon.L1Publisher
- func (s *ServicesRegistry) L1Repo() hostcommon.L1BlockRepository
- func (s *ServicesRegistry) L2Repo() hostcommon.L2BatchRepository
- func (s *ServicesRegistry) LogSubs() hostcommon.LogSubscriptionManager
- func (s *ServicesRegistry) P2P() hostcommon.P2P
- func (s *ServicesRegistry) RegisterService(name string, service hostcommon.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHost ¶
func NewHost(config *hostconfig.HostConfig, hostServices *ServicesRegistry, p2p hostcommon.P2PHostService, ethClient ethadapter.EthClient, l1Repo hostcommon.L1RepoService, enclaveClients []common.Enclave, ethWallet wallet.Wallet, mgmtContractLib mgmtcontractlib.MgmtContractLib, logger gethlog.Logger, regMetrics gethmetrics.Registry, blobResolver l1.BlobResolver) hostcommon.Host
Types ¶
type ServicesRegistry ¶
type ServicesRegistry struct {
// contains filtered or unexported fields
}
func NewServicesRegistry ¶
func NewServicesRegistry(logger log.Logger) *ServicesRegistry
func (*ServicesRegistry) All ¶
func (s *ServicesRegistry) All() map[string]hostcommon.Service
func (*ServicesRegistry) CrossChainMachine ¶ added in v0.25.0
func (s *ServicesRegistry) CrossChainMachine() l1.CrossChainStateMachine
func (*ServicesRegistry) Enclaves ¶
func (s *ServicesRegistry) Enclaves() hostcommon.EnclaveService
func (*ServicesRegistry) L1Publisher ¶
func (s *ServicesRegistry) L1Publisher() hostcommon.L1Publisher
func (*ServicesRegistry) L1Repo ¶
func (s *ServicesRegistry) L1Repo() hostcommon.L1BlockRepository
func (*ServicesRegistry) L2Repo ¶
func (s *ServicesRegistry) L2Repo() hostcommon.L2BatchRepository
func (*ServicesRegistry) LogSubs ¶
func (s *ServicesRegistry) LogSubs() hostcommon.LogSubscriptionManager
func (*ServicesRegistry) P2P ¶
func (s *ServicesRegistry) P2P() hostcommon.P2P
func (*ServicesRegistry) RegisterService ¶
func (s *ServicesRegistry) RegisterService(name string, service hostcommon.Service)
Click to show internal directories.
Click to hide internal directories.