Documentation ¶
Index ¶
- func NewHost(config *config.HostConfig, hostServices *ServicesRegistry, ...) hostcommon.Host
- type ServicesRegistry
- func (s *ServicesRegistry) All() map[string]hostcommon.Service
- 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 ¶ added in v0.6.0
func NewHost(config *config.HostConfig, hostServices *ServicesRegistry, p2p hostcommon.P2PHostService, ethClient ethadapter.EthClient, l1Repo hostcommon.L1RepoService, enclaveClient common.Enclave, ethWallet wallet.Wallet, mgmtContractLib mgmtcontractlib.MgmtContractLib, logger gethlog.Logger, regMetrics gethmetrics.Registry) hostcommon.Host
Types ¶
type ServicesRegistry ¶ added in v0.14.0
type ServicesRegistry struct {
// contains filtered or unexported fields
}
func NewServicesRegistry ¶ added in v0.14.0
func NewServicesRegistry(logger log.Logger) *ServicesRegistry
func (*ServicesRegistry) All ¶ added in v0.14.0
func (s *ServicesRegistry) All() map[string]hostcommon.Service
func (*ServicesRegistry) Enclaves ¶ added in v0.14.0
func (s *ServicesRegistry) Enclaves() hostcommon.EnclaveService
func (*ServicesRegistry) L1Publisher ¶ added in v0.14.0
func (s *ServicesRegistry) L1Publisher() hostcommon.L1Publisher
func (*ServicesRegistry) L1Repo ¶ added in v0.14.0
func (s *ServicesRegistry) L1Repo() hostcommon.L1BlockRepository
func (*ServicesRegistry) L2Repo ¶ added in v0.14.0
func (s *ServicesRegistry) L2Repo() hostcommon.L2BatchRepository
func (*ServicesRegistry) LogSubs ¶ added in v0.14.0
func (s *ServicesRegistry) LogSubs() hostcommon.LogSubscriptionManager
func (*ServicesRegistry) P2P ¶ added in v0.14.0
func (s *ServicesRegistry) P2P() hostcommon.P2P
func (*ServicesRegistry) RegisterService ¶ added in v0.14.0
func (s *ServicesRegistry) RegisterService(name string, service hostcommon.Service)
Click to show internal directories.
Click to hide internal directories.