Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyPassword = errors.New("empty password")
)
define errors.
Functions ¶
This section is empty.
Types ¶
type DeleteAccountTimeType ¶
type DeleteAccountTimeType int
const ( OneMonth DeleteAccountTimeType = iota + 1 ThreeMonth SixMonth )
type Profile ¶
type Profile struct { Biography string `bson:"biography" json:"biography"` ProfilePhotos []ProfilePhoto `bson:"profile_photos" json:"profilePhotos"` Devices []Device `bson:"devices" json:"devices"` Contacts []string `bson:"contacts" json:"contacts"` BlockedUsers []string `bson:"blocked_users" json:"blockedUsers"` Setting Setting `bson:"setting" json:"setting"` LastSeen time.Time `bson:"last_seen" json:"lastSeen"` }
type ProfilePhoto ¶
type Setting ¶
type Setting struct { ShowLastSeen bool `bson:"show_last_seen" json:"showLastSeen"` TwoFA bool `bson:"two_fa" json:"twoFa"` DeleteAccountTime DeleteAccountTimeType `bson:"delete_account_time" json:"deleteAccountTime"` }
type User ¶
type User struct { StaticID primitive.ObjectID `bson:"id" json:"id"` Name string `bson:"name" json:"name"` LastName string `bson:"last_name" json:"lastName"` Phone string `bson:"phone" json:"phone"` Username string `bson:"username" json:"username"` Banned bool `bson:"banned" json:"banned"` Profile Profile `bson:"profile" json:"profile"` CreatedAt time.Time `bson:"created_at" json:"createdAt"` UpdatedAt time.Time `bson:"updated_at" json:"updatedAt"` }
type UserRepository ¶
Click to show internal directories.
Click to hide internal directories.