obtainer

package
v2.3.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 9 Imported by: 0

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

func StaticObtainer(routes types.RoutesMap) Obtainer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL