Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrNoServerToShutdown ¶
type ErrNoServerToShutdown struct{}
func (*ErrNoServerToShutdown) Error ¶
func (e *ErrNoServerToShutdown) Error() string
type Route ¶
type Route struct {
Name string
Method string
Pattern string
HandlerFunc gin.HandlerFunc
}
type Router ¶
type Router struct {
*gin.Engine
Logger *logger.Logger
Routes []*Route
BasePath string
HTTPServer *http.Server
HTTPSServer *http.Server
}
func (*Router) SetRoutes ¶
SetRoutes sets the routes for the router and registers them in the gin engine
type RouterOptions ¶
Click to show internal directories.
Click to hide internal directories.