Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Mode string = "debug" AppName string = "" )
View Source
var ( GitCommit = "unknown" BuildTime = "unknown" Version = "unknown" DisplayName = "" Usage = "unknown" )
View Source
var (
Config config.Config
)
View Source
var (
Ctx context.Context
)
View Source
var ( //是否包含api服务,默认false HasApi bool = false )
View Source
var LocalIp = xnet.StaticLocalIP
Functions ¶
func StartRunning ¶ added in v0.7.0
func StartRunning()
Types ¶
type RouterList ¶ added in v0.5.14
type RouterPathList ¶ added in v0.5.14
type RouterPathList struct {
// contains filtered or unexported fields
}
var ( //服务路由 ServerRouterPathList *RouterPathList = NewRouterPathList() )
func NewRouterPathList ¶ added in v0.5.14
func NewRouterPathList() *RouterPathList
func (*RouterPathList) Range ¶ added in v0.5.14
func (r *RouterPathList) Range(callback func(k string, v []RouterList) bool)
迭代获取服务的路由信息
func (*RouterPathList) Store ¶ added in v0.5.14
func (r *RouterPathList) Store(servername string, routerList RouterList)
存储服务的路由信息
Click to show internal directories.
Click to hide internal directories.