Documentation
¶
Index ¶
- Constants
- Variables
- func SchemaPath(r *http.Request) (string, bool)
- func SpecFileHandler() http.Handler
- type API
- type Client
- type ErrParseParam
- type GetPetsIDsHandlerFunc
- type GetPetsIDsParams
- type GetPetsIDsRequest
- type GetPetsIDsResponse
- type GetPetsIDsResponse200JSON
- type HTTPClient
- type HTTPClientFunc
- type Maybe
- type Nullable
Constants ¶
View Source
const SpecFile string = `` /* 214-byte string literal not displayed */
Variables ¶
Functions ¶
func SpecFileHandler ¶
Types ¶
type API ¶
type API struct { GetPetsIDsHandler GetPetsIDsHandlerFunc // 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 ¶ 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) GetPetsIDs ¶ added in v0.0.2
func (c *Client) GetPetsIDs(ctx context.Context, request GetPetsIDsParams) (GetPetsIDsResponse, error)
GetPetsIDs GET /pets/ids
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetPetsIDsHandlerFunc ¶
type GetPetsIDsHandlerFunc func(ctx context.Context, r GetPetsIDsRequest) GetPetsIDsResponse
func (GetPetsIDsHandlerFunc) ServeHTTP ¶
func (f GetPetsIDsHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetPetsIDsParams ¶ added in v0.0.3
type GetPetsIDsParams struct { }
func (GetPetsIDsParams) HTTP ¶ added in v0.0.3
func (r GetPetsIDsParams) HTTP() *http.Request
func (GetPetsIDsParams) Parse ¶ added in v0.0.3
func (r GetPetsIDsParams) Parse() GetPetsIDsParams
type GetPetsIDsRequest ¶
type GetPetsIDsRequest interface { HTTP() *http.Request Parse() GetPetsIDsParams }
func GetPetsIDsHTTPRequest ¶ added in v0.0.2
func GetPetsIDsHTTPRequest(r *http.Request) GetPetsIDsRequest
type GetPetsIDsResponse ¶ added in v0.0.2
type GetPetsIDsResponse interface {
// contains filtered or unexported methods
}
func NewGetPetsIDsResponse200JSON ¶ added in v0.0.2
func NewGetPetsIDsResponse200JSON(body []float64) GetPetsIDsResponse
type GetPetsIDsResponse200JSON ¶
type GetPetsIDsResponse200JSON struct {
Body []float64
}
func (GetPetsIDsResponse200JSON) Write ¶ added in v0.0.2
func (r GetPetsIDsResponse200JSON) Write(w http.ResponseWriter)
type HTTPClient ¶ added in v0.0.2
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.