Documentation ¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- type ErrParseParam
- type HTTPClient
- type HTTPClientFunc
- type NewPet
- type PostPetsHandlerFunc
- type PostPetsParams
- type PostPetsRequest
- type PostPetsResponse
- type PostPetsResponse201
- type PostPetsResponseDefault
Constants ¶
View Source
const SpecFile string = `` /* 404-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type Client ¶ added in v0.0.2
type Client struct { BaseURL string HTTPClient HTTPClient }
func NewClient ¶ added in v0.0.2
func NewClient(baseURL string, httpClient HTTPClient) *Client
func (*Client) PostPets ¶ added in v0.0.2
func (c *Client) PostPets(ctx context.Context, request PostPetsParams) (PostPetsResponse, error)
PostPets - POST /pets
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type HTTPClient ¶ added in v0.0.2
type HTTPClientFunc ¶ added in v0.0.11
type PostPetsHandlerFunc ¶
type PostPetsHandlerFunc func(ctx context.Context, r PostPetsRequest) PostPetsResponse
func (PostPetsHandlerFunc) ServeHTTP ¶
func (f PostPetsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PostPetsParams ¶ added in v0.0.3
type PostPetsParams struct {
Body NewPet
}
func (PostPetsParams) HTTP ¶ added in v0.0.3
func (r PostPetsParams) HTTP() *http.Request
func (PostPetsParams) Parse ¶ added in v0.0.3
func (r PostPetsParams) Parse() (PostPetsParams, error)
type PostPetsRequest ¶
type PostPetsRequest interface { HTTP() *http.Request Parse() (PostPetsParams, error) }
func PostPetsHTTPRequest ¶ added in v0.0.2
func PostPetsHTTPRequest(r *http.Request) PostPetsRequest
type PostPetsResponse ¶ added in v0.0.2
type PostPetsResponse interface { Write(w http.ResponseWriter) // contains filtered or unexported methods }
func NewPostPetsResponse201 ¶ added in v0.0.2
func NewPostPetsResponse201() PostPetsResponse
func NewPostPetsResponseDefault ¶ added in v0.0.2
func NewPostPetsResponseDefault(code int) PostPetsResponse
type PostPetsResponse201 ¶
type PostPetsResponse201 struct{}
func (PostPetsResponse201) Write ¶ added in v0.0.2
func (r PostPetsResponse201) Write(w http.ResponseWriter)
type PostPetsResponseDefault ¶
type PostPetsResponseDefault struct {
Code int
}
func (PostPetsResponseDefault) Write ¶ added in v0.0.2
func (r PostPetsResponseDefault) Write(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.