config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitBranch string

GitBranch name of source code

View Source
var GitCommit string

GitCommit id of source code

View Source
var GoVersion string

GoVersion number of the build

View Source
var Version string

Version number of the build

Functions

This section is empty.

Types

type Config

type Config struct {
	Workspace string          `mapstructure:"workspace"`
	Network   string          `mapstructure:"network"`
	Log       logtypes.Config `mapstructure:"log"`
	P2p       p2p.Config      `mapstructure:"p2p"`
	RPC       rpc.Config      `mapstructure:"rpc"`
	Database  storage.Config  `mapstructure:"database"`
	Dpos      dpos.Config     `mapstructure:"dpos"`
	Metrics   metrics.Config  `mapstructure:"metrics"`
	Pprof     string          `mapstructure:"pprof"`
	Wallet    wallet.Config   `mapstructure:"wallet"`
}

Config is a configuration data structure for box blockchain server, which is read from config file or parsed from command line.

func (Config) GetLog

func (c Config) GetLog() logtypes.Config

GetLog return log config.

func (*Config) Prepare

func (c *Config) Prepare()

Prepare function makes sure all configurations are correct.

func (Config) String

func (c Config) String() string

Jump to

Keyboard shortcuts

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