Discover Packages
github.com/adwski/vidi
internal
api
user
model
package
Version:
v0.0.0-...-dec19c8
Opens a new window with list of versions in this module.
Published: May 17, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
ErrNotFound = errors .New ("user not found")
ErrAlreadyExists = errors .New ("user with this name already exists")
ErrUIDAlreadyExists = errors .New ("user with this uid already exists")
ErrIncorrectCredentials = errors .New ("incorrect credentials")
)
type User struct {
ID string `json:"id"`
Name string `json:"name"`
Password string `json:"password,omitempty"`
}
type UserRequest struct {
Username string `json:"username" validate:"required,min=4,max=50"`
Password string `json:"password" validate:"required,min=8,max=50"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.