collections

package
v0.0.0-...-7b393fd Latest Latest
Warning

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

Go to latest
Published: May 16, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const UserCollectionName = "user"

Variables

This section is empty.

Functions

This section is empty.

Types

type UserDocument

type UserDocument struct {
	Id               bson.ObjectId          `bson:"_id"`
	Email            string                 `bson:"email"`
	HashedPass       []byte                 `bson:"hashedPass"`
	Roles            []string               `bson:"roles"`
	CreatedAt        time.Time              `bson:"createdAt"`
	ConfirmationKey  string                 `bson:"confirmationKey"`
	IsConfirmed      bool                   `bson:"isConfirmed"`
	ResetKey         string                 `bson:"resetKey"`
	RequestedResetAt time.Time              `bson:"requestedResetAt"`
	IsSuspended      bool                   `bson:"isSuspended"`
	SignedOutAt      time.Time              `bson:"signedOutAt"`
	Profile          map[string]interface{} `bson:"profile"`
}

Jump to

Keyboard shortcuts

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