hive

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL = "https://hive.ethpandaops.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL string
}

Config contains configuration for Hive.

type Hive

type Hive interface {
	// Snapshot takes a screenshot of the test coverage for a specific client.
	Snapshot(ctx context.Context, cfg SnapshotConfig) ([]byte, error)
	// IsAvailable checks if Hive is available for a given network.
	IsAvailable(ctx context.Context, network string) (bool, error)
	// GetBaseURL returns the base URL of the Hive instance.
	GetBaseURL() string
}

Hive is the interface for Hive operations.

func NewHive

func NewHive(cfg *Config) Hive

NewHive creates a new Hive client.

type SnapshotConfig

type SnapshotConfig struct {
	Network       string
	ConsensusNode string
	ExecutionNode string
}

SnapshotConfig contains configuration for taking a screenshot of the test coverage.

func (*SnapshotConfig) Validate

func (c *SnapshotConfig) Validate() error

Validate validates the snapshot configuration.

Jump to

Keyboard shortcuts

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