config

package
v2.0.0-stargate Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: CC0-1.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Workers         int64  `yaml:"workers"`
	ParseNewBlocks  bool   `yaml:"listen_new_blocks"`
	ParseOldBlocks  bool   `yaml:"parse_old_blocks"`
	GenesisFilePath string `yaml:"genesis_file_path,omitempty"`
	ParseGenesis    bool   `yaml:"parse_genesis"`
	StartHeight     int64  `yaml:"start_height"`
	FastSync        bool   `yaml:"fast_sync,omitempty"`
}

func DefaultParsingConfig

func DefaultParsingConfig() Config

DefaultParsingConfig returns the default instance of Config

func NewParsingConfig

func NewParsingConfig(
	workers int64,
	parseNewBlocks, parseOldBlocks bool,
	parseGenesis bool, genesisFilePath string,
	startHeight int64, fastSync bool,
) Config

NewParsingConfig allows to build a new Config instance

Jump to

Keyboard shortcuts

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