user

package
v0.0.0-...-755d38d Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	IpAddress     string `validate:"required"`
	Token         string `validate:"omitempty,uuid5"`
	HoursToExpire int32  `validate:"required,min=1"`
}

User Model Token - user token HoursToExpire - token expiration time **

func New

func New(ipAddress string, hoursToExpire int32) (*User, error)

Jump to

Keyboard shortcuts

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