Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigPath = "./conf/"
Variables ¶
This section is empty.
Functions ¶
func GetConfigPath ¶
Types ¶
type ClusterSection ¶
type GlobalSection ¶
type LoggerSection ¶
type LoggerSection struct {
LogPath string
}
type NodeSection ¶
type Profile ¶
type Profile struct {
Global *GlobalSection
Node *NodeSection
Rpc *RpcSection
WebUI *WebUISection
Runtime *RuntimeSection
Logger *LoggerSection
Cluster *ClusterSection
Prometheus *PrometheusSection
}
var CurrentProfile *Profile
func DefaultProfile ¶
func DefaultProfile() *Profile
DefaultProfile return default profile used to full node role
func GetProfile ¶
func GetProfile() *Profile
func LoadConfig ¶
LoadConfig load config from yaml file
type PrometheusSection ¶
type RpcSection ¶
type RuntimeSection ¶
type WebUISection ¶
Click to show internal directories.
Click to hide internal directories.