Versions in this module Expand all Collapse all v0 v0.0.1 Jul 30, 2024 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func NewGetPetRequest(server string, petId string) (*http.Request, error) + func NewValidatePetsRequest(server string, body ValidatePetsJSONRequestBody) (*http.Request, error) + func NewValidatePetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) GetPet(ctx context.Context, petId string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ValidatePets(ctx context.Context, body ValidatePetsJSONRequestBody, ...) (*http.Response, error) + func (c *Client) ValidatePetsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientInterface interface + GetPet func(ctx context.Context, petId string, reqEditors ...RequestEditorFn) (*http.Response, error) + ValidatePets func(ctx context.Context, body ValidatePetsJSONRequestBody, ...) (*http.Response, error) + ValidatePetsWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*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) GetPetWithResponse(ctx context.Context, petId string, reqEditors ...RequestEditorFn) (*GetPetResponse, error) + func (c *ClientWithResponses) ValidatePetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ValidatePetsResponse, error) + func (c *ClientWithResponses) ValidatePetsWithResponse(ctx context.Context, body ValidatePetsJSONRequestBody, ...) (*ValidatePetsResponse, error) + type ClientWithResponsesInterface interface + GetPetWithResponse func(ctx context.Context, petId string, reqEditors ...RequestEditorFn) (*GetPetResponse, error) + ValidatePetsWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*ValidatePetsResponse, error) + ValidatePetsWithResponse func(ctx context.Context, body ValidatePetsJSONRequestBody, ...) (*ValidatePetsResponse, error) + type EchoRouter interface + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type Error struct + Code int32 + Message string + type GetPetResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Pet + func ParseGetPetResponse(rsp *http.Response) (*GetPetResponse, error) + func (r GetPetResponse) Status() string + func (r GetPetResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type Pet struct + Name string + type PetNames struct + Names []string + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type ServerInterface interface + GetPet func(ctx echo.Context, petId string) error + ValidatePets func(ctx echo.Context) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) GetPet(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ValidatePets(ctx echo.Context) error + type ValidatePetsJSONRequestBody = PetNames + type ValidatePetsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]Pet + JSONDefault *Error + func ParseValidatePetsResponse(rsp *http.Response) (*ValidatePetsResponse, error) + func (r ValidatePetsResponse) Status() string + func (r ValidatePetsResponse) StatusCode() int