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 Nullable
- type PostShopsShopPetsHandlerFunc
- type PostShopsShopPetsParams
- type PostShopsShopPetsParamsPath
- type PostShopsShopPetsParamsQuery
- type PostShopsShopPetsRequest
- type PostShopsShopPetsResponse
- type PostShopsShopPetsResponse201
- type PostShopsShopPetsResponseDefault
Constants ¶
View Source
const SpecFile string = `` /* 864-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct { PostShopsShopPetsHandler PostShopsShopPetsHandlerFunc // not found NotFoundHandler http.Handler // spec file SpecFileHandler http.Handler Middlewares []func(h http.Handler) http.Handler }
func (API) TestClient ¶ added in v0.1.28
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 Nullable ¶ added in v0.1.25
func (Nullable[T]) MarshalJSON ¶ added in v0.1.28
func (*Nullable[T]) UnmarshalJSON ¶ added in v0.1.28
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 PostShopsShopPetsParamsQuery Path PostShopsShopPetsParamsPath Body NewPet }
func (PostShopsShopPetsParams) HTTP ¶
func (r PostShopsShopPetsParams) HTTP() *http.Request
func (PostShopsShopPetsParams) Parse ¶
func (r PostShopsShopPetsParams) Parse() (PostShopsShopPetsParams, error)
type PostShopsShopPetsParamsPath ¶ added in v0.1.18
type PostShopsShopPetsParamsQuery ¶ added in v0.1.18
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.