host

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

README

This package contains code related to the node's host component.

The entry point to the host component is the main function in host/main/.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHost

func NewHost(config *config.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) 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 (*ServicesRegistry) Enclaves

func (*ServicesRegistry) L1Publisher

func (s *ServicesRegistry) L1Publisher() hostcommon.L1Publisher

func (*ServicesRegistry) L1Repo

func (*ServicesRegistry) L2Repo

func (*ServicesRegistry) LogSubs

func (*ServicesRegistry) P2P

func (s *ServicesRegistry) P2P() hostcommon.P2P

func (*ServicesRegistry) RegisterService

func (s *ServicesRegistry) RegisterService(name string, service hostcommon.Service)

Directories

Path Synopsis
rpc

Jump to

Keyboard shortcuts

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