123456789101112131415161718192021222324252627282930313233 |
- package rest
- import "net/http"
- type (
- Middleware func(next http.HandlerFunc) http.HandlerFunc
- Route struct {
- Method string
- Path string
- Handler http.HandlerFunc
- }
- RouteOption func(r *featuredRoutes)
- jwtSetting struct {
- enabled bool
- secret string
- prevSecret string
- }
- signatureSetting struct {
- SignatureConf
- enabled bool
- }
- featuredRoutes struct {
- priority bool
- jwt jwtSetting
- signature signatureSetting
- routes []Route
- }
- )
|