Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIVersion1 = "1.0" APINamespaceObscuro = "obscuro" APINamespaceEth = "eth" APINamespaceScan = "scan" APINamespaceNetwork = "net" APINamespaceTest = "test" APINamespaceDebug = "debug" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostContainer ¶
type HostContainer struct {
// contains filtered or unexported fields
}
func NewHostContainer ¶
func NewHostContainer(cfg *hostconfig.HostConfig, services *host.ServicesRegistry, p2p hostcommon.P2PHostService, l1Client ethadapter.EthClient, l1Repo hostcommon.L1RepoService, enclaveClients []common.Enclave, contractLib mgmtcontractlib.MgmtContractLib, hostWallet wallet.Wallet, rpcServer node.Server, logger gethlog.Logger, metricsService *metrics.Service, blobResolver l1.BlobResolver) *HostContainer
NewHostContainer builds a host container with dependency injection rather than from config. Useful for testing etc. (want to be able to pass in logger, and also have option to mock out dependencies)
func NewHostContainerFromConfig ¶
func NewHostContainerFromConfig(cfg *hostconfig.HostConfig, logger gethlog.Logger) *HostContainer
NewHostContainerFromConfig uses config to create all HostContainer dependencies and inject them into a new HostContainer (Note: it does not start the HostContainer process, `Start()` must be called on the container)
func (*HostContainer) Host ¶
func (h *HostContainer) Host() hostcommon.Host
func (*HostContainer) Start ¶
func (h *HostContainer) Start() error
func (*HostContainer) Stop ¶
func (h *HostContainer) Stop() error
Click to show internal directories.
Click to hide internal directories.