interfaces

package
v1.22.25 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine interface {
	// Start starts the engine
	Start(context.Context, uint32) error

	// Stop stops the engine
	Stop(context.Context) error

	// HealthCheck performs health check
	HealthCheck(context.Context) (interface{}, error)

	// IsBootstrapped checks if bootstrapped
	IsBootstrapped() bool
}

Engine defines the consensus engine interface

type VM

type VM interface {
	// Initialize initializes the VM
	Initialize(context.Context, *VMConfig) error

	// Shutdown shuts down the VM
	Shutdown(context.Context) error

	// Version returns VM version
	Version(context.Context) (string, error)
}

VM defines a virtual machine

type VMConfig

type VMConfig struct {
	ChainID   ids.ID
	NetworkID uint32
	NodeID    ids.NodeID
	PublicKey []byte
}

VMConfig defines VM configuration

Jump to

Keyboard shortcuts

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