Versions in this module Expand all Collapse all v1 v1.9.2 Mar 4, 2022 Changes in this version + const BearerAuthScopes + func GetSwagger() (swagger *openapi3.T, err error) + func NewAddThingRequest(server string, body AddThingJSONRequestBody) (*http.Request, error) + func NewAddThingRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewListThingsRequest(server string) (*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 AddThingJSONBody Thing + type AddThingJSONRequestBody AddThingJSONBody + type AddThingResponse struct + Body []byte + HTTPResponse *http.Response + JSON201 *[]ThingWithID + func ParseAddThingResponse(rsp *http.Response) (*AddThingResponse, error) + func (r AddThingResponse) Status() string + func (r AddThingResponse) StatusCode() int + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) AddThing(ctx context.Context, body AddThingJSONRequestBody, ...) (*http.Response, error) + func (c *Client) AddThingWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) ListThings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientInterface interface + AddThing func(ctx context.Context, body AddThingJSONRequestBody, ...) (*http.Response, error) + AddThingWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + ListThings func(ctx context.Context, 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) AddThingWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddThingResponse, error) + func (c *ClientWithResponses) AddThingWithResponse(ctx context.Context, body AddThingJSONRequestBody, ...) (*AddThingResponse, error) + func (c *ClientWithResponses) ListThingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListThingsResponse, error) + type ClientWithResponsesInterface interface + AddThingWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*AddThingResponse, error) + AddThingWithResponse func(ctx context.Context, body AddThingJSONRequestBody, ...) (*AddThingResponse, error) + ListThingsWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*ListThingsResponse, 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 HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type ListThingsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *[]ThingWithID + func ParseListThingsResponse(rsp *http.Response) (*ListThingsResponse, error) + func (r ListThingsResponse) Status() string + func (r ListThingsResponse) StatusCode() int + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type ServerInterface interface + AddThing func(ctx echo.Context) error + ListThings func(ctx echo.Context) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) AddThing(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ListThings(ctx echo.Context) error + type Thing struct + Name string + type ThingWithID struct + Id int64