lavavisor

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLavaVisorCreateServiceCobraCommand

func CreateLavaVisorCreateServiceCobraCommand() *cobra.Command

func CreateLavaVisorInitCobraCommand

func CreateLavaVisorInitCobraCommand() *cobra.Command

func CreateLavaVisorStartCobraCommand

func CreateLavaVisorStartCobraCommand() *cobra.Command

func CreateServiceFile

func CreateServiceFile(serviceParams *ServiceParams, createLink bool) (string, error)

func LavavisorInit

func LavavisorInit(cmd *cobra.Command) error

func LavavisorStart

func LavavisorStart(cmd *cobra.Command) error

func SelectMostRecentVersionFromDir

func SelectMostRecentVersionFromDir(lavavisorPath string, version *protocoltypes.Version) (selectedVersion string, err error)

func WriteToConfigFile

func WriteToConfigFile(lavavisorPath string, serviceFileName string) error

Types

type Config

type Config struct {
	Services []string `yaml:"services"`
}

type LavaVisor

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

func (*LavaVisor) Start

func (lv *LavaVisor) Start(ctx context.Context, txFactory tx.Factory, clientCtx client.Context, lavavisorPath string, autoDownload bool, services []*processmanager.ServiceProcess) (err error)

type LavavisorStateTrackerInf

type LavavisorStateTrackerInf interface {
	RegisterForVersionUpdates(ctx context.Context, version *protocoltypes.Version, versionValidator statetracker.VersionValidationInf)
	GetProtocolVersion(ctx context.Context) (*protocoltypes.Version, error)
}

type ServiceParams

type ServiceParams struct {
	ServiceType               string
	ServiceConfigFile         string
	FromUser                  string
	KeyringBackend            string
	ChainID                   string
	GeoLocation               uint64
	LogLevel                  string
	Node                      string
	LavavisorServicesDir      string
	LavavisorLogsDir          string
	LavavisorServiceConfigDir string
	ParallelConnection        uint64
}

Jump to

Keyboard shortcuts

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