config

package
v0.0.0-...-58a2b35 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 2 Imported by: 0

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"` //

}

Jump to

Keyboard shortcuts

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