models

package
v0.0.0-...-62f23bf Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorModel

type ErrorModel struct {

	// code
	// Required: true
	Code *int32 `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

ErrorModel error model

swagger:model ErrorModel

func (*ErrorModel) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorModel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorModel) Validate

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

Validate validates this error model

type Response

type Response struct {

	// confirmed
	Confirmed int64 `json:"confirmed,omitempty"`

	// deceased
	Deceased int64 `json:"deceased,omitempty"`

	// recovered
	Recovered int64 `json:"recovered,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
}

Response response

swagger:model Response

func (*Response) MarshalBinary

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

MarshalBinary interface implementation

func (*Response) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Response) Validate

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

Validate validates this response

Jump to

Keyboard shortcuts

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