 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const ( // OrderStatusPlaced captures enum value "placed" OrderStatusPlaced string = "placed" // OrderStatusApproved captures enum value "approved" OrderStatusApproved string = "approved" // OrderStatusDelivered captures enum value "delivered" OrderStatusDelivered string = "delivered" )
      View Source
      
  
const ( // PetStatusAvailable captures enum value "available" PetStatusAvailable string = "available" // PetStatusPending captures enum value "pending" PetStatusPending string = "pending" // PetStatusSold captures enum value "sold" PetStatusSold string = "sold" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct {
	// code
	Code int32 `json:"code,omitempty"`
	// message
	Message string `json:"message,omitempty"`
	// type
	Type string `json:"type,omitempty"`
}
    APIResponse is the response to an API call.
func (*APIResponse) MarshalBinary ¶
func (m *APIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIResponse) UnmarshalBinary ¶
func (m *APIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Category ¶
type Category struct {
	// id
	ID int64 `json:"id,omitempty"`
	// name
	Name string `json:"name,omitempty"`
}
    Category category swagger:model Category
func (*Category) MarshalBinary ¶
MarshalBinary interface implementation
func (*Category) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Order ¶
type Order struct {
	// complete
	Complete *bool `json:"complete,omitempty"`
	// id
	ID int64 `json:"id,omitempty"`
	// pet Id
	PetID int64 `json:"petId,omitempty"`
	// quantity
	Quantity int32 `json:"quantity,omitempty"`
	// ship date
	// Format: date-time
	ShipDate strfmt.DateTime `json:"shipDate,omitempty"`
	// Order Status
	// Enum: [placed approved delivered]
	Status string `json:"status,omitempty"`
}
    Order order swagger:model Order
func (*Order) MarshalBinary ¶
MarshalBinary interface implementation
func (*Order) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Pet ¶
type Pet struct {
	// category
	Category *Category `json:"category,omitempty"`
	// id
	ID int64 `json:"id,omitempty" gorm:"primary_key" query:"filter,sort"`
	// name
	// Required: true
	Name *string `json:"name" query:"filter,sort"`
	// photo urls
	// Required: true
	PhotoUrls []string `json:"photoUrls" gorm:"-"`
	// pet status in the store
	// Enum: [available pending sold]
	Status string `json:"status,omitempty" query:"filter,sort"`
	// tags
	Tags []*Tag `json:"tags"`
}
    Pet pet swagger:model Pet
func (*Pet) MarshalBinary ¶
MarshalBinary interface implementation
func (*Pet) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Tag ¶
type Tag struct {
	// id
	ID int64 `json:"id,omitempty"`
	// name
	Name string `json:"name,omitempty"`
}
    Tag tag swagger:model Tag
func (*Tag) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tag) UnmarshalBinary ¶
UnmarshalBinary interface implementation
 Click to show internal directories. 
   Click to hide internal directories.