Documentation
¶
Index ¶
- type Executor
- func (e *Executor) EnableGhostMode(flags string) error
- func (e *Executor) EnableNormalMode(flags string) error
- func (e *Executor) GetHeight() (int, error)
- func (e *Executor) InitialStart(flags string) error
- func (e *Executor) PruneData(homePath string, pruneHeight int, statePruning bool, flags string) error
- func (e *Executor) Shutdown() error
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 ¶
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 ¶
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) InitialStart ¶
InitialStart initiates the node by starting it in the initial mode.
Click to show internal directories.
Click to hide internal directories.