nodeos_mindreader

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: 18 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()
	// contains filtered or unexported fields
}

func New

func New(c *Config, modules *Modules) *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
	NoBlocksLog               bool
	ProducerHostname          string
	TrustedProducer           string
	ReadinessMaxLatency       time.Duration
	FailOnNonContinuousBlocks bool // Will enable the ContinuityChecker, which stops nodeos if a block was produced with a gap, to prevent a restart from going over problem blocks

	NodeosExtraArgs []string

	// Common Flags
	BackupStoreURL string

	// 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
	NumberOfSnapshotsToKeep   int
	AutoSnapshotHostnameMatch string // If non-empty, will only apply autosnapshot if we have that hostname

	BootstrapDataURL    string
	DebugDeepMind       bool
	LogToZap            bool
	AutoRestoreSource   string
	RestoreBackupName   string
	RestoreSnapshotName string
	SnapshotStoreURL    string
	ShutdownDelay       time.Duration

	ArchiveStoreURL            string
	MergeArchiveStoreURL       string
	MergeUploadDirectly        bool
	GRPCAddr                   string
	StartBlockNum              uint64
	StopBlockNum               uint64
	DiscardAfterStopBlock      bool
	MindReadBlocksChanCapacity int
	WorkingDir                 string

	DisableProfiler         bool
	StartFailureHandlerFunc func()
}

type Modules

type Modules struct {
	ConsoleReaderFactory     mindreader.ConsolerReaderFactory
	ConsoleReaderTransformer mindreader.ConsoleReaderBlockTransformer
}

Jump to

Keyboard shortcuts

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