Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountCfg ¶
type AccountCfg []Account
type Configure ¶
type Configure struct { ConsensusCfg `json:"consensus"` TxCfg `json:"transaction"` NetworkCfg `json:"network"` DBCfg `json:"db"` WebCfg `json:"web"` AccountCfg `json:"account"` }
type ConsensusCfg ¶
type ConsensusCfg struct { Publickey string `json:"publicKey" yaml:"publicKey"` PriVateKey string `json:"privateKey" yaml:"privateKey"` Verfiers []struct { Publickey string `json:"publicKey" yaml:"publicKey"` PriVateKey string `json:"privateKey" yaml:"privateKey"` } `json:"verfiers" yaml:"verfiers"` Timeout int `json:"timeout" yaml:"timeout"` Coordinator struct { Publickey string `json:"publicKey" yaml:"publicKey"` PriVateKey string `json:"privateKey" yaml:"privateKey"` } `json:"coordinator"` LogLevel string `json:"logLevel"` }
type NetworkCfg ¶
type NetworkCfg struct { NetMode string `json:"netMode" yaml:"netMode"` // 暂时只支持http模式 LocalAddr string `json:"localAddr" yaml:"localAddr"` // 本机地址 NodeAddrs []NodeAddr `json:"nodeAddrs" yaml:"nodeAddrs"` // 节点地址列表 Publickey string `json:"publicKey" yaml:"publicKey"` // 节点ID PriVateKey string `json:"privateKey" yaml:"privateKey"` // 节点私钥 LogLevel string `json:"logLevel"` Bootstrap bool `json:"bootstrap"` BootstrapPeers []string `json:"bootstrapPeers"` }
Click to show internal directories.
Click to hide internal directories.