RouteExpr represents an endpoint route (HTTP endpoint).
| 88 | |
| 89 | // RouteExpr represents an endpoint route (HTTP endpoint). |
| 90 | RouteExpr struct { |
| 91 | // Method is the HTTP method, e.g. "GET", "POST", etc. |
| 92 | Method string |
| 93 | // Path is the URL path e.g. "/tasks/{id}" |
| 94 | Path string |
| 95 | // Endpoint is the endpoint this route applies to. |
| 96 | Endpoint *HTTPEndpointExpr |
| 97 | // Meta is an arbitrary set of key/value pairs, see |
| 98 | // dsl.Meta |
| 99 | Meta MetaExpr |
| 100 | } |
| 101 | ) |
| 102 | |
| 103 | // Name of HTTP endpoint |
nothing calls this directly
no outgoing calls
no test coverage detected