BaseMiddleware 基础中间件实现 提供默认的空实现,子类只需覆盖需要的方法
| 102 | // BaseMiddleware 基础中间件实现 |
| 103 | // 提供默认的空实现,子类只需覆盖需要的方法 |
| 104 | type BaseMiddleware struct { |
| 105 | name string |
| 106 | priority int |
| 107 | } |
| 108 | |
| 109 | // NewBaseMiddleware 创建基础中间件 |
| 110 | func NewBaseMiddleware(name string, priority int) *BaseMiddleware { |
nothing calls this directly
no outgoing calls
no test coverage detected