Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 533 Bytes
package pet
// Pet defines the data structure corresponding to a pet
type Pet struct {
ID uint32 `json:"id"`
Name string `json:"name"`
Species string `json:"species"`
Owner string `json:"owner"`
Extra map[string]interface{} `json:"extra"`
// Storer defines standard CRUD operations for Pets
type Storer interface {
CreatePet(*Pet) error
ReadPet(ID uint32) (*Pet, error)
UpdatePet(ID uint32, pet *Pet) error
DeletePet(ID uint32) (bool, error)
You can’t perform that action at this time.