config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: MIT Imports: 10 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 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"`
}

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