Documentation ¶
Index ¶
- func CORS(opt CORSOpt) sweetygo.HandlerFunc
- func DefaultSkipper(*sweetygo.Context) bool
- func Gzip(level int, skipper Skipper) sweetygo.HandlerFunc
- func JWT(store, key string, skipper Skipper) sweetygo.HandlerFunc
- func Logger(out io.Writer, skipper Skipper) sweetygo.HandlerFunc
- type CORSOpt
- type Skipper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS(opt CORSOpt) sweetygo.HandlerFunc
CORS returns a Cross-Origin Resource Sharing (CORS) middleware.
func DefaultSkipper ¶
DefaultSkipper returns false to execute this middleware for all pages.
Types ¶
Click to show internal directories.
Click to hide internal directories.