Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadLocalNameConf ¶
LoadLocalNameConf loads name conf file
Types ¶
type Client ¶
type Client struct {
}
func (*Client) GetInstancesAddr ¶
GetInstancesAddr return instance addr info of serviceName
type Instance ¶
type Instance struct {
Host string // instance host
Port int // instance port
Weight int // instance weight
}
Instance represents instance info
type LocalNameConf ¶
type NameConf ¶
type NameConf struct {
Version string
Config LocalNameConf
}
Click to show internal directories.
Click to hide internal directories.