executor

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Logger  log.Logger
	Cfg     *types.SupervysorConfig
	Process types.ProcessType
}

func NewExecutor

func NewExecutor(logger *log.Logger, cfg *types.SupervysorConfig) *Executor

func (*Executor) EnableGhostMode

func (e *Executor) EnableGhostMode(flags string) error

EnableGhostMode activates the Ghost Mode by starting the node in GhostMode if it is not already enabled. If not, it shuts down the node running in NormalMode, initiates the GhostMode and updates the process ID and GhostMode upon success.

func (*Executor) EnableNormalMode

func (e *Executor) EnableNormalMode(flags string) error

EnableNormalMode enables the Normal Mode by starting the node in NormalMode if it is not already enabled. If the GhostMode is active, it shuts down the node, starts the NormalMode with the provided parameters and updates the process ID and GhostMode upon success.

func (*Executor) GetHeight

func (e *Executor) GetHeight() (int, error)

func (*Executor) InitialStart

func (e *Executor) InitialStart(flags string) error

InitialStart initiates the node by starting it in the initial mode.

func (*Executor) PruneData added in v0.3.1

func (e *Executor) PruneData(homePath string, pruneHeight int, statePruning bool, flags string) error

func (*Executor) Shutdown

func (e *Executor) Shutdown() error

Jump to

Keyboard shortcuts

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