conf

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Version software version
	Version string = "v0.5.11"
	// BuildTime build time
	BuildTime string
	// GitHead git head
	GitHead string
)

Functions

func LoadWallet

func LoadWallet(fileName, password string)

LoadWallet load wallet

func Reload

func Reload() error

Reload reload config

Types

type TConfig

type TConfig struct {
	ServerHost      string `json:"server_host,omitempty"`
	HTTPAddress     string `json:"http_address,omitempty"`
	HTTPPort        int    `json:"http_port,omitempty"`
	DbAddrType      string `json:"db_addr_type,omitempty"`
	DbServerAddr    string `json:"db_server_addr,omitempty"`
	CorePackName    []byte `json:"core_pack_name,omitempty"`
	WalletAddr      []byte `json:"wallet_addr,omitempty"`
	SignPrefix      []byte `json:"sign_prefix,omitempty"`
	PrivateKey      []byte `json:"private_key,omitempty"`
	Password        string `json:"password,omitempty"`
	WalletFile      string `json:"wallet_file,omitempty"`
	SaveLog         bool   `json:"save_log,omitempty"`
	IdentifyingCode bool   `json:"identifying_code,omitempty"`
	TrustedServer   string `json:"trusted_server,omitempty"`
	CheckBlock      bool   `json:"check_block,omitempty"`
	AutoRollback    bool   `json:"auto_rollback,omitempty"`
	SaveNodeInfo    bool   `json:"save_node_info,omitempty"`
	NetID           string `json:"net_id,omitempty"`
	OneConnPerMiner bool   `json:"one_conn_per_miner,omitempty"`
	MinerConnLimit  int    `json:"miner_conn_limit,omitempty"`
	VerifyNetData   bool   `json:"verify_net_data,omitempty"`
	SafeEnvironment bool   `json:"safe_environment,omitempty"`
	RestfulLog      bool   `json:"restful_log,omitempty"`
	TLSCertFile     string `json:"tls_cert_file,omitempty"`
	TLSKeyFile      string `json:"tls_key_file,omitempty"`
}

TConfig config of app

func GetConf

func GetConf() TConfig

GetConf get configure

Jump to

Keyboard shortcuts

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