Documentation
¶
Index ¶
- Constants
- type Config
- type Module
- func (m *Module) ApplyDefaults()
- func (m *Module) DatasourceInfo() []types.DatasourceInfo
- func (m *Module) DefaultEnabled() bool
- func (m *Module) Examples() map[string]types.ExampleCategory
- func (m *Module) Init(rawConfig []byte) error
- func (m *Module) Name() string
- func (m *Module) PythonAPIDocs() map[string]types.ModuleDoc
- func (m *Module) SandboxEnv() (map[string]string, error)
- func (m *Module) Start(_ context.Context) error
- func (m *Module) Stop(_ context.Context) error
- func (m *Module) URL() string
- func (m *Module) Validate() error
Constants ¶
const DefaultURL = "https://block-archiver.analytics.production.platform.ethpandaops.io"
DefaultURL is the production block-archiver public endpoint.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// URL is the base URL of the block-archiver service. Defaults to the
// production endpoint.
URL string `yaml:"url,omitempty"`
}
Config holds the Block Archive module configuration. Block Archive is a public service and requires no credentials.
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module implements the module.Module interface for the Block Archive module.
func (*Module) ApplyDefaults ¶
func (m *Module) ApplyDefaults()
func (*Module) DatasourceInfo ¶
func (m *Module) DatasourceInfo() []types.DatasourceInfo
DatasourceInfo returns empty since the block archive is a single hosted service, not a per-network datasource.
func (*Module) DefaultEnabled ¶
DefaultEnabled implements module.DefaultEnabled. Block Archive is enabled by default since it requires no configuration.
func (*Module) SandboxEnv ¶
SandboxEnv returns environment variables for the sandbox. Returns ETHPANDAOPS_BLOCK_ARCHIVE_URL so the Python wrapper knows the archive base URL. Network discovery happens server-side at call time.