runtime: Index | Files

package simplepetstore

import ""


Package Files


func NewPetstore Uses

func NewPetstore() (http.Handler, error)

NewPetstore creates a new petstore api handler

type Pet Uses

type Pet struct {
    ID        int64    `json:"id"`
    Name      string   `json:"name"`
    PhotoURLs []string `json:"photoUrls,omitempty"`
    Status    string   `json:"status,omitempty"`
    Tags      []Tag    `json:"tags,omitempty"`

Pet the pet model

type Tag Uses

type Tag struct {
    ID   int64
    Name string

Tag the tag model

Package simplepetstore imports 9 packages (graph). Updated 2020-02-18. Refresh now. Tools for package owners.