Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Route ¶
type Route struct { Prefix string Method string Path string Name string //HandlerFunc is a little bit hacky, because we need the route package also in the implementation //therefore we have to use the func as interface, because else, we would get circle references HandlerFunc interface{} //RequiredGroups are the groups the user must be in, in order to access the route //the groups are used as OR, means, the user must be in at least one group RequiredGroups []string }
Route is a route in the API
func GetRouteForName ¶
GetRouteForName returns the route for a name or nil
func GetRoutesForPrefix ¶
GetRoutesForPrefix returns all routes for a prefix
Click to show internal directories.
Click to hide internal directories.