auth

package
v0.0.0-...-3b15a80 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProfileHandle

func ProfileHandle(db *gorm.DB) gin.HandlerFunc

ProfileHandle retrieves the profile of the currently authenticated user

func SigninHandle

func SigninHandle(db *gorm.DB) gin.HandlerFunc

func SignupHandle

func SignupHandle(db *gorm.DB) gin.HandlerFunc

func UsersHandle

func UsersHandle(db *gorm.DB) gin.HandlerFunc

Types

type User

type User struct {
	ID       uint   `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
}

User represents a user in the system

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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