models

package
v0.0.0-...-a23775e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (m *Category) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Category) UnmarshalBinary

func (m *Category) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Category) Validate

func (m *Category) Validate(formats strfmt.Registry) error

Validate validates this category

type CreateUsersWithArrayInputParamsBody

type CreateUsersWithArrayInputParamsBody []*User

CreateUsersWithArrayInputParamsBody create users with array input params body swagger:model createUsersWithArrayInputParamsBody

func (CreateUsersWithArrayInputParamsBody) Validate

Validate validates this create users with array input params body

type CreateUsersWithListInputParamsBody

type CreateUsersWithListInputParamsBody []*User

CreateUsersWithListInputParamsBody create users with list input params body swagger:model createUsersWithListInputParamsBody

func (CreateUsersWithListInputParamsBody) Validate

Validate validates this create users with list input params body

type FindPetsByStatusOKBody

type FindPetsByStatusOKBody []*Pet

FindPetsByStatusOKBody find pets by status o k body swagger:model findPetsByStatusOKBody

func (FindPetsByStatusOKBody) Validate

func (m FindPetsByStatusOKBody) Validate(formats strfmt.Registry) error

Validate validates this find pets by status o k body

type FindPetsByTagsOKBody

type FindPetsByTagsOKBody []*Pet

FindPetsByTagsOKBody find pets by tags o k body swagger:model findPetsByTagsOKBody

func (FindPetsByTagsOKBody) Validate

func (m FindPetsByTagsOKBody) Validate(formats strfmt.Registry) error

Validate validates this find pets by tags o k body

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
	ShipDate strfmt.DateTime `json:"shipDate,omitempty"`

	// Order Status
	Status string `json:"status,omitempty"`
}

Order order swagger:model Order

func (*Order) MarshalBinary

func (m *Order) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Order) UnmarshalBinary

func (m *Order) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Order) Validate

func (m *Order) Validate(formats strfmt.Registry) error

Validate validates this order

type Pet

type Pet struct {

	// category
	Category *Category `json:"category,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// photo urls
	// Required: true
	PhotoUrls []string `json:"photoUrls"`

	// pet status in the store
	Status string `json:"status,omitempty"`

	// tags
	Tags PetTags `json:"tags"`
}

Pet pet swagger:model Pet

func (*Pet) MarshalBinary

func (m *Pet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Pet) UnmarshalBinary

func (m *Pet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Pet) Validate

func (m *Pet) Validate(formats strfmt.Registry) error

Validate validates this pet

type PetTags

type PetTags []*Tag

PetTags pet tags swagger:model petTags

func (PetTags) Validate

func (m PetTags) Validate(formats strfmt.Registry) error

Validate validates this pet tags

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

func (m *Tag) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary

func (m *Tag) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tag) Validate

func (m *Tag) Validate(formats strfmt.Registry) error

Validate validates this tag

type User

type User struct {

	// email
	Email string `json:"email,omitempty"`

	// first name
	FirstName string `json:"firstName,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// last name
	LastName string `json:"lastName,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// phone
	Phone string `json:"phone,omitempty"`

	// User Status
	UserStatus int32 `json:"userStatus,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

User user swagger:model User

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

Jump to

Keyboard shortcuts

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