user

package
v0.0.0-...-e7dc820 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateUser

func ValidateUser(v *validator.Validator, user *User)

Types

type User

type User struct {
	Id       uuid.UUID `json:"id"`
	Email    string    `json:"email"`
	Password password  `json:"-"`
}

User represents an object with ID, email and password structure.

type UserJson

type UserJson struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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