Documentation ¶
Index ¶
- Constants
- func GetGinApp() *gin.Engine
- func GetNextTime(second int64) *time.Time
- func GetSQLDir() string
- func MustGetwd() string
- func RecoverPanic(err *error)
- func RunSQLScript(conf dtmcli.DBConf, script string, skipDrop bool)
- func WrapHandler(fn func(*gin.Context) interface{}) gin.HandlerFunc
- func WrapHandler2(fn func(*gin.Context) interface{}) gin.HandlerFunc
- type DB
- type ModelBase
Constants ¶
View Source
const ( // DefaultHTTPServer default url for http server. used by test and examples DefaultHTTPServer = "http://localhost:36789/api/dtmsvr" // DefaultJrpcServer default url for http json-rpc server. used by test and examples DefaultJrpcServer = "http://localhost:36789/api/json-rpc" // DefaultGrpcServer default url for grpc server. used by test and examples DefaultGrpcServer = "localhost:36790" )
Variables ¶
This section is empty.
Functions ¶
func RunSQLScript ¶
RunSQLScript 1
func WrapHandler ¶
func WrapHandler(fn func(*gin.Context) interface{}) gin.HandlerFunc
WrapHandler used by examples. much more simpler than WrapHandler2
func WrapHandler2 ¶
func WrapHandler2(fn func(*gin.Context) interface{}) gin.HandlerFunc
WrapHandler2 wrap a function to be the handler of gin request used by dtmsvr
Types ¶
Click to show internal directories.
Click to hide internal directories.