models

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequest

type BadRequest struct {

	// message
	Message string `json:"message,omitempty"`
}

BadRequest bad request swagger:model BadRequest

func (*BadRequest) Validate added in v0.6.0

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

Validate validates this bad request

type ExtendedError

type ExtendedError struct {

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

	// message
	Message string `json:"message,omitempty"`
}

ExtendedError extended error swagger:model ExtendedError

func (ExtendedError) Error added in v0.5.0

func (o ExtendedError) Error() string

func (*ExtendedError) Validate

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

Validate validates this extended error

type GetBookInput

type GetBookInput struct {
	ID int64
}

GetBookInput holds the input parameters for a getBook operation.

func (GetBookInput) Path added in v1.3.0

func (i GetBookInput) Path() (string, error)

Path returns the URI path for the input.

func (GetBookInput) Validate

func (i GetBookInput) Validate() error

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

type InternalError

type InternalError struct {

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

	// message
	Message string `json:"message,omitempty"`
}

InternalError internal error swagger:model InternalError

func (InternalError) Error

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 NotFound

type NotFound struct {

	// message
	Message string `json:"message,omitempty"`
}

NotFound not found swagger:model NotFound

func (NotFound) Error

func (o NotFound) Error() string

func (*NotFound) Validate added in v0.6.0

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

Validate validates this not found

Jump to

Keyboard shortcuts

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