Documentation
¶
Index ¶
Constants ¶
View Source
const ( PersonGenderFemale = PersonGender("female") PersonGendermale = PersonGender("male") )
PersonGender : constants
View Source
const PersonGenderUnknown = PersonGender("unknown")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveFormat ¶
type ArchiveFormat string
ArchiveFormat is used to define the archive type when calling GetArchiveLink.
const ( // Tarball specifies an archive in gzipped tar format. Tarball ArchiveFormat = "tarball" // Zipball specifies an archive in zip format. Zipball ArchiveFormat = "zipball" )
type Person ¶
type Person struct {
ID bson.ObjectId `json:"id" bson:"_id"`
Name string `json:"name" bson:"name"`
Age int `json:"age" bson:"age"`
Gender PersonGender `json:"gender" bson:"gender"`
GroupID *bson.ObjectId `json:"groupId,omitempty" bson:"groupId"`
Group *Group `json:"-"`
}
Person : person model
Click to show internal directories.
Click to hide internal directories.