models

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateGetBookByID2Input added in v0.5.0

func ValidateGetBookByID2Input(id string) error

ValidateGetBookByID2Input returns an error if the input parameter doesn't satisfy the requirements in the swagger yml file.

Types

type BadRequestError added in v0.5.0

type BadRequestError struct {

	// msg
	Msg string `json:"msg,omitempty"`
}

BadRequestError bad request error swagger:model BadRequestError

func (BadRequestError) Error added in v0.5.0

func (o BadRequestError) Error() string

func (*BadRequestError) Validate added in v0.5.0

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

Validate validates this bad request error

type Book

type Book struct {

	// author
	Author string `json:"author,omitempty"`

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

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

Book book swagger:model Book

func (*Book) Validate

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

Validate validates this book

type Error

type Error struct {

	// code
	Code int32 `json:"code,omitempty"`

	// msg
	Msg string `json:"msg,omitempty"`
}

Error error swagger:model Error

func (Error) Error added in v0.5.0

func (o Error) Error() string

func (*Error) Validate

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

Validate validates this error

type GetBookByID200Output

type GetBookByID200Output Book

GetBookByID200Output defines the 200 status code response for GetBookByID.

func (GetBookByID200Output) GetBookByIDStatusCode

func (o GetBookByID200Output) GetBookByIDStatusCode() int

GetBookByIDStatusCode returns the status code for the operation.

type GetBookByID204Output

type GetBookByID204Output struct{}

GetBookByID204Output defines the 204 status code response for GetBookByID.

func (GetBookByID204Output) GetBookByIDStatusCode

func (o GetBookByID204Output) GetBookByIDStatusCode() int

GetBookByIDStatusCode returns the status code for the operation.

type GetBookByID2Input

type GetBookByID2Input struct {
	ID string
}

GetBookByID2Input holds the input parameters for a getBookByID2 operation.

type GetBookByIDInput

type GetBookByIDInput struct {
	BookID        int64
	AuthorID      *string
	Authorization *string
	RandomBytes   *strfmt.Base64
}

GetBookByIDInput holds the input parameters for a getBookByID operation.

func (GetBookByIDInput) Validate

func (i GetBookByIDInput) Validate() error

Validate returns an error if any of the GetBookByIDInput parameters don't satisfy the requirements from the swagger yml file.

type GetBookByIDOutput

type GetBookByIDOutput interface {
	GetBookByIDStatusCode() int
}

GetBookByIDOutput defines the success output interface for GetBookByID.

type GetBooksInput

type GetBooksInput struct {
	Authors     []string
	Available   *bool
	State       *string
	Published   *strfmt.Date
	SnakeCase   *string
	Completed   *strfmt.DateTime
	MaxPages    *float64
	MinPages    *int32
	PagesToTime *float32
}

GetBooksInput holds the input parameters for a getBooks operation.

func (GetBooksInput) Validate

func (i GetBooksInput) Validate() error

Validate returns an error if any of the GetBooksInput parameters don't satisfy the requirements from the swagger yml file.

type HealthCheckInput

type HealthCheckInput struct {
}

HealthCheckInput holds the input parameters for a healthCheck operation.

func (HealthCheckInput) Validate

func (i HealthCheckInput) Validate() error

Validate returns an error if any of the HealthCheckInput parameters don't satisfy the requirements from the swagger yml file.

type InternalError added in v0.4.0

type InternalError struct {

	// msg
	Msg string `json:"msg,omitempty"`
}

InternalError internal error swagger:model InternalError

func (InternalError) Error added in v0.4.0

func (o InternalError) Error() string

func (*InternalError) Validate added in v0.5.0

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

Validate validates this internal error

type UnathorizedError added in v0.5.0

type UnathorizedError struct {

	// msg
	Msg string `json:"msg,omitempty"`
}

UnathorizedError unathorized error swagger:model UnathorizedError

func (UnathorizedError) Error added in v0.5.0

func (o UnathorizedError) Error() string

func (*UnathorizedError) Validate added in v0.5.0

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

Validate validates this unathorized error

Jump to

Keyboard shortcuts

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