type Route struct {
Method string
Path string
Action ActionFunc
Middlewares []MiddlewareFunc
Policies []PolicyFunc
}
Route is an external API endpoint, used by the server core service.
func (r Route) String() string
Returns the route method with the route path.
type RouteOption func(*Route)
RouteOption is a route configuration.
type Controller struct {}
Controller is a group of actions.