handlers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotImplemented

func NotImplemented(w http.ResponseWriter, _ *http.Request)

NotImplemented is a placeholder handler for routes not yet implemented

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

AuthHandler handles authentication endpoints

func NewAuthHandler

func NewAuthHandler(
	userRepo repository.UserRepository,
	profileRepo repository.ProfileRepository,
	tokenRepo repository.RefreshTokenRepository,
	cfg *config.Config,
	logger *log.Logger,
) *AuthHandler

NewAuthHandler creates a new auth handler

func (*AuthHandler) Login

func (h *AuthHandler) Login(w http.ResponseWriter, r *http.Request)

Login handles user login

func (*AuthHandler) Logout

func (h *AuthHandler) Logout(w http.ResponseWriter, r *http.Request)

Logout handles user logout

func (*AuthHandler) Refresh

func (h *AuthHandler) Refresh(w http.ResponseWriter, r *http.Request)

Refresh handles token refresh

func (*AuthHandler) Register

func (h *AuthHandler) Register(w http.ResponseWriter, r *http.Request)

Register handles user registration

type ClassHandler

type ClassHandler struct {
	// contains filtered or unexported fields
}

ClassHandler handles class endpoints

func NewClassHandler

func NewClassHandler(
	classRepo repository.ClassRepository,
	memberRepo repository.ClassMemberRepository,
	cfg *config.Config,
	logger *log.Logger,
) *ClassHandler

func (*ClassHandler) Create

func (h *ClassHandler) Create(w http.ResponseWriter, r *http.Request)

func (*ClassHandler) GetByID

func (h *ClassHandler) GetByID(w http.ResponseWriter, r *http.Request)

func (*ClassHandler) ListMembers

func (h *ClassHandler) ListMembers(w http.ResponseWriter, r *http.Request)

func (*ClassHandler) ListMyClasses

func (h *ClassHandler) ListMyClasses(w http.ResponseWriter, r *http.Request)

type PhotoHandler

type PhotoHandler struct {
	// contains filtered or unexported fields
}

PhotoHandler handles photo endpoints

func NewPhotoHandler

func NewPhotoHandler(
	photoRepo repository.PhotoRepository,
	memberRepo repository.ClassMemberRepository,
	storage *storage.Client,
	cfg *config.Config,
	logger *log.Logger,
) *PhotoHandler

func (*PhotoHandler) CreateUpload

func (h *PhotoHandler) CreateUpload(w http.ResponseWriter, r *http.Request)

func (*PhotoHandler) List

func (h *PhotoHandler) List(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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