common

package
v0.0.0-...-24d451d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address          string `yaml:"address"`          //default "tcp://127.0.0.1:46658"
	Query_DB_Address string `yaml:"query_db_address"` //default "0.0.0.0:46666"
	Abci             string `yaml:"abci"`             //default "socket"
	Log_level        string `yaml:"log_level"`        //default "debug"
	Log_screen       bool   `yaml:"log_screen"`
	Log_file         bool   `yaml:"log_file"`
	Log_async        bool   `yaml:"log_async"`
	Log_size         int    `yaml:"log_file_size"`
	DB_name          string `yaml:"db_name"`
	DB_ip            string `yaml:"db_ip"`
	DB_port          string `yaml:"db_port"`
	Chain_id         string `yaml:"chain_id"`
}

具体含义请参考 bcchain.yaml

var GlobalConfig Config

func (*Config) GetConfig

func (c *Config) GetConfig() error

Jump to

Keyboard shortcuts

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