Versions in this module Expand all Collapse all v1 v1.4.2 Jan 6, 2021 Changes in this version + func GetSwagger() (*openapi3.Swagger, error) + func NewGetBothRequest(server string) (*http.Request, error) + func NewGetJsonRequest(server string) (*http.Request, error) + func NewGetJsonWithTrailingSlashRequest(server string) (*http.Request, error) + func NewGetOtherRequest(server string) (*http.Request, error) + func NewPostBothRequest(server string, body PostBothJSONRequestBody) (*http.Request, error) + func NewPostBothRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewPostJsonRequest(server string, body PostJsonJSONRequestBody) (*http.Request, error) + func NewPostJsonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewPostOtherRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type Client struct + Client HttpRequestDoer + RequestEditor RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) GetBoth(ctx context.Context) (*http.Response, error) + func (c *Client) GetJson(ctx context.Context) (*http.Response, error) + func (c *Client) GetJsonWithTrailingSlash(ctx context.Context) (*http.Response, error) + func (c *Client) GetOther(ctx context.Context) (*http.Response, error) + func (c *Client) PostBoth(ctx context.Context, body PostBothJSONRequestBody) (*http.Response, error) + func (c *Client) PostBothWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + func (c *Client) PostJson(ctx context.Context, body PostJsonJSONRequestBody) (*http.Response, error) + func (c *Client) PostJsonWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + func (c *Client) PostOtherWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + type ClientInterface interface + GetBoth func(ctx context.Context) (*http.Response, error) + GetJson func(ctx context.Context) (*http.Response, error) + GetJsonWithTrailingSlash func(ctx context.Context) (*http.Response, error) + GetOther func(ctx context.Context) (*http.Response, error) + PostBoth func(ctx context.Context, body PostBothJSONRequestBody) (*http.Response, error) + PostBothWithBody func(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + PostJson func(ctx context.Context, body PostJsonJSONRequestBody) (*http.Response, error) + PostJsonWithBody func(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) + PostOtherWithBody 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) GetBothWithResponse(ctx context.Context) (*GetBothResponse, error) + func (c *ClientWithResponses) GetJsonWithResponse(ctx context.Context) (*GetJsonResponse, error) + func (c *ClientWithResponses) GetJsonWithTrailingSlashWithResponse(ctx context.Context) (*GetJsonWithTrailingSlashResponse, error) + func (c *ClientWithResponses) GetOtherWithResponse(ctx context.Context) (*GetOtherResponse, error) + func (c *ClientWithResponses) PostBothWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostBothResponse, error) + func (c *ClientWithResponses) PostBothWithResponse(ctx context.Context, body PostBothJSONRequestBody) (*PostBothResponse, error) + func (c *ClientWithResponses) PostJsonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostJsonResponse, error) + func (c *ClientWithResponses) PostJsonWithResponse(ctx context.Context, body PostJsonJSONRequestBody) (*PostJsonResponse, error) + func (c *ClientWithResponses) PostOtherWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostOtherResponse, error) + type ClientWithResponsesInterface interface + GetBothWithResponse func(ctx context.Context) (*GetBothResponse, error) + GetJsonWithResponse func(ctx context.Context) (*GetJsonResponse, error) + GetJsonWithTrailingSlashWithResponse func(ctx context.Context) (*GetJsonWithTrailingSlashResponse, error) + GetOtherWithResponse func(ctx context.Context) (*GetOtherResponse, error) + PostBothWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader) (*PostBothResponse, error) + PostBothWithResponse func(ctx context.Context, body PostBothJSONRequestBody) (*PostBothResponse, error) + PostJsonWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader) (*PostJsonResponse, error) + PostJsonWithResponse func(ctx context.Context, body PostJsonJSONRequestBody) (*PostJsonResponse, error) + PostOtherWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader) (*PostOtherResponse, 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 GetBothResponse struct + Body []byte + HTTPResponse *http.Response + func ParseGetBothResponse(rsp *http.Response) (*GetBothResponse, error) + func (r GetBothResponse) Status() string + func (r GetBothResponse) StatusCode() int + type GetJsonResponse struct + Body []byte + HTTPResponse *http.Response + func ParseGetJsonResponse(rsp *http.Response) (*GetJsonResponse, error) + func (r GetJsonResponse) Status() string + func (r GetJsonResponse) StatusCode() int + type GetJsonWithTrailingSlashResponse struct + Body []byte + HTTPResponse *http.Response + func ParseGetJsonWithTrailingSlashResponse(rsp *http.Response) (*GetJsonWithTrailingSlashResponse, error) + func (r GetJsonWithTrailingSlashResponse) Status() string + func (r GetJsonWithTrailingSlashResponse) StatusCode() int + type GetOtherResponse struct + Body []byte + HTTPResponse *http.Response + func ParseGetOtherResponse(rsp *http.Response) (*GetOtherResponse, error) + func (r GetOtherResponse) Status() string + func (r GetOtherResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type PostBothJSONBody SchemaObject + type PostBothJSONRequestBody PostBothJSONBody + type PostBothResponse struct + Body []byte + HTTPResponse *http.Response + func ParsePostBothResponse(rsp *http.Response) (*PostBothResponse, error) + func (r PostBothResponse) Status() string + func (r PostBothResponse) StatusCode() int + type PostJsonJSONBody SchemaObject + type PostJsonJSONRequestBody PostJsonJSONBody + type PostJsonResponse struct + Body []byte + HTTPResponse *http.Response + func ParsePostJsonResponse(rsp *http.Response) (*PostJsonResponse, error) + func (r PostJsonResponse) Status() string + func (r PostJsonResponse) StatusCode() int + type PostOtherResponse struct + Body []byte + HTTPResponse *http.Response + func ParsePostOtherResponse(rsp *http.Response) (*PostOtherResponse, error) + func (r PostOtherResponse) Status() string + func (r PostOtherResponse) StatusCode() int + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type SchemaObject struct + FirstName string + Role string + type ServerInterface interface + GetBoth func(ctx echo.Context) error + GetJson func(ctx echo.Context) error + GetJsonWithTrailingSlash func(ctx echo.Context) error + GetOther func(ctx echo.Context) error + PostBoth func(ctx echo.Context) error + PostJson func(ctx echo.Context) error + PostOther func(ctx echo.Context) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) GetBoth(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetJson(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetJsonWithTrailingSlash(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetOther(ctx echo.Context) error + func (w *ServerInterfaceWrapper) PostBoth(ctx echo.Context) error + func (w *ServerInterfaceWrapper) PostJson(ctx echo.Context) error + func (w *ServerInterfaceWrapper) PostOther(ctx echo.Context) error