go-swagger: github.com/go-swagger/go-swagger/examples/generated/models Index | Files

package models

import "github.com/go-swagger/go-swagger/examples/generated/models"

Index

Package Files

category.go order.go pet.go tag.go user.go

type Category Uses

type Category struct {

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

    // name
    Name string `json:"name,omitempty"`
}

Category category swagger:model Category

func (*Category) MarshalBinary Uses

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

MarshalBinary interface implementation

func (*Category) UnmarshalBinary Uses

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

UnmarshalBinary interface implementation

func (*Category) Validate Uses

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

Validate validates this category

type Order Uses

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
    Status string `json:"status,omitempty"`
}

Order order swagger:model Order

func (*Order) MarshalBinary Uses

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

MarshalBinary interface implementation

func (*Order) UnmarshalBinary Uses

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

UnmarshalBinary interface implementation

func (*Order) Validate Uses

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

Validate validates this order

type Pet Uses

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 []*Tag `json:"tags"`
}

Pet pet swagger:model Pet

func (*Pet) MarshalBinary Uses

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

MarshalBinary interface implementation

func (*Pet) UnmarshalBinary Uses

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

UnmarshalBinary interface implementation

func (*Pet) Validate Uses

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

Validate validates this pet

type Tag Uses

type Tag struct {

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

    // name
    Name string `json:"name,omitempty"`
}

Tag tag swagger:model Tag

func (*Tag) MarshalBinary Uses

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

MarshalBinary interface implementation

func (*Tag) UnmarshalBinary Uses

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

UnmarshalBinary interface implementation

func (*Tag) Validate Uses

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

Validate validates this tag

type User Uses

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 Uses

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

MarshalBinary interface implementation

func (*User) UnmarshalBinary Uses

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

UnmarshalBinary interface implementation

func (*User) Validate Uses

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

Validate validates this user

Package models imports 5 packages (graph) and is imported by 18 packages. Updated 2018-07-05. Refresh now. Tools for package owners.