MiddlewareProvider is a module interface that adds middlewares to the [Api].
| 96 | |
| 97 | // MiddlewareProvider is a module interface that adds middlewares to the [Api]. |
| 98 | type MiddlewareProvider interface { |
| 99 | Middlewares() ([]Middleware, error) |
| 100 | } |
| 101 | |
| 102 | // MiddlewareStack is a type that helps to determine in which stack the |
| 103 | // middlewares provided by the [MiddlewareProvider] modules should be located. |