models

package
v0.0.0-...-69a499a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailVerificationCollection *mongo.Collection
View Source
var FacebookAccountCollection *mongo.Collection
View Source
var FacebookConnectionCollection *mongo.Collection
View Source
var FacebookRegisterCollection *mongo.Collection
View Source
var GoogleAccountCollection *mongo.Collection
View Source
var GoogleConnectionCollection *mongo.Collection
View Source
var GoogleRegisterCollection *mongo.Collection
View Source
var InstagramAccountCollection *mongo.Collection
View Source
var InstagramConnectionCollection *mongo.Collection
View Source
var InstagramRegisterCollection *mongo.Collection
View Source
var LinkedinAccountCollection *mongo.Collection
View Source
var LinkedinConnectionCollection *mongo.Collection
View Source
var LinkedinRegisterCollection *mongo.Collection
View Source
var LoginTokenCollection *mongo.Collection
View Source
var MergeTokenCollection *mongo.Collection
View Source
var PasswordLoginCollection *mongo.Collection
View Source
var PhoneVerificationCollection *mongo.Collection
View Source
var ResetPasswordCollection *mongo.Collection
View Source
var SessionsCollection *mongo.Collection
View Source
var TwitterAccountCollection *mongo.Collection
View Source
var TwitterConnectionCollection *mongo.Collection
View Source
var TwitterRegisterCollection *mongo.Collection
View Source
var TwitterTokenCollection *mongo.Collection
View Source
var UsersCollection *mongo.Collection

Functions

func InitCollections

func InitCollections()

Types

type IPLocation

type IPLocation struct {
	// The right side is the name of the JSON variable
	Ip          string  `json:"ip,omitempty"`
	CountryCode string  `json:"country_code,omitempty"`
	CountryName string  `json:"country_name,omitempty"`
	RegionCode  string  `json:"region_code,omitempty"`
	RegionName  string  `json:"region_name,omitempty"`
	City        string  `json:"city,omitempty"`
	Zipcode     string  `json:"zipcode,omitempty"`
	Lat         float32 `json:"latitude,omitempty"`
	Lon         float32 `json:"longitude,omitempty"`
	MetroCode   int     `json:"metro_code,omitempty"`
	AreaCode    int     `json:"area_code,omitempty"`
}

type PasswordLogin

type PasswordLogin struct {
	ID       primitive.ObjectID `bson:"_id,omitempty"`
	Email    string             `bson:"email,omitempty"`
	Password string             `bson:"password,omitempty"`
	Recovery string             `bson:"recovery,omitempty"`
	UserID   string             `bson:"userId,omitempty"`
}

type TwitterResponse

type TwitterResponse struct {
	ID    int    `json:"id,omitempty"`
	Name  string `json:"name,omitempty"`
	Email string `json:"email,omitempty"`
}

type User

type User struct {
	ID               primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	LastName         string             `json:"lastName,omitempty" bson:"lastName,omitempty"`
	UpdatedAt        time.Time          `json:"updatedAt,omitempty" bson:"updatedAt,omitempty"`
	Email            string             `json:"email,omitempty" bson:"email,omitempty"`
	IsActive         bool               `json:"isActive,omitempty" bson:"isActive,omitempty"`
	Password         string             `json:"password,omitempty" bson:"password,omitempty"`
	CreatedAt        time.Time          `json:"createdAt,omitempty" bson:"createdAt,omitempty"`
	FirstName        string             `json:"firstName,omitempty" bson:"firstName,omitempty"`
	ChangingEmail    string             `json:"changingEmail,omitempty" bson:"changingEmail,omitempty"`
	IsAdmin          bool               `json:"isAdmin,omitempty" bson:"isAdmin,omitempty"`
	VerifiedEmail    bool               `json:"verifiedEmail,omitempty" bson:"verifiedEmail,omitempty"`
	CountryPhoneCode string             `json:"countryPhoneCode,omitempty" bson:"countryPhoneCode,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL