Documentation ¶
Index ¶
- Constants
- func GetBookByID2InputPath(id string) (string, error)
- func ValidateGetBookByID2Input(id string) error
- type Animal
- type Author
- type AuthorArray
- type AuthorSet
- type AuthorsResponse
- type AuthorsResponseMetadata
- type BadRequest
- type Book
- type Dog
- type Error
- type GetAuthorsInput
- type GetAuthorsWithPutInput
- type GetBookByID2Input
- type GetBookByIDInput
- type GetBooksInput
- type HealthCheckInput
- type Identifiable
- type InternalError
- type Lowercase
- type LowercaseModelsTestInput
- type OmitEmpty
- type Pet
- type Unathorized
- type UnknownResponse
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 ¶
GetBookByID2InputPath returns the URI path for the input.
func ValidateGetBookByID2Input ¶
ValidateGetBookByID2Input returns an error if the input parameter doesn't satisfy the requirements in the swagger yml file.
Types ¶
type Animal ¶
type Animal struct { // age Age int64 `json:"age,omitempty"` // species Species string `json:"species,omitempty"` }
Animal animal
swagger:model Animal
func (*Animal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Animal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Author ¶
type Author struct { // id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
Author author
swagger:model Author
func (*Author) MarshalBinary ¶
MarshalBinary interface implementation
func (*Author) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AuthorSet ¶
type AuthorSet struct { // random prop RandomProp int64 `json:"randomProp,omitempty"` // results Results AuthorArray `json:"results,omitempty"` }
AuthorSet author set
swagger:model AuthorSet
func (*AuthorSet) MarshalBinary ¶
MarshalBinary interface implementation
func (*AuthorSet) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AuthorsResponse ¶
type AuthorsResponse struct { // author set AuthorSet *AuthorSet `json:"authorSet,omitempty"` // metadata Metadata *AuthorsResponseMetadata `json:"metadata,omitempty"` }
AuthorsResponse authors response
swagger:model AuthorsResponse
func (*AuthorsResponse) MarshalBinary ¶
func (m *AuthorsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AuthorsResponse) UnmarshalBinary ¶
func (m *AuthorsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AuthorsResponseMetadata ¶
type AuthorsResponseMetadata struct { // count Count int64 `json:"count,omitempty"` }
AuthorsResponseMetadata authors response metadata
swagger:model AuthorsResponseMetadata
func (*AuthorsResponseMetadata) MarshalBinary ¶
func (m *AuthorsResponseMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AuthorsResponseMetadata) UnmarshalBinary ¶
func (m *AuthorsResponseMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BadRequest ¶
type BadRequest struct { // message Message string `json:"message,omitempty"` }
BadRequest bad request
swagger:model BadRequest
func (BadRequest) Error ¶
func (o BadRequest) Error() string
func (*BadRequest) MarshalBinary ¶
func (m *BadRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BadRequest) UnmarshalBinary ¶
func (m *BadRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Book ¶
type Book struct { // author Author string `json:"author,omitempty"` // genre // Enum: [scifi mystery horror] 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"` }
Book book
swagger:model Book
func (*Book) MarshalBinary ¶
MarshalBinary interface implementation
func (*Book) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Dog ¶
type Dog struct { Pet Identifiable // breed Breed string `json:"breed,omitempty"` }
Dog dog
swagger:model Dog
func (*Dog) MarshalBinary ¶
MarshalBinary interface implementation
func (Dog) MarshalJSON ¶
MarshalJSON marshals this object to a JSON structure
func (*Dog) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Dog) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object from a JSON structure
type Error ¶
type Error struct { // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` }
Error error
swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type GetAuthorsInput ¶
GetAuthorsInput holds the input parameters for a getAuthors operation.
func (GetAuthorsInput) Path ¶
func (i GetAuthorsInput) Path() (string, error)
Path returns the URI path for the input.
func (GetAuthorsInput) Validate ¶
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 ¶
GetAuthorsWithPutInput holds the input parameters for a getAuthorsWithPut operation.
func (GetAuthorsWithPutInput) Path ¶
func (i GetAuthorsWithPutInput) Path() (string, error)
Path returns the URI path for the input.
func (GetAuthorsWithPutInput) Validate ¶
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 ¶
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 ¶
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 ¶
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 Identifiable ¶
type Identifiable struct { // id ID string `json:"id,omitempty"` }
Identifiable identifiable
swagger:model Identifiable
func (*Identifiable) MarshalBinary ¶
func (m *Identifiable) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Identifiable) UnmarshalBinary ¶
func (m *Identifiable) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InternalError ¶
type InternalError struct { // message Message string `json:"message,omitempty"` }
InternalError internal error
swagger:model InternalError
func (InternalError) Error ¶
func (o InternalError) Error() string
func (*InternalError) MarshalBinary ¶
func (m *InternalError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InternalError) UnmarshalBinary ¶
func (m *InternalError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LowercaseModelsTestInput ¶
LowercaseModelsTestInput holds the input parameters for a lowercaseModelsTest operation.
func (LowercaseModelsTestInput) Path ¶
func (i LowercaseModelsTestInput) Path() (string, error)
Path returns the URI path for the input.
func (LowercaseModelsTestInput) Validate ¶
func (i LowercaseModelsTestInput) Validate() error
Validate returns an error if any of the LowercaseModelsTestInput parameters don't satisfy the requirements from the swagger yml file.
type OmitEmpty ¶
type OmitEmpty struct { // array field not omitted ArrayFieldNotOmitted []string `json:"arrayFieldNotOmitted"` // array field omitted ArrayFieldOmitted []string `json:"arrayFieldOmitted,omitempty"` }
OmitEmpty omit empty
swagger:model OmitEmpty
func (*OmitEmpty) MarshalBinary ¶
MarshalBinary interface implementation
func (*OmitEmpty) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Pet ¶
Pet pet
swagger:model Pet
func (*Pet) MarshalBinary ¶
MarshalBinary interface implementation
func (Pet) MarshalJSON ¶
MarshalJSON marshals this object to a JSON structure
func (*Pet) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Pet) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object from a JSON structure
type Unathorized ¶
type Unathorized struct { // message Message string `json:"message,omitempty"` }
Unathorized unathorized
swagger:model Unathorized
func (Unathorized) Error ¶
func (o Unathorized) Error() string
func (*Unathorized) MarshalBinary ¶
func (m *Unathorized) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Unathorized) UnmarshalBinary ¶
func (m *Unathorized) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UnknownResponse ¶
type UnknownResponse struct { // body Body string `json:"body,omitempty"` // status code StatusCode int64 `json:"statusCode,omitempty"` }
UnknownResponse unknown response
swagger:model UnknownResponse
func (UnknownResponse) Error ¶
func (u UnknownResponse) Error() string
func (*UnknownResponse) MarshalBinary ¶
func (m *UnknownResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UnknownResponse) UnmarshalBinary ¶
func (m *UnknownResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation