processmanager

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLink(binaryPath string)

func FetchProtocolBinary added in v0.22.0

func FetchProtocolBinary(lavavisorPath string, autoDownload bool, protocolConsensusVersion *protocoltypes.Version) (selectedBinaryPath string, err error)

func GetBinaryVersion

func GetBinaryVersion(binaryPath string) (string, error)

func SetupLavavisorDir added in v0.22.0

func SetupLavavisorDir(dir string) (lavavisorPath string, err error)

func ValidateLavavisorDir added in v0.22.0

func ValidateLavavisorDir(dir string) (lavavisorPath string, err error)

Types

type ServiceProcess added in v0.22.0

type ServiceProcess struct {
	Name    string
	ChainID string
}

func StartProcess

func StartProcess(processes []*ServiceProcess, process string, serviceDir string) []*ServiceProcess

type VersionMonitor

type VersionMonitor struct {
	BinaryPath    string
	LavavisorPath string
	// contains filtered or unexported fields
}

func NewVersionMonitor

func NewVersionMonitor(initVersion string, lavavisorPath string, processes []*ServiceProcess, autoDownload bool) *VersionMonitor

func (*VersionMonitor) MonitorVersionUpdates added in v0.22.0

func (vm *VersionMonitor) MonitorVersionUpdates(ctx context.Context)

func (*VersionMonitor) ValidateProtocolVersion

func (vm *VersionMonitor) ValidateProtocolVersion(incoming *protocoltypes.Version) error

Jump to

Keyboard shortcuts

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