interop

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT, MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.11.0

type Config struct {
	// RPCAddr address to bind RPC server to, to serve external supervisor nodes.
	// Optional. This will soon be required: running op-node without supervisor is being deprecated.
	RPCAddr string
	// RPCPort port to bind RPC server to, to serve external supervisor nodes.
	// Binds to any available port if set to 0.
	RPCPort int
	// RPCJwtSecretPath path of JWT secret file to apply authentication to the interop server address.
	RPCJwtSecretPath string
}

func (*Config) Check added in v1.11.0

func (cfg *Config) Check() error

func (*Config) Setup added in v1.11.0

func (cfg *Config) Setup(ctx context.Context, logger log.Logger, rollupCfg *rollup.Config, l1 L1Source, l2 L2Source, m opmetrics.RPCMetricer) (SubSystem, error)

Setup creates an interop sub-system. This drives the node syncing. If setup returns a nil system (without error) the node should fall back to legacy mode.

type L1Source added in v1.11.0

type L1Source interface {
	indexing.L1Source
}

type L2Source

type L2Source interface {
	indexing.L2Source
}

type Setup added in v1.11.0

type Setup interface {
	Setup(ctx context.Context, logger log.Logger, rollupCfg *rollup.Config, l1 L1Source, l2 L2Source, m opmetrics.RPCMetricer) (SubSystem, error)
	Check() error
}

type SubSystem added in v1.11.0

type SubSystem interface {
	event.Deriver
	event.AttachEmitter
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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