Documentation
¶
Index ¶
- type Config
- type Module
- func (p *Module) ApplyDefaults()
- func (p *Module) DatasourceInfo() []types.DatasourceInfo
- func (p *Module) Enabled() bool
- func (p *Module) Examples() map[string]types.ExampleCategory
- func (p *Module) GettingStartedSnippet() string
- func (p *Module) Init(rawConfig []byte) error
- func (p *Module) InitFromDiscovery(datasources []types.DatasourceInfo) error
- func (p *Module) Name() string
- func (p *Module) PythonAPIDocs() map[string]types.ModuleDoc
- func (p *Module) SandboxEnv() (map[string]string, error)
- func (p *Module) Start(_ context.Context) error
- func (p *Module) Stop(_ context.Context) error
- func (p *Module) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Enabled controls whether the ethnode module is active.
// Defaults to true when configured.
Enabled *bool `yaml:"enabled,omitempty"`
}
Config holds the ethnode module configuration.
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module implements the module.Module interface for direct Ethereum node API access.
func (*Module) ApplyDefaults ¶
func (p *Module) ApplyDefaults()
func (*Module) DatasourceInfo ¶
func (p *Module) DatasourceInfo() []types.DatasourceInfo
DatasourceInfo returns empty since ethnode is a pass-through proxy, not a named datasource.
func (*Module) Examples ¶
func (p *Module) Examples() map[string]types.ExampleCategory
Examples returns query examples for ethnode.
func (*Module) GettingStartedSnippet ¶
GettingStartedSnippet returns a Markdown snippet for the getting-started resource.
func (*Module) InitFromDiscovery ¶
func (p *Module) InitFromDiscovery(datasources []types.DatasourceInfo) error
InitFromDiscovery enables the module if an ethnode datasource exists.
func (*Module) PythonAPIDocs ¶
PythonAPIDocs returns API documentation for the ethnode Python module.
func (*Module) SandboxEnv ¶
SandboxEnv returns environment variables for the sandbox.
Click to show internal directories.
Click to hide internal directories.