users

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(r *gin.Engine)

RegisterRoutes registers the routes for the key module

Types

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`

	First string `json:"first"`
	Last  string `json:"last"`
}

Simple User type

func (User) GetUsername

func (u User) GetUsername() string

GetUsername returns the user's username This method MUST be implemented for JWT authentication to work

Jump to

Keyboard shortcuts

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