Documentation
¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- type ErrParseParam
- type GetPetsPetIDHandlerFunc
- type GetPetsPetIDParams
- type GetPetsPetIDParamsPath
- type GetPetsPetIDRequest
- type GetPetsPetIDResponse
- type GetPetsPetIDResponse200JSON
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type Nullable
- type Pet
Constants ¶
View Source
const SpecFile string = `` /* 514-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct { GetPetsPetIDHandler GetPetsPetIDHandlerFunc // 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) GetPetsPetID ¶
func (c *Client) GetPetsPetID(ctx context.Context, request GetPetsPetIDParams) (GetPetsPetIDResponse, error)
GetPetsPetID GET /pets/{pet_id}
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetPetsPetIDHandlerFunc ¶
type GetPetsPetIDHandlerFunc func(ctx context.Context, r GetPetsPetIDRequest) GetPetsPetIDResponse
func (GetPetsPetIDHandlerFunc) ServeHTTP ¶
func (f GetPetsPetIDHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetPetsPetIDParams ¶ added in v0.0.3
type GetPetsPetIDParams struct {
Path GetPetsPetIDParamsPath
}
func (GetPetsPetIDParams) HTTP ¶ added in v0.0.3
func (r GetPetsPetIDParams) HTTP() *http.Request
func (GetPetsPetIDParams) Parse ¶ added in v0.0.3
func (r GetPetsPetIDParams) Parse() (GetPetsPetIDParams, error)
type GetPetsPetIDParamsPath ¶ added in v0.1.18
type GetPetsPetIDParamsPath struct {
PetID int32
}
type GetPetsPetIDRequest ¶
type GetPetsPetIDRequest interface { HTTP() *http.Request Parse() (GetPetsPetIDParams, error) }
func GetPetsPetIDHTTPRequest ¶
func GetPetsPetIDHTTPRequest(r *http.Request) GetPetsPetIDRequest
type GetPetsPetIDResponse ¶
type GetPetsPetIDResponse interface {
// contains filtered or unexported methods
}
func NewGetPetsPetIDResponse200JSON ¶
func NewGetPetsPetIDResponse200JSON(body Pet) GetPetsPetIDResponse
type GetPetsPetIDResponse200JSON ¶
type GetPetsPetIDResponse200JSON struct {
Body Pet
}
func (GetPetsPetIDResponse200JSON) Write ¶
func (r GetPetsPetIDResponse200JSON) 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.