Documentation ¶
Index ¶
Constants ¶
View Source
const ( DtmHttpPort = 36789 DtmGrpcPort = 36790 DtmMetricsPort = 8889 )
Variables ¶
View Source
var DtmConfig = dtmConfigType{}
DtmConfig 配置
Functions ¶
func GetCallerCodeDir ¶
func GetCallerCodeDir() string
GetCallerCodeDir 获取调用该函数的caller源代码的目录,主要用于测试时,查找相关文件
func MustLoadConfig ¶
func MustLoadConfig()
func WrapHandler ¶
func WrapHandler(fn func(*gin.Context) (interface{}, error)) gin.HandlerFunc
WrapHandler name is clear
Types ¶
type MicroService ¶
type MicroService struct { Driver string `yaml:"Driver"` Target string `yaml:"Target"` EndPoint string `yaml:"EndPoint"` }
MicroService config type for micro service
Click to show internal directories.
Click to hide internal directories.