Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrefix ¶
func BuildPrefix(info *ServiceDesc) string
func BuildRegPath ¶
func BuildRegPath(info *ServiceDesc) string
Types ¶
type ServiceDesc ¶
type ServiceDesc struct { config.EndPoint ID string `json:"id"` Name string `json:"name"` Version string `json:"version"` //服务版本 Weight int64 `json:"weight"` //服务权重 Tags []string `json:"tags"` Metadata map[string]string `json:"metadata"` }
ServiceDesc 用于表示在注册中心注册的服务实例的信息
func ParseValue ¶
func ParseValue(value []byte) (ServiceDesc, error)
func SplitPath ¶
func SplitPath(path string) (ServiceDesc, error)
Click to show internal directories.
Click to hide internal directories.