models

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequest added in v0.4.0

type BadRequest Error

BadRequest defines a response type. Bad Request

func (BadRequest) Error added in v0.4.0

func (o BadRequest) Error() string

Error returns the message encoded in the error type

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 CreateBook400Output added in v0.4.0

type CreateBook400Output struct{}

CreateBook400Output defines the 400 status code response for CreateBook.

func (CreateBook400Output) Error added in v0.4.0

func (o CreateBook400Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type CreateBook500Output added in v0.4.0

type CreateBook500Output struct{}

CreateBook500Output defines the 500 status code response for CreateBook.

func (CreateBook500Output) Error added in v0.4.0

func (o CreateBook500Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type Error

type Error struct {

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

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

Error error swagger:model Error

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 GetBookByID2400Output added in v0.4.0

type GetBookByID2400Output struct{}

GetBookByID2400Output defines the 400 status code response for GetBookByID2.

func (GetBookByID2400Output) Error added in v0.4.0

func (o GetBookByID2400Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type GetBookByID2404Output

type GetBookByID2404Output struct{}

GetBookByID2404Output defines the 404 status code response for GetBookByID2.

func (GetBookByID2404Output) Error

func (o GetBookByID2404Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type GetBookByID2500Output added in v0.4.0

type GetBookByID2500Output struct{}

GetBookByID2500Output defines the 500 status code response for GetBookByID2.

func (GetBookByID2500Output) Error added in v0.4.0

func (o GetBookByID2500Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type GetBookByID2Input

type GetBookByID2Input struct {
	ID string
}

GetBookByID2Input holds the input parameters for a getBookByID2 operation.

func (GetBookByID2Input) Validate

func (i GetBookByID2Input) Validate() error

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

type GetBookByID400Output added in v0.4.0

type GetBookByID400Output struct{}

GetBookByID400Output defines the 400 status code response for GetBookByID.

func (GetBookByID400Output) Error added in v0.4.0

func (o GetBookByID400Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type GetBookByID401Output

type GetBookByID401Output struct{}

GetBookByID401Output defines the 401 status code response for GetBookByID.

func (GetBookByID401Output) Error

func (o GetBookByID401Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type GetBookByID404Output

type GetBookByID404Output Error

GetBookByID404Output defines the 404 status code response for GetBookByID.

func (GetBookByID404Output) Error

func (o GetBookByID404Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type GetBookByID500Output added in v0.4.0

type GetBookByID500Output struct{}

GetBookByID500Output defines the 500 status code response for GetBookByID.

func (GetBookByID500Output) Error added in v0.4.0

func (o GetBookByID500Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

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 GetBooks400Output added in v0.4.0

type GetBooks400Output struct{}

GetBooks400Output defines the 400 status code response for GetBooks.

func (GetBooks400Output) Error added in v0.4.0

func (o GetBooks400Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type GetBooks500Output added in v0.4.0

type GetBooks500Output struct{}

GetBooks500Output defines the 500 status code response for GetBooks.

func (GetBooks500Output) Error added in v0.4.0

func (o GetBooks500Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

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 HealthCheck400Output added in v0.4.0

type HealthCheck400Output struct{}

HealthCheck400Output defines the 400 status code response for HealthCheck.

func (HealthCheck400Output) Error added in v0.4.0

func (o HealthCheck400Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

type HealthCheck500Output added in v0.4.0

type HealthCheck500Output struct{}

HealthCheck500Output defines the 500 status code response for HealthCheck.

func (HealthCheck500Output) Error added in v0.4.0

func (o HealthCheck500Output) Error() string

Error returns "Status Code: X". We implemented in to satisfy the error interface. For a more descriptive error message see the output type.

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 Error

InternalError defines a response type. Internal Error

func (InternalError) Error added in v0.4.0

func (o InternalError) Error() string

Error returns the message encoded in the error type

Jump to

Keyboard shortcuts

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