ethnode

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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.

func (*Config) IsEnabled

func (c *Config) IsEnabled() bool

IsEnabled returns true if the module is enabled (default: true).

type Module

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

Module implements the module.Module interface for direct Ethereum node API access.

func New

func New() *Module

New creates a new ethnode module.

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) Enabled

func (p *Module) Enabled() bool

Enabled reports whether ethnode operations should be exposed.

func (*Module) Examples

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

Examples returns query examples for ethnode.

func (*Module) GettingStartedSnippet

func (p *Module) GettingStartedSnippet() string

GettingStartedSnippet returns a Markdown snippet for the getting-started resource.

func (*Module) Init

func (p *Module) Init(rawConfig []byte) error

func (*Module) InitFromDiscovery

func (p *Module) InitFromDiscovery(datasources []types.DatasourceInfo) error

InitFromDiscovery enables the module if an ethnode datasource exists.

func (*Module) Name

func (p *Module) Name() string

func (*Module) PythonAPIDocs

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

PythonAPIDocs returns API documentation for the ethnode Python module.

func (*Module) SandboxEnv

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

SandboxEnv returns environment variables for the sandbox.

func (*Module) Start

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

func (*Module) Stop

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

func (*Module) Validate

func (p *Module) Validate() error

Jump to

Keyboard shortcuts

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