Documentation ¶
Overview ¶
Package atbeego provides tracing and error-reporting middleware for Beego applications.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFilters ¶
func AddFilters(handlers *beego.ControllerRegister)
AddFilters adds required filters to handlers.
This is called automatically for the default app (beego.BeeApp), so if you beego.Router, beego.RunWithMiddleware, etc., then you do not need to call AddFilters.
func Middleware ¶
Middleware returns a beego.MiddleWare that traces requests and reports panics to Atatus.
Example ¶
beego.Router("/", &testController{}) beego.Router("/thing/:id:int", &testController{}, "get:Get") beego.RunWithMiddleWares("localhost:8080", atbeego.Middleware())
Output:
func WrapRecoverFunc ¶
WrapRecoverFunc updates config's RecoverFunc so that panics will be reported to Atatus for traced requests. For non-traced requests, the original RecoverFunc will be called.
WrapRecoverFunc is called automatically for the global config, beego.BConfig.
Types ¶
Click to show internal directories.
Click to hide internal directories.