cbt

package
v0.33.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NetworkBaseURL added in v0.30.0

func NetworkBaseURL(network string) string

NetworkBaseURL returns the CBT instance base URL for a network, derived from the standard ethpandaops.io naming convention. Cartographoor discovery does not expose a CBT service URL, so the per-network host is derived here.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module implements the module.Module interface for the CBT module.

func New

func New() *Module

New creates a new CBT module.

func (*Module) ApplyDefaults

func (m *Module) ApplyDefaults()

func (*Module) DatasourceInfo

func (m *Module) DatasourceInfo() []types.DatasourceInfo

DatasourceInfo returns empty since networks are the datasources, and those come from cartographoor.

func (*Module) DefaultEnabled

func (m *Module) DefaultEnabled() bool

DefaultEnabled implements module.DefaultEnabled. CBT is enabled by default since it requires no configuration.

func (*Module) Examples

func (m *Module) Examples() map[string]types.ExampleCategory

func (*Module) Init

func (m *Module) Init(_ []byte) error

func (*Module) Name

func (m *Module) Name() string

func (*Module) PythonAPIDocs

func (m *Module) PythonAPIDocs() map[string]types.ModuleDoc

func (*Module) SandboxEnv

func (m *Module) SandboxEnv() (map[string]string, error)

SandboxEnv returns environment variables for the sandbox. Returns ETHPANDAOPS_CBT_NETWORKS with network->URL mapping derived from cartographoor active networks using the convention https://cbt.{network}.ethpandaops.io.

func (*Module) SetCartographoorClient

func (m *Module) SetCartographoorClient(client cartographoor.CartographoorClient)

SetCartographoorClient implements module.CartographoorAware. This is called by the builder to inject the cartographoor client.

func (*Module) Start

func (m *Module) Start(_ context.Context) error

func (*Module) Stop

func (m *Module) Stop(_ context.Context) error

func (*Module) Validate

func (m *Module) Validate() error

Jump to

Keyboard shortcuts

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