models

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

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

Go to latest
Published: Dec 11, 2012 License: MIT Imports: 4 Imported by: 0

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