nodeos_manager

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	*shutter.Shutter
	Config    *Config
	ReadyFunc func()
}

func New

func New(config *Config) *App

func (*App) IsReady

func (a *App) IsReady() bool

func (*App) OnReady

func (a *App) OnReady(f func())

func (*App) Run

func (a *App) Run() error

type Config

type Config struct {
	MetricID            string
	ManagerAPIAddress   string
	NodeosAPIAddress    string
	ConnectionWatchdog  bool
	NodeosConfigDir     string
	NodeosBinPath       string
	NodeosDataDir       string
	ProducerHostname    string
	TrustedProducer     string
	ReadinessMaxLatency time.Duration
	ForceProduction     bool

	NodeosExtraArgs []string

	// Common Flags
	BackupStoreURL      string
	BootstrapDataURL    string
	DebugDeepMind       bool
	LogToZap            bool
	AutoRestoreSource   string // backup, snapshot, none
	RestoreBackupName   string
	RestoreSnapshotName string
	SnapshotStoreURL    string
	ShutdownDelay       time.Duration

	// Backup Flags
	BackupTag               string
	AutoBackupModulo        int
	AutoBackupPeriod        time.Duration
	AutoBackupHostnameMatch string // If non-empty, will only apply autobackup if we have that hostname

	// Snapshot Flags
	AutoSnapshotModulo        int
	AutoSnapshotPeriod        time.Duration
	AutoSnapshotHostnameMatch string // If non-empty, will only apply autosnapshot if we have that hostname
	NumberOfSnapshotsToKeep   int    // do not delete if 0

	StartFailureHandlerFunc func()

	DisableProfiler bool
}

Jump to

Keyboard shortcuts

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