config

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsenterOptions

func ConsenterOptions() *consenter.Options

func DBConfig

func DBConfig(path string) *db.Config

DBConfig returns configurations for database

func JrpcConfig

func JrpcConfig() *rpc.Option

func LbftOptions

func LbftOptions() *lbft.Options

func MergeConfig

func MergeConfig(nodeDir string) *merge.Config

MergeConfig returns merge configuration

func NetConfig

func NetConfig(nodeDir string) *p2p.Config

NetConfig returns a p2p network configuration

func NoopsOptions

func NoopsOptions() *noops.Options

func VMConfig

func VMConfig(logFile, logLevel string) *vm.Config

VMConfig returns vm configuration

Types

type Config

type Config struct {
	// dir
	DataDir     string
	LogDir      string
	NodeDir     string
	KeyStoreDir string

	// file
	PeersFile  string
	ConfigFile string

	// net
	NetConfig *p2p.Config

	// Merger
	MergeConfig *merge.Config

	// log
	LogLevel string
	LogFile  string

	// db
	DbConfig    *db.Config
	NetDbConfig *db.Config

	// profile
	CPUFile  string
	ProfPort string
}

Config Represents the global config of lcnd

func New

func New(cfgFile string) (cfg *Config, err error)

New returns a config according the config file

Jump to

Keyboard shortcuts

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