Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewInterface ¶
type RouteInfo ¶
type RouteInfo struct { ConfigPath string Configs struct { Service struct { Name string `yaml:"name"` Ip string `yaml:"ip"` Port string `yaml:"port"` Tags []string `yaml:"tags"` } `yaml:"service"` } }
var RouteInfoPtr *RouteInfo
单例模式
func NewRouteInfo ¶
func (*RouteInfo) GetServiceIp ¶
func (*RouteInfo) GetServiceName ¶
func (*RouteInfo) GetServicePort ¶
func (*RouteInfo) GetServiceTags ¶
func (*RouteInfo) LoadConfig ¶
func (routeInfoPtr *RouteInfo) LoadConfig()
Click to show internal directories.
Click to hide internal directories.