Documentation ¶
Index ¶
Constants ¶
View Source
const SpecFile string = `` /* 204-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) GetPet ¶
func (c *Client) GetPet(ctx context.Context, request GetPetParams) (GetPetResponse, error)
GetPet GET /pet
type ErrParseParam ¶
func (ErrParseParam) Error ¶
func (e ErrParseParam) Error() string
func (ErrParseParam) Unwrap ¶
func (e ErrParseParam) Unwrap() error
type GetPetHandlerFunc ¶
type GetPetHandlerFunc func(ctx context.Context, r GetPetRequest) GetPetResponse
func (GetPetHandlerFunc) ServeHTTP ¶
func (f GetPetHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request)
type GetPetParams ¶
type GetPetParams struct { }
func (GetPetParams) HTTP ¶
func (r GetPetParams) HTTP() *http.Request
func (GetPetParams) Parse ¶
func (r GetPetParams) Parse() GetPetParams
type GetPetRequest ¶
type GetPetRequest interface { HTTP() *http.Request Parse() GetPetParams }
func GetPetHTTPRequest ¶
func GetPetHTTPRequest(r *http.Request) GetPetRequest
type GetPetResponse ¶
type GetPetResponse interface {
// contains filtered or unexported methods
}
func NewGetPetResponse200JSON ¶
func NewGetPetResponse200JSON(body json.RawMessage) GetPetResponse
type GetPetResponse200JSON ¶
type GetPetResponse200JSON struct {
Body json.RawMessage
}
func (GetPetResponse200JSON) Write ¶
func (r GetPetResponse200JSON) Write(w http.ResponseWriter)
type HTTPClientFunc ¶
Click to show internal directories.
Click to hide internal directories.