Documentation ¶
Index ¶
- Constants
- Variables
- func AddStage(key string, f func() error, p ...pipeline.PipeLevel) pipeline.PipeLine
- func Bloom() error
- func CustomizeStage(key string, f func() error, p pipeline.PipeLevel) pipeline.PipeLine
- func GetRootPipe() *pipeline.SimpleFuncStage
- func GetStage(key string) pipeline.PipeLine
- func RegisterClose(key string, fn func() error, p ...pipeline.PipeLevel)
- func RemoveStage(key string) pipeline.PipeLine
Constants ¶
View Source
const ( Redis = DBs + Split + "redis" MySQL = DBs + Split + "mysql" Mongo = DBs + Split + "mongodb" )
View Source
const ( GinRun = Gin + Split + "run" GinTrace = Gin + Split + "trace" GinPprof = Gin + Split + "pprof" GinCors = Gin + Split + "cors" )
View Source
const ( Split = "." // init core Config = "config" Log = "log" Runtime = "runtime" // debug middleware DBs = "dbs" // runner Gin = "gin" )
View Source
const TraceID = "traceId"
Variables ¶
View Source
var GinSrv *gin.Engine
GinSrv gin srv
View Source
var ZapLogger *zap.Logger
ZapLogger fast logger
Functions ¶
func AddStage ¶
AddStage to pipe for user, pipeline.Feature is default level instead of pipeline.Debugger(zero)
func CustomizeStage ¶
CustomizeStage in pipe customize before add will avoid repeat add
func RegisterClose ¶
RegisterClose register close functions
func RemoveStage ¶
RemoveStage in pipe remove before add will avoid add
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.