(ctx Context)
| 135 | } |
| 136 | |
| 137 | func (x *xMiddleware) Handle(ctx Context) error { |
| 138 | if ctx.getMiddlewareStep() == "" { |
| 139 | ctx.setMiddlewareStep(middleware_App) |
| 140 | } |
| 141 | if x.IsEnd { |
| 142 | return ctx.Handler()(ctx) |
| 143 | } |
| 144 | return x.Next(ctx) |
| 145 | } |
| 146 | |
| 147 | type RequestLogMiddleware struct { |
| 148 | BaseMiddleware |
nothing calls this directly
no test coverage detected