container

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

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

Jump to

Keyboard shortcuts

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