Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Obtainer ¶
type Obtainer func(*http.Request) (routertypes.HandlerFunc, error)
func Auto ¶
func Auto(routes routertypes.RoutesMap) Obtainer
Auto simply checks all the routes, and returns a corresponding obtainer. In case all the routes are static, StaticObtainer is returned. In case at least one route is dynamic, DynamicObtainer is returned
func DynamicObtainer ¶
func DynamicObtainer(routes routertypes.RoutesMap) Obtainer
func StaticObtainer ¶
Click to show internal directories.
Click to hide internal directories.