Documentation ¶
Index ¶
- Constants
- func GetBookByID2InputPath(id string) (string, error)
- func ValidateGetBookByID2Input(id string) error
- type Author
- type AuthorArray
- type AuthorSet
- type AuthorsResponse
- type AuthorsResponseMetadata
- type BadRequest
- type Book
- type Error
- type GetAuthorsInput
- type GetAuthorsWithPutInput
- type GetBookByID2Input
- type GetBookByIDInput
- type GetBooksInput
- type HealthCheckInput
- type InternalError
- type Unathorized
Constants ¶
const ( // BookGenreScifi captures enum value "scifi" BookGenreScifi string = "scifi" // BookGenreMystery captures enum value "mystery" BookGenreMystery string = "mystery" // BookGenreHorror captures enum value "horror" BookGenreHorror string = "horror" )
Variables ¶
This section is empty.
Functions ¶
func GetBookByID2InputPath ¶ added in v1.3.0
GetBookByID2InputPath returns the URI path for the input.
func ValidateGetBookByID2Input ¶ added in v0.5.0
ValidateGetBookByID2Input returns an error if the input parameter doesn't satisfy the requirements in the swagger yml file.
Types ¶
type Author ¶ added in v1.3.0
type Author struct { // id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
func (*Author) MarshalBinary ¶ added in v1.5.3
MarshalBinary interface implementation
func (*Author) UnmarshalBinary ¶ added in v1.5.3
UnmarshalBinary interface implementation
type AuthorArray ¶ added in v1.3.0
type AuthorArray []*Author
type AuthorSet ¶ added in v1.3.0
type AuthorSet struct { // random prop RandomProp int64 `json:"randomProp,omitempty"` // results Results AuthorArray `json:"results"` }
func (*AuthorSet) MarshalBinary ¶ added in v1.5.3
MarshalBinary interface implementation
func (*AuthorSet) UnmarshalBinary ¶ added in v1.5.3
UnmarshalBinary interface implementation
type AuthorsResponse ¶ added in v1.3.0
type AuthorsResponse struct { // author set AuthorSet *AuthorSet `json:"authorSet,omitempty"` // metadata Metadata *AuthorsResponseMetadata `json:"metadata,omitempty"` }
func (*AuthorsResponse) MarshalBinary ¶ added in v1.5.3
func (m *AuthorsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AuthorsResponse) UnmarshalBinary ¶ added in v1.5.3
func (m *AuthorsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AuthorsResponseMetadata ¶ added in v1.3.0
type AuthorsResponseMetadata struct { // count Count int64 `json:"count,omitempty"` }
func (*AuthorsResponseMetadata) MarshalBinary ¶ added in v1.5.3
func (m *AuthorsResponseMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AuthorsResponseMetadata) UnmarshalBinary ¶ added in v1.5.3
func (m *AuthorsResponseMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BadRequest ¶ added in v0.4.0
type BadRequest struct { // message Message string `json:"message,omitempty"` }
func (BadRequest) Error ¶ added in v0.4.0
func (o BadRequest) Error() string
func (*BadRequest) MarshalBinary ¶ added in v1.5.3
func (m *BadRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BadRequest) UnmarshalBinary ¶ added in v1.5.3
func (m *BadRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Book ¶
type Book struct { // author Author string `json:"author,omitempty"` // genre Genre string `json:"genre,omitempty"` // id ID int64 `json:"id,omitempty"` // name Name string `json:"name,omitempty"` // other Other map[string]string `json:"other,omitempty"` // other array OtherArray map[string][]string `json:"otherArray,omitempty"` }
func (*Book) MarshalBinary ¶ added in v1.5.3
MarshalBinary interface implementation
func (*Book) UnmarshalBinary ¶ added in v1.5.3
UnmarshalBinary interface implementation
type Error ¶
type Error struct { // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` }
func (*Error) MarshalBinary ¶ added in v1.5.3
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶ added in v1.5.3
UnmarshalBinary interface implementation
type GetAuthorsInput ¶ added in v1.3.0
GetAuthorsInput holds the input parameters for a getAuthors operation.
func (GetAuthorsInput) Path ¶ added in v1.3.0
func (i GetAuthorsInput) Path() (string, error)
Path returns the URI path for the input.
func (GetAuthorsInput) Validate ¶ added in v1.3.0
func (i GetAuthorsInput) Validate() error
Validate returns an error if any of the GetAuthorsInput parameters don't satisfy the requirements from the swagger yml file.
type GetAuthorsWithPutInput ¶ added in v1.5.0
GetAuthorsWithPutInput holds the input parameters for a getAuthorsWithPut operation.
func (GetAuthorsWithPutInput) Path ¶ added in v1.5.0
func (i GetAuthorsWithPutInput) Path() (string, error)
Path returns the URI path for the input.
func (GetAuthorsWithPutInput) Validate ¶ added in v1.5.0
func (i GetAuthorsWithPutInput) Validate() error
Validate returns an error if any of the GetAuthorsWithPutInput parameters don't satisfy the requirements from the swagger yml file.
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 XDontRateLimitMeBro string RandomBytes *strfmt.Base64 }
GetBookByIDInput holds the input parameters for a getBookByID operation.
func (GetBookByIDInput) Path ¶ added in v1.3.0
func (i GetBookByIDInput) Path() (string, error)
Path returns the URI path for the input.
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 GetBooksInput ¶
type GetBooksInput struct { Authors []string Available *bool State *string Published *strfmt.Date SnakeCase *string Completed *strfmt.DateTime MaxPages *float64 MinPages *int32 PagesToTime *float32 Authorization string StartingAfter *int64 }
GetBooksInput holds the input parameters for a getBooks operation.
func (GetBooksInput) Path ¶ added in v1.3.0
func (i GetBooksInput) Path() (string, error)
Path returns the URI path for the input.
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) Path ¶ added in v1.3.0
func (i HealthCheckInput) Path() (string, error)
Path returns the URI path for the input.
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 { // message Message string `json:"message,omitempty"` }
func (InternalError) Error ¶ added in v0.4.0
func (o InternalError) Error() string
func (*InternalError) MarshalBinary ¶ added in v1.5.3
func (m *InternalError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InternalError) UnmarshalBinary ¶ added in v1.5.3
func (m *InternalError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Unathorized ¶ added in v0.6.0
type Unathorized struct { // message Message string `json:"message,omitempty"` }
func (Unathorized) Error ¶ added in v0.6.0
func (o Unathorized) Error() string
func (*Unathorized) MarshalBinary ¶ added in v1.5.3
func (m *Unathorized) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Unathorized) UnmarshalBinary ¶ added in v1.5.3
func (m *Unathorized) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation