runner

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChainAlreadyExists = errors.New("chain already exists")
)

Functions

This section is empty.

Types

type ChainDetails

type ChainDetails struct {
	RpcPort  string
	GrpcPort string
	RestPort string
	EvmPort  string

	ChainId      string
	StakingDenom string
}

ChainDetails wraps information about the ports exposed to the host that endpoints could be access on.

func (ChainDetails) EvmClient

func (c ChainDetails) EvmClient() (*ethclient.Client, error)

func (ChainDetails) GrpcConn

func (c ChainDetails) GrpcConn() (*grpc.ClientConn, error)

type Chains

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

func NewChains

func NewChains() Chains

func (Chains) MustGetChain

func (c Chains) MustGetChain(name string) *ChainDetails

func (*Chains) Register

func (c *Chains) Register(name string, chain *ChainDetails) error

type Config added in v0.4.0

type Config struct {
	FuryConfigTemplate string

	ImageTag   string
	IncludeIBC bool

	EnableAutomatedUpgrade  bool
	FuryUpgradeName         string
	FuryUpgradeHeight       int64
	FuryUpgradeBaseImageTag string

	SkipShutdown bool
}

type FuryNodeRunner added in v0.4.0

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

FuryNodeRunner manages and runs a single Fury node.

func NewFuryNode added in v0.4.0

func NewFuryNode(config Config) *FuryNodeRunner

func (*FuryNodeRunner) Shutdown added in v0.4.0

func (k *FuryNodeRunner) Shutdown()

func (*FuryNodeRunner) StartChains added in v0.4.0

func (k *FuryNodeRunner) StartChains() Chains

type NodeRunner

type NodeRunner interface {
	StartChains() Chains
	Shutdown()
}

NodeRunner is responsible for starting and managing docker containers to run a node.

Jump to

Keyboard shortcuts

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