admin

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnauthorizedErrorCode is the HTTP status code for unauthorized access
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL