Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound is returned when a user cannot be found in the // repository. ErrUserNotFound = errors.New("user not found") ErrUserUnauthorized = errors.New("user unauthorized") )
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
ID uuid.UUID `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
Names string `json:"names"`
CreatedAt time.Time `json:"created"`
UpdatedAt time.Time `json:"updated"`
}
User represents a user in the system.
Click to show internal directories.
Click to hide internal directories.