Documentation ¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- type ErrParseParam
- type GetPetsPetIDNamesHandlerFunc
- type GetPetsPetIDNamesParams
- type GetPetsPetIDNamesParamsPath
- type GetPetsPetIDNamesRequest
- type GetPetsPetIDNamesResponse
- type GetPetsPetIDNamesResponse200
- type GetPetsPetIDShopsHandlerFunc
- type GetPetsPetIDShopsParams
- type GetPetsPetIDShopsParamsPath
- type GetPetsPetIDShopsRequest
- type GetPetsPetIDShopsResponse
- type GetPetsPetIDShopsResponse200
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type Nullable
Constants ¶
View Source
const SpecFile string = `` /* 329-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct { GetPetsPetIDNamesHandler GetPetsPetIDNamesHandlerFunc GetPetsPetIDShopsHandler GetPetsPetIDShopsHandlerFunc // 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) GetPetsPetIDNames ¶
func (c *Client) GetPetsPetIDNames(ctx context.Context, request GetPetsPetIDNamesParams) (GetPetsPetIDNamesResponse, error)
GetPetsPetIDNames GET /pets/{pet_id}/names
func (*Client) GetPetsPetIDShops ¶
func (c *Client) GetPetsPetIDShops(ctx context.Context, request GetPetsPetIDShopsParams) (GetPetsPetIDShopsResponse, error)
GetPetsPetIDShops GET /pets/{pet_id}/shops
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetPetsPetIDNamesHandlerFunc ¶
type GetPetsPetIDNamesHandlerFunc func(ctx context.Context, r GetPetsPetIDNamesRequest) GetPetsPetIDNamesResponse
func (GetPetsPetIDNamesHandlerFunc) ServeHTTP ¶
func (f GetPetsPetIDNamesHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetPetsPetIDNamesParams ¶ added in v0.0.3
type GetPetsPetIDNamesParams struct {
Path GetPetsPetIDNamesParamsPath
}
func (GetPetsPetIDNamesParams) HTTP ¶ added in v0.0.3
func (r GetPetsPetIDNamesParams) HTTP() *http.Request
func (GetPetsPetIDNamesParams) Parse ¶ added in v0.0.3
func (r GetPetsPetIDNamesParams) Parse() (GetPetsPetIDNamesParams, error)
type GetPetsPetIDNamesParamsPath ¶ added in v0.1.18
type GetPetsPetIDNamesParamsPath struct {
PetID string
}
type GetPetsPetIDNamesRequest ¶
type GetPetsPetIDNamesRequest interface { HTTP() *http.Request Parse() (GetPetsPetIDNamesParams, error) }
func GetPetsPetIDNamesHTTPRequest ¶
func GetPetsPetIDNamesHTTPRequest(r *http.Request) GetPetsPetIDNamesRequest
type GetPetsPetIDNamesResponse ¶
type GetPetsPetIDNamesResponse interface {
// contains filtered or unexported methods
}
func NewGetPetsPetIDNamesResponse200 ¶
func NewGetPetsPetIDNamesResponse200() GetPetsPetIDNamesResponse
type GetPetsPetIDNamesResponse200 ¶
type GetPetsPetIDNamesResponse200 struct{}
func (GetPetsPetIDNamesResponse200) Write ¶
func (r GetPetsPetIDNamesResponse200) Write(w http.ResponseWriter)
type GetPetsPetIDShopsHandlerFunc ¶
type GetPetsPetIDShopsHandlerFunc func(ctx context.Context, r GetPetsPetIDShopsRequest) GetPetsPetIDShopsResponse
func (GetPetsPetIDShopsHandlerFunc) ServeHTTP ¶
func (f GetPetsPetIDShopsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetPetsPetIDShopsParams ¶ added in v0.0.3
type GetPetsPetIDShopsParams struct {
Path GetPetsPetIDShopsParamsPath
}
func (GetPetsPetIDShopsParams) HTTP ¶ added in v0.0.3
func (r GetPetsPetIDShopsParams) HTTP() *http.Request
func (GetPetsPetIDShopsParams) Parse ¶ added in v0.0.3
func (r GetPetsPetIDShopsParams) Parse() (GetPetsPetIDShopsParams, error)
type GetPetsPetIDShopsParamsPath ¶ added in v0.1.18
type GetPetsPetIDShopsParamsPath struct {
PetID string
}
type GetPetsPetIDShopsRequest ¶
type GetPetsPetIDShopsRequest interface { HTTP() *http.Request Parse() (GetPetsPetIDShopsParams, error) }
func GetPetsPetIDShopsHTTPRequest ¶
func GetPetsPetIDShopsHTTPRequest(r *http.Request) GetPetsPetIDShopsRequest
type GetPetsPetIDShopsResponse ¶
type GetPetsPetIDShopsResponse interface {
// contains filtered or unexported methods
}
func NewGetPetsPetIDShopsResponse200 ¶
func NewGetPetsPetIDShopsResponse200() GetPetsPetIDShopsResponse
type GetPetsPetIDShopsResponse200 ¶
type GetPetsPetIDShopsResponse200 struct{}
func (GetPetsPetIDShopsResponse200) Write ¶
func (r GetPetsPetIDShopsResponse200) Write(w http.ResponseWriter)
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
Click to show internal directories.
Click to hide internal directories.