Documentation
¶
Index ¶
Constants ¶
View Source
const ModeDebug = gin.DebugMode
View Source
const ModeRelease = gin.ReleaseMode
View Source
const ModeTest = gin.TestMode
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(config *Config)
func WithMiddlewares ¶ added in v1.0.1
func WithMiddlewares(middlewares ...middleware.Middleware) Option
type Server ¶
type Server interface {
Name() (name string)
AddMiddlewares(middlewares ...middleware.Middleware) Server
Kernel() (engine *gin.Engine)
Run(ctx context.Context) error
Close(ctx context.Context) error
OnShutdown(shutdownHook hook.ShutdownHook) Server
OnBeforeRun(hook.RunHook) Server
Routes(routes Router) Server
}
func NewServerWithConfig ¶
Click to show internal directories.
Click to hide internal directories.