Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressInfo ¶
type AddressInfo struct { Country string `json:"Country" bson:"country"` City string `json:"City" bson:"city"` Address string `json:"Address" bson:"address"` Address2 string `json:"Address2" bson:"address2"` Region string `json:"Region" bson:"region"` PostalCode string `json:"PostalCode" bson:"postalCode"` }
type Like ¶
type MailSubscription ¶
type PaymentInfo ¶
type PaymentInfo struct { CardNumber string `json:"CardNumber" bson:"card_number"` Expires YearMonth `json:"Expires" bson:"expires"` CVV string `json:"CVV" bson:"cvv"` BillingInfo AddressInfo `json:"BillingInfo" bson:"billing_info"` }
type RemoteAuth ¶
type RemoteAuth struct { UserID string `bson:"user_id"` RemoteID string `bson:"remote_id"` Provider UserProvider `bson:"provider"` }
type User ¶
type User struct { UniqueID string `json:"UniqueID" bson:"unique_id"` Username string `json:"Username" bson:"username"` UsernameN string `json:"UsernameN" bson:"username_n"` Email string `json:"Email" bson:"email"` EmailN string `json:"EmailN" bson:"email_n"` PasswordHash string `json:"PasswordHash" bson:"password_hash"` FirstName string `json:"FirstName" bson:"first_name"` LastName string `json:"LastName" bson:"last_name"` PhoneNumber string `json:"PhoneNumber" bson:"phone_number"` Avatar string `json:"Avatar" bson:"avatar"` Location string `json:"Location" bson:"location"` PaymentInfo PaymentInfo `json:"PaymentInfo" bson:"payment_info"` Liked []string `json:"Liked,omitempty" bson:"liked,omitempty"` Settings UserSettings `json:"Settings,omitempty" bson:"settings,omitempty"` Confirmed bool `json:"Confirmed" bson:"confirmed"` Role UserRole `json:"Role" bson:"role"` RegisterDate time.Time `json:"RegisterDate" bson:"register_date"` Provider UserProvider `json:"Provider" bson:"provider"` ConnectedProviders map[UserProvider]string `json:"ConnectedProviders" bson:"-"` }
type UserProvider ¶
type UserProvider string
var ( Internal UserProvider = "" Facebook UserProvider = "facebook" Google UserProvider = "google" GitHub UserProvider = "github" Apple UserProvider = "apple" )
type UserSettings ¶
Click to show internal directories.
Click to hide internal directories.