interfaces

package
v1.22.29 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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(context.Context, uint32) error
	Stop(context.Context) error
	HealthCheck(context.Context) (interface{}, error)
	IsBootstrapped() bool
}

Engine defines the consensus engine interface

type Fx added in v1.22.28

type Fx interface {
	Initialize(vm interface{}) error
	Bootstrapping() error
	Bootstrapped() error
}

Fx is a feature extension

type VM

type VM interface {
	Initialize(context.Context, *VMConfig) error
	Shutdown(context.Context) error
	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