Versions in this module Expand all Collapse all v1 v1.9.2 Oct 22, 2019 v1.9.1 Oct 22, 2019 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 AddPetJSONRequestBody addPetJSONBody + type Client struct + Client *http.Client + Interceptors []Interceptor + RequestCompletion RequestCompletionFn + RequestEditor RequestEditorFn + Server string + func NewClient(ctx context.Context, opts ...Option) (*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) + func (c *Client) Intercept(req *http.Request, ctx context.Context) 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) + Intercept func(req *http.Request, ctx context.Context) error + type ClientWithResponses struct + func NewClientWithResponses(server string) *ClientWithResponses + func NewClientWithResponsesAndRequestEditorFunc(server string, reqEditorFn RequestEditorFn) *ClientWithResponses + 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 Interceptor interface + Intercept func(req *http.Request, ctx context.Context) error + type InterceptorFn func(req *http.Request, ctx context.Context) error + func (f InterceptorFn) Intercept(req *http.Request, ctx context.Context) error + type NewPet struct + Name string + Tag *string + type Option func(*Client) error + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithIdleTimeout(timeout time.Duration) Option + func WithInterceptors(interceptors ...Interceptor) Option + func WithMaxIdleConnections(maxIdleConns uint) Option + func WithRequestCompletionFn(fn RequestCompletionFn) Option + func WithRequestEditorFn(fn RequestEditorFn) Option + func WithRequestTimeout(timeout time.Duration) Option + func WithUserAgent(userAgent string) Option + type Pet struct + Id int64 + type RequestCompletionFn func(req *http.Request, resp *http.Response) + type RequestEditorFn func(req *http.Request, ctx context.Context) error