node_reader_stdin

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 15 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, zlogger *zap.Logger, tracer logging.Tracer) *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 {
	GRPCAddr                   string
	OneBlocksStoreURL          string
	OneBlockSuffix             string
	MindReadBlocksChanCapacity int
	StartBlockNum              uint64
	StopBlockNum               uint64
	WorkingDir                 string
	LogToZap                   bool
	DebugDeepMind              bool

	// MaxLineLengthInBytes configures the maximum bytes a single line consumed can be
	// without any error. If left unspecified or 0, the default is 50 MiB (50 * 1024 * 1024).
	MaxLineLengthInBytes int64
}

type Modules

type Modules struct {
	ConsoleReaderFactory       mindreader.ConsolerReaderFactory
	MetricsAndReadinessManager *nodeManager.MetricsAndReadinessManager
	RegisterGRPCService        func(server grpc.ServiceRegistrar) error
}

Jump to

Keyboard shortcuts

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