dora

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 8 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 Dora module is active.
	// Defaults to true.
	Enabled *bool `yaml:"enabled,omitempty"`
}

Config holds the Dora module configuration. Dora is enabled by default since it's a public service and requires no credentials.

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 the Dora module.

func New

func New() *Module

New creates a new Dora module.

func (*Module) ApplyDefaults

func (p *Module) ApplyDefaults()

func (*Module) DatasourceInfo

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

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

func (*Module) DefaultEnabled

func (p *Module) DefaultEnabled() bool

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

func (*Module) Enabled

func (p *Module) Enabled() bool

Enabled reports whether Dora operations should be exposed.

func (*Module) Examples

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

func (*Module) GettingStartedSnippet

func (p *Module) GettingStartedSnippet() string

func (*Module) Init

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

func (*Module) Name

func (p *Module) Name() string

func (*Module) PythonAPIDocs

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

func (*Module) SandboxEnv

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

SandboxEnv returns environment variables for the sandbox. Returns ETHPANDAOPS_DORA_NETWORKS with network->URL mapping from cartographoor.

func (*Module) SetCartographoorClient

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

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

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