global

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 3 Imported by: 4

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 (
	//是否包含api服务,默认false
	HasApi bool = false
)

Functions

This section is empty.

Types

type RouterList added in v0.5.14

type RouterList interface {
	GetType() string
	GetPathList() []string
}

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)

存储服务的路由信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL