usersapi

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package usersapi provides HTTP handlers for user authentication and management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthRoutes

func AddAuthRoutes(mux *http.ServeMux, loginManager middleware.LoginManager, tokenManager middleware.AuthzManager)

Types

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email" example:"user@example.com"`
	Password string `json:"password" example:"s3cr3t!"`
}

LoginRequest represents credentials for programmatic login.

type LoginResponse

type LoginResponse struct {
	ExpiresAt time.Time `json:"expires_at"`
	UserID    string    `json:"user_id"`
	Username  string    `json:"username"`
}

Jump to

Keyboard shortcuts

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