package
Version:
v0.0.0-...-c380036
Opens a new window with list of versions in this module.
Published: Apr 7, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Message struct {
ID int `json:"id"`
Text string `json:"text"`
UFrom string `json:"UFrom"`
CreatedAt int `json:"created_at"`
}
type User struct {
ID string `json:"id" bson:"_id,omitempty"`
Username string `json:"userName" bson:"username"`
PasswordHash string `json:"passwordHash" bson:"password"`
Key string `json:"key" bson:"key"`
IsOnline bool `json:"isOnline" bson:"isOnline"`
LastOnline *int `json:"lastOnline"`
}
type UserDTO struct {
Username string `json:"userName" validate:"required,lowercase,alpha" example:"userName"`
Password string `json:"password" validate:"required,alphanum" example:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.