models

package
v0.0.0-...-d41341d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gopher

type Gopher struct {
	UUID             string `json:"uuid" bson:"uuid"`
	Username         string `json:"username" bson:"username"`
	FirstName        string `json:"firstName" bson:"firstName"`
	LastName         string `json:"lastName" bson:"lastName"`
	Location         string `json:"location" bson:"location"`
	ProfileImagePath string `json:"profileImagePath" bson:"profileImagePath"`
}

type User

type User struct {
	UUID              string `json:"uuid" bson:"uuid"`
	Username          string `json:"username" bson:"username"`
	FirstName         string `json:"firstName" bson:"firstName"`
	LastName          string `json:"lastName" bson:"lastName"`
	Email             string `json:"email" bson:"email"`
	PasswordHash      string `json:"passwordHash" bson:"passwordHash"`
	TimestampCreated  int64  `json:"timestampCreated" bson:"timestampCreated"`
	TimestampModified int64  `json:"timestampModified" bson:"timestampModified"`
}

func NewUser

func NewUser(username string, firstName string, lastName string, email string, password string) *User

type UserProfile

type UserProfile struct {
	PageTitle        string `json:"pageTitle", bson:"pageTitle"`
	UUID             string `json:"uuid" bson:"uuid"`
	Username         string `json:"username" bson:"username"`
	About            string `json:"about" bson:"about"`
	Location         string `json:"location" bson:"location"`
	Interests        string `json:"interests" bson:"interests"`
	ProfileImagePath string `json:"profileImagePath" bson:"profileImagePath"`
	Form             *forms.MyProfileForm
}

Directories

Path Synopsis
Package SocialMedia implements common functionality needed for social media web applications.
Package SocialMedia implements common functionality needed for social media web applications.

Jump to

Keyboard shortcuts

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