type Route

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 (Route) String

func (r Route) String() string

Returns the route method with the route path.

type RouteOption

type RouteOption func(*Route)

RouteOption is a route configuration.

type Controller

type Controller struct {}

Controller is a group of actions.