Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware struct
func NewMaintMiddleware ¶
func NewMaintMiddleware(filePath string, customHandler echo.HandlerFunc) *Middleware
NewMaintMiddleware - Creates a *Middleware instance with maint file path and custom response struct
func (*Middleware) CheckMaintenance ¶
func (middleware *Middleware) CheckMaintenance(next echo.HandlerFunc) echo.HandlerFunc
CheckMaintenance - middleware to check if maintenance mode is on
Click to show internal directories.
Click to hide internal directories.