NewHandlerDefinition returns a new [HandlerDefinition].
(method string, path string, handler any, middlewares []MiddlewareDefinition)
| 53 | |
| 54 | // NewHandlerDefinition returns a new [HandlerDefinition]. |
| 55 | func NewHandlerDefinition(method string, path string, handler any, middlewares []MiddlewareDefinition) HandlerDefinition { |
| 56 | return &handlerDefinition{ |
| 57 | method: method, |
| 58 | path: path, |
| 59 | handler: handler, |
| 60 | middlewares: middlewares, |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // Concrete returns true if the handler is a [echo.HandlerFunc] concrete implementation. |
| 65 | func (d *handlerDefinition) Concrete() bool { |
no outgoing calls
no test coverage detected