models

package
v0.0.0-...-0fdd9f6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2016 License: MIT Imports: 1 Imported by: 0

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 Group

type Group struct {
	ID   b.ObjectId `json:"id" bson:"_id"`
	Name string     `json:"name"`
}

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

type PersonGender

type PersonGender string

PersonGender : gender

Jump to

Keyboard shortcuts

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