Versions in this module Expand all Collapse all v1 v1.6.0 Feb 15, 2021 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 AddPetClientResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Pet + JSONDefault *Error + func ParseAddPetClientResponse(rsp *http.Response) (*AddPetClientResponse, error) + func (r AddPetClientResponse) Status() string + func (r AddPetClientResponse) StatusCode() int + type AddPetJSONBody NewPet + type AddPetJSONRequestBody AddPetJSONBody + 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) (*AddPetClientResponse, error) + func (c *ClientWithResponses) AddPetWithResponse(ctx context.Context, body AddPetJSONRequestBody) (*AddPetClientResponse, error) + func (c *ClientWithResponses) DeletePetWithResponse(ctx context.Context, id int64) (*DeletePetClientResponse, error) + func (c *ClientWithResponses) FindPetByIdWithResponse(ctx context.Context, id int64) (*FindPetByIdClientResponse, error) + func (c *ClientWithResponses) FindPetsWithResponse(ctx context.Context, params *FindPetsParams) (*FindPetsClientResponse, error) + type ClientWithResponsesInterface interface + AddPetWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader) (*AddPetClientResponse, error) + AddPetWithResponse func(ctx context.Context, body AddPetJSONRequestBody) (*AddPetClientResponse, error) + DeletePetWithResponse func(ctx context.Context, id int64) (*DeletePetClientResponse, error) + FindPetByIdWithResponse func(ctx context.Context, id int64) (*FindPetByIdClientResponse, error) + FindPetsWithResponse func(ctx context.Context, params *FindPetsParams) (*FindPetsClientResponse, error) + type DeletePetClientResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *Error + func ParseDeletePetClientResponse(rsp *http.Response) (*DeletePetClientResponse, error) + func (r DeletePetClientResponse) Status() string + func (r DeletePetClientResponse) StatusCode() int + type Error struct + Code int32 + Message string + type FindPetByIdClientResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Pet + JSONDefault *Error + func ParseFindPetByIdClientResponse(rsp *http.Response) (*FindPetByIdClientResponse, error) + func (r FindPetByIdClientResponse) Status() string + func (r FindPetByIdClientResponse) StatusCode() int + type FindPetsClientResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]Pet + JSONDefault *Error + func ParseFindPetsClientResponse(rsp *http.Response) (*FindPetsClientResponse, error) + func (r FindPetsClientResponse) Status() string + func (r FindPetsClientResponse) StatusCode() int + type FindPetsParams struct + Limit *int32 + Tags *[]string + 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