Documentation
¶
Index ¶
Constants ¶
View Source
const (
// JwtExpirationHoursDefault the default expiration of JWTs in hours
JwtExpirationHoursDefault = 3
)
Variables ¶
This section is empty.
Functions ¶
func AddRouter ¶ added in v1.1.0
AddRouter returns a new router based on the API configuration. Leverages database for handlers
Types ¶
type Route ¶
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}
Route handles the routes for the API map a method and pattern to the appropriate handler
Click to show internal directories.
Click to hide internal directories.