Documentation
¶
Index ¶
Constants ¶
View Source
const ( Disabled = "disabled" Enabled = "enabled" Deleted = "deleted" All = "all" Unknown = "unknown" )
String representation of the possible status values.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status uint8
Status represents User status.
const ( // EnabledStatus represents enabled User. EnabledStatus Status = iota // DisabledStatus represents disabled User. DisabledStatus // DeletedStatus represents a user that will be deleted. DeletedStatus // AllStatus is used for querying purposes to list users irrespective // of their status - both enabled and disabled. It is never stored in the // database as the actual User status and should always be the largest // value in this enumeration. AllStatus )
Possible User status values.
func (Status) MarshalJSON ¶
Custom Marshaller for Uesr/Groups.
func (*Status) UnmarshalJSON ¶
Custom Unmarshaler for User/Groups.
Click to show internal directories.
Click to hide internal directories.