Versions in this module Expand all Collapse all v1 v1.9.4 Apr 9, 2022 v1.9.3 Apr 9, 2022 Changes in this version + func NewAddPetRequest(server string, body AddPetJSONRequestBody) (*http.Request, error) + func NewAddPetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewDeletePetRequest(server string, id int64) (*http.Request, error) + func NewFindPetByIDRequest(server string, id int64) (*http.Request, error) + func NewFindPetsRequest(server string, params *FindPetsParams) (*http.Request, error) + type AddPetJSONBody NewPet + type AddPetJSONRequestBody AddPetJSONBody + type AddPetResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Pet + JSONDefault *Error + func ParseAddPetResponse(rsp *http.Response) (*AddPetResponse, error) + func (r AddPetResponse) Status() string + func (r AddPetResponse) StatusCode() int + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) AddPet(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) AddPetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) DeletePet(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) FindPetByID(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) FindPets(ctx context.Context, params *FindPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientInterface interface + AddPet func(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + AddPetWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + DeletePet func(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + FindPetByID func(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error) + FindPets func(ctx context.Context, params *FindPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) AddPetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddPetResponse, error) + func (c *ClientWithResponses) AddPetWithResponse(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPetResponse, error) + func (c *ClientWithResponses) DeletePetWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*DeletePetResponse, error) + func (c *ClientWithResponses) FindPetByIDWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*FindPetByIDResponse, error) + func (c *ClientWithResponses) FindPetsWithResponse(ctx context.Context, params *FindPetsParams, reqEditors ...RequestEditorFn) (*FindPetsResponse, error) + type ClientWithResponsesInterface interface + AddPetWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*AddPetResponse, error) + AddPetWithResponse func(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPetResponse, error) + DeletePetWithResponse func(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*DeletePetResponse, error) + FindPetByIDWithResponse func(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*FindPetByIDResponse, error) + FindPetsWithResponse func(ctx context.Context, params *FindPetsParams, reqEditors ...RequestEditorFn) (*FindPetsResponse, error) + type DeletePetResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *Error + func ParseDeletePetResponse(rsp *http.Response) (*DeletePetResponse, error) + func (r DeletePetResponse) Status() string + func (r DeletePetResponse) StatusCode() int + type Error struct + Code int32 + Message string + type FindPetByIDResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Pet + JSONDefault *Error + func ParseFindPetByIDResponse(rsp *http.Response) (*FindPetByIDResponse, error) + func (r FindPetByIDResponse) Status() string + func (r FindPetByIDResponse) StatusCode() int + type FindPetsParams struct + Limit *int32 + Tags *[]string + type FindPetsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]Pet + JSONDefault *Error + func ParseFindPetsResponse(rsp *http.Response) (*FindPetsResponse, error) + func (r FindPetsResponse) Status() string + func (r FindPetsResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type NewPet struct + Name string + Tag *string + type Pet struct + Id int64 + type RequestEditorFn func(ctx context.Context, req *http.Request) error