auth

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles authentication-related HTTP requests

func NewHandler

func NewHandler(
	logger logging.Logger,
	userRepo repositories.UserRepository,
) *Handler

NewHandler creates a new authentication handler

func (*Handler) Login

func (h *Handler) Login(c echo.Context) error

Login handles user authentication

func (*Handler) Register

func (h *Handler) Register(e *echo.Echo)

Register sets up the authentication routes

func (*Handler) Signup

func (h *Handler) Signup(c echo.Context) error

Signup handles user registration

type WebLoginHandler

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

WebLoginHandler handles the login page routes

func NewWebLoginHandler

func NewWebLoginHandler(logger logging.Logger, renderer *view.Renderer) *WebLoginHandler

NewWebLoginHandler creates a new WebLoginHandler

func (*WebLoginHandler) Register

func (h *WebLoginHandler) Register(e *echo.Echo)

Register sets up the routes for the web login handler

Jump to

Keyboard shortcuts

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