Versions in this module Expand all Collapse all v1 v1.3.4 Jan 2, 2020 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) + func ParseAddPetResponse(rsp *http.Response) (*addPetResponse, error) + func ParseDeletePetResponse(rsp *http.Response) (*deletePetResponse, error) + func ParseFindPetByIdResponse(rsp *http.Response) (*findPetByIdResponse, error) + func ParseFindPetsResponse(rsp *http.Response) (*findPetsResponse, error) + type AddPetJSONBody NewPet + type AddPetJSONRequestBody AddPetJSONBody + type Client struct + Client HttpRequestDoer + RequestEditor RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) AddPet(ctx context.Context, body AddPetJSONRequestBody) (*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) (*http.Response, error) + func (c *Client) FindPetById(ctx context.Context, id int64) (*http.Response, error) + func (c *Client) FindPets(ctx context.Context, params *FindPetsParams) (*http.Response, error) + type ClientInterface interface + AddPet func(ctx context.Context, body AddPetJSONRequestBody) (*http.Response, error) + AddPetWithBody func(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + DeletePet func(ctx context.Context, id int64) (*http.Response, error) + FindPetById func(ctx context.Context, id int64) (*http.Response, error) + FindPets func(ctx context.Context, params *FindPetsParams) (*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) (*addPetResponse, error) + func (c *ClientWithResponses) DeletePetWithResponse(ctx context.Context, id int64) (*deletePetResponse, error) + func (c *ClientWithResponses) FindPetByIdWithResponse(ctx context.Context, id int64) (*findPetByIdResponse, error) + func (c *ClientWithResponses) FindPetsWithResponse(ctx context.Context, params *FindPetsParams) (*findPetsResponse, error) + type Error struct + Code int32 + Message string + 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(req *http.Request, ctx context.Context) error