Documentation
¶
Index ¶
Constants ¶
View Source
const NmqConfigFile = "nmq.yaml"
NmqConfigFile 配置文件名称(编译时常量)
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
Types ¶
type Config ¶
type Config struct {
Network NetworkConfig `yaml:"network"`
}
type NetworkConfig ¶
type NetworkConfig struct {
Webui ServiceConfig `yaml:"webui"`
}
func GetNetworkConfig ¶
func GetNetworkConfig() *NetworkConfig
func (*NetworkConfig) GetWebuiConfig ¶
func (c *NetworkConfig) GetWebuiConfig() *ServiceConfig
type ServiceConfig ¶
type ServiceConfig struct {
Name string `yaml:"name"`
Address string `yaml:"address"` // ip:port or domain:port or domain
Port int `yaml:"port"`
}
func (*ServiceConfig) GetAddress ¶
func (c *ServiceConfig) GetAddress() string
func (*ServiceConfig) GetName ¶
func (c *ServiceConfig) GetName() string
func (*ServiceConfig) GetPort ¶
func (c *ServiceConfig) GetPort() int
Click to show internal directories.
Click to hide internal directories.