Documentation ¶
Index ¶
- func Cors() *cors
- func Download() *download
- func Favicon(file string, fs *embed.FS) *favicon
- func GetSession(ctx *context.Context) se.Session
- func Header() *header
- func Logger() *logger
- func Session(provider se.Provider, config *se.Config, listener *se.Listener) *session
- func Static(cache bool, root, prefix string) *static
- func Upload() *upload
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
Middleware interface
func Recovery ¶
func Recovery(handlers ...func(ctx *context.Context)) Middleware
Recovery return new recovery
func RecoveryWithConfig ¶
func RecoveryWithConfig(codeName string, codeVal int, msgName string, handlers ...func(ctx *context.Context)) Middleware
RecoveryWithConfig return new recovery
Source Files ¶
Click to show internal directories.
Click to hide internal directories.