models

package
v0.0.0-...-8bfda83 Latest Latest
Warning

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

Go to latest
Published: May 12, 2015 License: MIT Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorSchemes = mongo.NewCollection("colorschemes")
View Source
var Users = user.NewCollection("users")

We are using user.NewCollection here instead of mongo.NewCollection because user.NewCollection sets the correct mongo.Collection.DocLabelSelectors so that mongo.Collection.DocumentLabel(id) returns a label for the document with id composed of the name modelext.Name components Prefix + First + Middle + Last + Postfix + Organization.

Functions

This section is empty.

Types

type ColorScheme

type ColorScheme struct {
	mongo.DocumentBase `bson:",inline"`

	Primary   model.String
	Secondary model.String
}

func NewColorScheme

func NewColorScheme() *ColorScheme

type User

type User struct {
	user.User `bson:",inline"`

	Image  media.ImageRef
	Gender model.Choice `model:"options=,Male,Female"`
}

func NewUser

func NewUser() *User

Jump to

Keyboard shortcuts

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