Documentation
¶
Index ¶
Constants ¶
View Source
const ( UnauthorizedErrorCode = http.StatusUnauthorized // InternalServerErrorCode is the HTTP status code for internal server errors InternalServerErrorCode = http.StatusInternalServerError )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardHandler ¶
type DashboardHandler struct {
UserService user.Service
FormService form.Service
// contains filtered or unexported fields
}
DashboardHandler handles the admin dashboard routes
func NewDashboardHandler ¶
func NewDashboardHandler( logger logging.Logger, renderer *view.Renderer, userService user.Service, formService form.Service, ) *DashboardHandler
NewDashboardHandler creates a new DashboardHandler
func (*DashboardHandler) Register ¶
func (h *DashboardHandler) Register(e *echo.Echo)
Register sets up the routes for the dashboard handler
Click to show internal directories.
Click to hide internal directories.