Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pet ¶
type Pet struct { ID bson.ObjectId `bson:"_id" json:"id"` UserID string `bson:"userId" json:"userId"` Name string `bson:"name" json:"name"` Type string `bson:"type" json:"type"` Breed string `bson:"breed" json:"breed"` DateOfBirth string `bson:"dateOfBirth" json:"dateOfBirth"` Image string `bson:"image" json:"image"` }
Pet epresents a Pet. Uses bson keyword to tell mgo how to name properties in mongodb document
Click to show internal directories.
Click to hide internal directories.