models

package
v0.0.0-...-52007fc Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2019 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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