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 PostShopsShopPetsHandlerFunc
- type PostShopsShopPetsParams
- type PostShopsShopPetsRequest
- type PostShopsShopPetsResponse
- type PostShopsShopPetsResponse201
- type PostShopsShopPetsResponseDefault
Constants ¶
View Source
const SpecFile string = `` /* 877-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type Client ¶
type Client struct { BaseURL string HTTPClient HTTPClient }
func NewClient ¶
func NewClient(baseURL string, httpClient HTTPClient) *Client
func (*Client) PostShopsShopPets ¶
func (c *Client) PostShopsShopPets(ctx context.Context, request PostShopsShopPetsParams) (PostShopsShopPetsResponse, error)
PostShopsShopPets - POST /shops/{shop}/pets
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type HTTPClientFunc ¶ added in v0.0.11
type PostShopsShopPetsHandlerFunc ¶
type PostShopsShopPetsHandlerFunc func(ctx context.Context, r PostShopsShopPetsRequest) PostShopsShopPetsResponse
func (PostShopsShopPetsHandlerFunc) ServeHTTP ¶
func (f PostShopsShopPetsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PostShopsShopPetsParams ¶
type PostShopsShopPetsParams struct { Query struct { Filter pkg.Maybe[pkg.ShopType] } Path struct { Shop pkg.ShopType } Body NewPet }
func (PostShopsShopPetsParams) HTTP ¶
func (r PostShopsShopPetsParams) HTTP() *http.Request
func (PostShopsShopPetsParams) Parse ¶
func (r PostShopsShopPetsParams) Parse() (PostShopsShopPetsParams, error)
type PostShopsShopPetsRequest ¶
type PostShopsShopPetsRequest interface { HTTP() *http.Request Parse() (PostShopsShopPetsParams, error) }
func PostShopsShopPetsHTTPRequest ¶
func PostShopsShopPetsHTTPRequest(r *http.Request) PostShopsShopPetsRequest
type PostShopsShopPetsResponse ¶
type PostShopsShopPetsResponse interface {
// contains filtered or unexported methods
}
func NewPostShopsShopPetsResponse201 ¶
func NewPostShopsShopPetsResponse201() PostShopsShopPetsResponse
func NewPostShopsShopPetsResponseDefault ¶
func NewPostShopsShopPetsResponseDefault(code int) PostShopsShopPetsResponse
type PostShopsShopPetsResponse201 ¶
type PostShopsShopPetsResponse201 struct{}
func (PostShopsShopPetsResponse201) Write ¶
func (r PostShopsShopPetsResponse201) Write(w http.ResponseWriter)
type PostShopsShopPetsResponseDefault ¶
type PostShopsShopPetsResponseDefault struct {
Code int
}
func (PostShopsShopPetsResponseDefault) Write ¶
func (r PostShopsShopPetsResponseDefault) Write(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.