Documentation ¶
Index ¶
Constants ¶
View Source
const ( Model_complete = "complete" Model_light = "light" )
Variables ¶
View Source
var ( //AreaName = sha256.Sum256([]byte("TEST")) // // Area *libp2parea.Area // // Init_LocalIP = "" // Init_LocalPort uint16 = 19981 WebAddr = "" // WebPort uint16 = 0 //本地监听端口 Web_path_static = "" //网页静态文件路径 Web_path_views = "" //网页模板文件路径 // AddrPre = "" //收款地址前缀 // NetIds = []byte{0} //网络号 //NetType_release = "release" //正式网络 // NetType = "test" //网络类型:正式网络release/测试网络test RpcServer = false // RPCUser = "" // RPCPassword = "" // )
Functions ¶
func ParseConfig ¶
func ParseConfig(libp2pareaConfig string)
Types ¶
type Config ¶
type Config struct { // Netid uint32 `json:"netid"` // // IP string `json:"ip"` //ip地址 Port uint16 `json:"port"` //监听端口 WebAddr string `json:"WebAddr"` // WebPort uint16 `json:"WebPort"` // WebStatic string `json:"WebStatic"` // WebViews string `json:"WebViews"` // RpcServer bool `json:"RpcServer"` // RpcUser string `json:"RpcUser"` // RpcPassword string `json:"RpcPassword"` // }
Click to show internal directories.
Click to hide internal directories.