Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserData ¶
type UserData struct { // Username defines the username of the user. Username string `json:"username" validate:"username,required,min=1"` // UserID defines the user ID of the user. UserID uint64 `json:"user_id" validate:"user_id,required"` // Flags is used to define the flags of a user. Flags uint64 `json:"flags" validate:"flags,required"` // AvatarURL is used to define the avatar URL of the user. AvatarURL string `json:"avatar_url" validate:"url,required"` // Hostname is used to define the hostname of the node making this request. Hostname string `json:"hostname,omitempty"` // Email is used to define the e-mail address of the user. Is blank if not this node. Email string `json:"email,omitempty"` // Confirmed is used to define if the e-mail address is confirmed. Is false if not this node. Confirmed bool `json:"confirmed"` }
UserData defines any user data which was injected during the middleware.
Click to show internal directories.
Click to hide internal directories.