Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorCritical = fmt.Errorf("critical error")
)
Custom errors
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the main struct for the http server wrapped around Gin
func (*Server) ApplyMiddlewares ¶
Applies middlewares to the gin engine like recovery, custom logging, cors, rate limiting and sessions
func (*Server) SetupRoutes ¶
SetupRoutes sets up the routes for the gin engine
Click to show internal directories.
Click to hide internal directories.