Documentation ¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.9.1 DO NOT EDIT.
Package api contains the REST interfaces.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewCommentsRequest(server string, projectId string, issueId string, params *CommentsParams) (*http.Request, error)
- func NewCustomersRequest(server string, params *CustomersParams) (*http.Request, error)
- func NewGetCustomerRequest(server string, id string) (*http.Request, error)
- func NewGetIssueRequest(server string, projectId string, id string) (*http.Request, error)
- func NewGetProjectRequest(server string, id string) (*http.Request, error)
- func NewGetUserRequest(server string, id string) (*http.Request, error)
- func NewIssuesRequest(server string, projectId string, params *IssuesParams) (*http.Request, error)
- func NewNewCommentRequest(server string, projectId string, issueId string, ...) (*http.Request, error)
- func NewNewCommentRequestWithBody(server string, projectId string, issueId string, contentType string, ...) (*http.Request, error)
- func NewNewCustomerRequest(server string, body NewCustomerJSONRequestBody) (*http.Request, error)
- func NewNewCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewNewIssueRequest(server string, projectId string, body NewIssueJSONRequestBody) (*http.Request, error)
- func NewNewIssueRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
- func NewNewProjectRequest(server string, body NewProjectJSONRequestBody) (*http.Request, error)
- func NewNewProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewProjectsRequest(server string, params *ProjectsParams) (*http.Request, error)
- func NewUpdateCommentRequest(server string, projectId string, issueId string, id string) (*http.Request, error)
- func NewUpdateCustomerRequest(server string, id string, body UpdateCustomerJSONRequestBody) (*http.Request, error)
- func NewUpdateCustomerRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateIssueRequest(server string, projectId string, id string) (*http.Request, error)
- func NewUpdateProjectRequest(server string, id string, body UpdateProjectJSONRequestBody) (*http.Request, error)
- func NewUpdateProjectRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewUsersRequest(server string, params *UsersParams) (*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
- func (c *Client) Comments(ctx context.Context, projectId string, issueId string, params *CommentsParams, ...) (*http.Response, error)
- func (c *Client) Customers(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCustomer(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIssue(ctx context.Context, projectId string, id string, ...) (*http.Response, error)
- func (c *Client) GetProject(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Issues(ctx context.Context, projectId string, params *IssuesParams, ...) (*http.Response, error)
- func (c *Client) NewComment(ctx context.Context, projectId string, issueId string, ...) (*http.Response, error)
- func (c *Client) NewCommentWithBody(ctx context.Context, projectId string, issueId string, contentType string, ...) (*http.Response, error)
- func (c *Client) NewCustomer(ctx context.Context, body NewCustomerJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) NewCustomerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) NewIssue(ctx context.Context, projectId string, body NewIssueJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) NewIssueWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) NewProject(ctx context.Context, body NewProjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) NewProjectWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Projects(ctx context.Context, params *ProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateComment(ctx context.Context, projectId string, issueId string, id string, ...) (*http.Response, error)
- func (c *Client) UpdateCustomer(ctx context.Context, id string, body UpdateCustomerJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateCustomerWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateIssue(ctx context.Context, projectId string, id string, ...) (*http.Response, error)
- func (c *Client) UpdateProject(ctx context.Context, id string, body UpdateProjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateProjectWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Users(ctx context.Context, params *UsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CommentsWithResponse(ctx context.Context, projectId string, issueId string, params *CommentsParams, ...) (*CommentsResponse, error)
- func (c *ClientWithResponses) CustomersWithResponse(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*CustomersResponse, error)
- func (c *ClientWithResponses) GetCustomerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error)
- func (c *ClientWithResponses) GetIssueWithResponse(ctx context.Context, projectId string, id string, ...) (*GetIssueResponse, error)
- func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) IssuesWithResponse(ctx context.Context, projectId string, params *IssuesParams, ...) (*IssuesResponse, error)
- func (c *ClientWithResponses) NewCommentWithBodyWithResponse(ctx context.Context, projectId string, issueId string, contentType string, ...) (*NewCommentResponse, error)
- func (c *ClientWithResponses) NewCommentWithResponse(ctx context.Context, projectId string, issueId string, ...) (*NewCommentResponse, error)
- func (c *ClientWithResponses) NewCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*NewCustomerResponse, error)
- func (c *ClientWithResponses) NewCustomerWithResponse(ctx context.Context, body NewCustomerJSONRequestBody, ...) (*NewCustomerResponse, error)
- func (c *ClientWithResponses) NewIssueWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, ...) (*NewIssueResponse, error)
- func (c *ClientWithResponses) NewIssueWithResponse(ctx context.Context, projectId string, body NewIssueJSONRequestBody, ...) (*NewIssueResponse, error)
- func (c *ClientWithResponses) NewProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*NewProjectResponse, error)
- func (c *ClientWithResponses) NewProjectWithResponse(ctx context.Context, body NewProjectJSONRequestBody, ...) (*NewProjectResponse, error)
- func (c *ClientWithResponses) ProjectsWithResponse(ctx context.Context, params *ProjectsParams, reqEditors ...RequestEditorFn) (*ProjectsResponse, error)
- func (c *ClientWithResponses) UpdateCommentWithResponse(ctx context.Context, projectId string, issueId string, id string, ...) (*UpdateCommentResponse, error)
- func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateCustomerResponse, error)
- func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, id string, body UpdateCustomerJSONRequestBody, ...) (*UpdateCustomerResponse, error)
- func (c *ClientWithResponses) UpdateIssueWithResponse(ctx context.Context, projectId string, id string, ...) (*UpdateIssueResponse, error)
- func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateProjectResponse, error)
- func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, id string, body UpdateProjectJSONRequestBody, ...) (*UpdateProjectResponse, error)
- func (c *ClientWithResponses) UsersWithResponse(ctx context.Context, params *UsersParams, reqEditors ...RequestEditorFn) (*UsersResponse, error)
- type ClientWithResponsesInterface
- type Comment
- type CommentsPage
- type CommentsParams
- type CommentsResponse
- type Customer
- type CustomersPage
- type CustomersParams
- type CustomersResponse
- type EchoRouter
- type GetCustomerResponse
- type GetIssueResponse
- type GetProjectResponse
- type GetUserResponse
- type HttpRequestDoer
- type Issue
- type IssuesPage
- type IssuesParams
- type IssuesResponse
- type Limit
- type NewComment
- type NewCommentJSONBody
- type NewCommentJSONRequestBody
- type NewCommentResponse
- type NewCustomer
- type NewCustomerJSONBody
- type NewCustomerJSONRequestBody
- type NewCustomerResponse
- type NewIssue
- type NewIssueJSONBody
- type NewIssueJSONRequestBody
- type NewIssueResponse
- type NewProject
- type NewProjectJSONBody
- type NewProjectJSONRequestBody
- type NewProjectResponse
- type Offset
- type Project
- type ProjectsPage
- type ProjectsParams
- type ProjectsResponse
- type Q
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) Comments(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Customers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCustomer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetIssue(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetProject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetUser(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Issues(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) NewComment(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) NewCustomer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) NewIssue(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) NewProject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Projects(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateComment(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateCustomer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateIssue(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateProject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) Users(ctx echo.Context) error
- type UpdateCommentResponse
- type UpdateCustomerJSONBody
- type UpdateCustomerJSONRequestBody
- type UpdateCustomerResponse
- type UpdateIssueResponse
- type UpdateProjectJSONBody
- type UpdateProjectJSONRequestBody
- type UpdateProjectResponse
- type UpdatedComment
- type UpdatedCustomer
- type UpdatedIssue
- type UpdatedProject
- type User
- type UsersPage
- type UsersParams
- type UsersResponse
Constants ¶
const (
OpenIdScopes = "OpenId.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewCommentsRequest ¶
func NewCommentsRequest(server string, projectId string, issueId string, params *CommentsParams) (*http.Request, error)
NewCommentsRequest generates requests for Comments
func NewCustomersRequest ¶
func NewCustomersRequest(server string, params *CustomersParams) (*http.Request, error)
NewCustomersRequest generates requests for Customers
func NewGetCustomerRequest ¶
NewGetCustomerRequest generates requests for GetCustomer
func NewGetIssueRequest ¶
NewGetIssueRequest generates requests for GetIssue
func NewGetProjectRequest ¶
NewGetProjectRequest generates requests for GetProject
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewIssuesRequest ¶
NewIssuesRequest generates requests for Issues
func NewNewCommentRequest ¶
func NewNewCommentRequest(server string, projectId string, issueId string, body NewCommentJSONRequestBody) (*http.Request, error)
NewNewCommentRequest calls the generic NewComment builder with application/json body
func NewNewCommentRequestWithBody ¶
func NewNewCommentRequestWithBody(server string, projectId string, issueId string, contentType string, body io.Reader) (*http.Request, error)
NewNewCommentRequestWithBody generates requests for NewComment with any type of body
func NewNewCustomerRequest ¶
func NewNewCustomerRequest(server string, body NewCustomerJSONRequestBody) (*http.Request, error)
NewNewCustomerRequest calls the generic NewCustomer builder with application/json body
func NewNewCustomerRequestWithBody ¶
func NewNewCustomerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewNewCustomerRequestWithBody generates requests for NewCustomer with any type of body
func NewNewIssueRequest ¶
func NewNewIssueRequest(server string, projectId string, body NewIssueJSONRequestBody) (*http.Request, error)
NewNewIssueRequest calls the generic NewIssue builder with application/json body
func NewNewIssueRequestWithBody ¶
func NewNewIssueRequestWithBody(server string, projectId string, contentType string, body io.Reader) (*http.Request, error)
NewNewIssueRequestWithBody generates requests for NewIssue with any type of body
func NewNewProjectRequest ¶
func NewNewProjectRequest(server string, body NewProjectJSONRequestBody) (*http.Request, error)
NewNewProjectRequest calls the generic NewProject builder with application/json body
func NewNewProjectRequestWithBody ¶
func NewNewProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewNewProjectRequestWithBody generates requests for NewProject with any type of body
func NewProjectsRequest ¶
func NewProjectsRequest(server string, params *ProjectsParams) (*http.Request, error)
NewProjectsRequest generates requests for Projects
func NewUpdateCommentRequest ¶
func NewUpdateCommentRequest(server string, projectId string, issueId string, id string) (*http.Request, error)
NewUpdateCommentRequest generates requests for UpdateComment
func NewUpdateCustomerRequest ¶
func NewUpdateCustomerRequest(server string, id string, body UpdateCustomerJSONRequestBody) (*http.Request, error)
NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body
func NewUpdateCustomerRequestWithBody ¶
func NewUpdateCustomerRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body
func NewUpdateIssueRequest ¶
NewUpdateIssueRequest generates requests for UpdateIssue
func NewUpdateProjectRequest ¶
func NewUpdateProjectRequest(server string, id string, body UpdateProjectJSONRequestBody) (*http.Request, error)
NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body
func NewUpdateProjectRequestWithBody ¶
func NewUpdateProjectRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body
func NewUsersRequest ¶
func NewUsersRequest(server string, params *UsersParams) (*http.Request, error)
NewUsersRequest generates requests for Users
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) Comments ¶
func (c *Client) Comments(ctx context.Context, projectId string, issueId string, params *CommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) Customers ¶
func (c *Client) Customers(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomer ¶
func (*Client) GetProject ¶
func (*Client) Issues ¶
func (c *Client) Issues(ctx context.Context, projectId string, params *IssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) NewComment ¶
func (c *Client) NewComment(ctx context.Context, projectId string, issueId string, body NewCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) NewCommentWithBody ¶
func (*Client) NewCustomer ¶
func (c *Client) NewCustomer(ctx context.Context, body NewCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) NewCustomerWithBody ¶
func (*Client) NewIssue ¶
func (c *Client) NewIssue(ctx context.Context, projectId string, body NewIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) NewIssueWithBody ¶
func (*Client) NewProject ¶
func (c *Client) NewProject(ctx context.Context, body NewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) NewProjectWithBody ¶
func (*Client) Projects ¶
func (c *Client) Projects(ctx context.Context, params *ProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateComment ¶
func (*Client) UpdateCustomer ¶
func (c *Client) UpdateCustomer(ctx context.Context, id string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCustomerWithBody ¶
func (*Client) UpdateIssue ¶
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(ctx context.Context, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateProjectWithBody ¶
func (*Client) Users ¶
func (c *Client) Users(ctx context.Context, params *UsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // Customers request Customers(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // NewCustomer request with any body NewCustomerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) NewCustomer(ctx context.Context, body NewCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetCustomer request GetCustomer(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateCustomer request with any body UpdateCustomerWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateCustomer(ctx context.Context, id string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // Projects request Projects(ctx context.Context, params *ProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // NewProject request with any body NewProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) NewProject(ctx context.Context, body NewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProject request GetProject(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateProject request with any body UpdateProjectWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateProject(ctx context.Context, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // Issues request Issues(ctx context.Context, projectId string, params *IssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // NewIssue request with any body NewIssueWithBody(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) NewIssue(ctx context.Context, projectId string, body NewIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetIssue request GetIssue(ctx context.Context, projectId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateIssue request UpdateIssue(ctx context.Context, projectId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // Comments request Comments(ctx context.Context, projectId string, issueId string, params *CommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // NewComment request with any body NewCommentWithBody(ctx context.Context, projectId string, issueId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) NewComment(ctx context.Context, projectId string, issueId string, body NewCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateComment request UpdateComment(ctx context.Context, projectId string, issueId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) // Users request Users(ctx context.Context, params *UsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) // GetUser request GetUser(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CommentsWithResponse ¶
func (c *ClientWithResponses) CommentsWithResponse(ctx context.Context, projectId string, issueId string, params *CommentsParams, reqEditors ...RequestEditorFn) (*CommentsResponse, error)
CommentsWithResponse request returning *CommentsResponse
func (*ClientWithResponses) CustomersWithResponse ¶
func (c *ClientWithResponses) CustomersWithResponse(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*CustomersResponse, error)
CustomersWithResponse request returning *CustomersResponse
func (*ClientWithResponses) GetCustomerWithResponse ¶
func (c *ClientWithResponses) GetCustomerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error)
GetCustomerWithResponse request returning *GetCustomerResponse
func (*ClientWithResponses) GetIssueWithResponse ¶
func (c *ClientWithResponses) GetIssueWithResponse(ctx context.Context, projectId string, id string, reqEditors ...RequestEditorFn) (*GetIssueResponse, error)
GetIssueWithResponse request returning *GetIssueResponse
func (*ClientWithResponses) GetProjectWithResponse ¶
func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
GetProjectWithResponse request returning *GetProjectResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) IssuesWithResponse ¶
func (c *ClientWithResponses) IssuesWithResponse(ctx context.Context, projectId string, params *IssuesParams, reqEditors ...RequestEditorFn) (*IssuesResponse, error)
IssuesWithResponse request returning *IssuesResponse
func (*ClientWithResponses) NewCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) NewCommentWithBodyWithResponse(ctx context.Context, projectId string, issueId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewCommentResponse, error)
NewCommentWithBodyWithResponse request with arbitrary body returning *NewCommentResponse
func (*ClientWithResponses) NewCommentWithResponse ¶
func (c *ClientWithResponses) NewCommentWithResponse(ctx context.Context, projectId string, issueId string, body NewCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*NewCommentResponse, error)
func (*ClientWithResponses) NewCustomerWithBodyWithResponse ¶
func (c *ClientWithResponses) NewCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewCustomerResponse, error)
NewCustomerWithBodyWithResponse request with arbitrary body returning *NewCustomerResponse
func (*ClientWithResponses) NewCustomerWithResponse ¶
func (c *ClientWithResponses) NewCustomerWithResponse(ctx context.Context, body NewCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*NewCustomerResponse, error)
func (*ClientWithResponses) NewIssueWithBodyWithResponse ¶
func (c *ClientWithResponses) NewIssueWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewIssueResponse, error)
NewIssueWithBodyWithResponse request with arbitrary body returning *NewIssueResponse
func (*ClientWithResponses) NewIssueWithResponse ¶
func (c *ClientWithResponses) NewIssueWithResponse(ctx context.Context, projectId string, body NewIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*NewIssueResponse, error)
func (*ClientWithResponses) NewProjectWithBodyWithResponse ¶
func (c *ClientWithResponses) NewProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewProjectResponse, error)
NewProjectWithBodyWithResponse request with arbitrary body returning *NewProjectResponse
func (*ClientWithResponses) NewProjectWithResponse ¶
func (c *ClientWithResponses) NewProjectWithResponse(ctx context.Context, body NewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*NewProjectResponse, error)
func (*ClientWithResponses) ProjectsWithResponse ¶
func (c *ClientWithResponses) ProjectsWithResponse(ctx context.Context, params *ProjectsParams, reqEditors ...RequestEditorFn) (*ProjectsResponse, error)
ProjectsWithResponse request returning *ProjectsResponse
func (*ClientWithResponses) UpdateCommentWithResponse ¶
func (c *ClientWithResponses) UpdateCommentWithResponse(ctx context.Context, projectId string, issueId string, id string, reqEditors ...RequestEditorFn) (*UpdateCommentResponse, error)
UpdateCommentWithResponse request returning *UpdateCommentResponse
func (*ClientWithResponses) UpdateCustomerWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse
func (*ClientWithResponses) UpdateCustomerWithResponse ¶
func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, id string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
func (*ClientWithResponses) UpdateIssueWithResponse ¶
func (c *ClientWithResponses) UpdateIssueWithResponse(ctx context.Context, projectId string, id string, reqEditors ...RequestEditorFn) (*UpdateIssueResponse, error)
UpdateIssueWithResponse request returning *UpdateIssueResponse
func (*ClientWithResponses) UpdateProjectWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)
UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse
func (*ClientWithResponses) UpdateProjectWithResponse ¶
func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)
func (*ClientWithResponses) UsersWithResponse ¶
func (c *ClientWithResponses) UsersWithResponse(ctx context.Context, params *UsersParams, reqEditors ...RequestEditorFn) (*UsersResponse, error)
UsersWithResponse request returning *UsersResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // Customers request CustomersWithResponse(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*CustomersResponse, error) // NewCustomer request with any body NewCustomerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewCustomerResponse, error) NewCustomerWithResponse(ctx context.Context, body NewCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*NewCustomerResponse, error) // GetCustomer request GetCustomerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error) // UpdateCustomer request with any body UpdateCustomerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) UpdateCustomerWithResponse(ctx context.Context, id string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) // Projects request ProjectsWithResponse(ctx context.Context, params *ProjectsParams, reqEditors ...RequestEditorFn) (*ProjectsResponse, error) // NewProject request with any body NewProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewProjectResponse, error) NewProjectWithResponse(ctx context.Context, body NewProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*NewProjectResponse, error) // GetProject request GetProjectWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) // UpdateProject request with any body UpdateProjectWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) UpdateProjectWithResponse(ctx context.Context, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) // Issues request IssuesWithResponse(ctx context.Context, projectId string, params *IssuesParams, reqEditors ...RequestEditorFn) (*IssuesResponse, error) // NewIssue request with any body NewIssueWithBodyWithResponse(ctx context.Context, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewIssueResponse, error) NewIssueWithResponse(ctx context.Context, projectId string, body NewIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*NewIssueResponse, error) // GetIssue request GetIssueWithResponse(ctx context.Context, projectId string, id string, reqEditors ...RequestEditorFn) (*GetIssueResponse, error) // UpdateIssue request UpdateIssueWithResponse(ctx context.Context, projectId string, id string, reqEditors ...RequestEditorFn) (*UpdateIssueResponse, error) // Comments request CommentsWithResponse(ctx context.Context, projectId string, issueId string, params *CommentsParams, reqEditors ...RequestEditorFn) (*CommentsResponse, error) // NewComment request with any body NewCommentWithBodyWithResponse(ctx context.Context, projectId string, issueId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*NewCommentResponse, error) NewCommentWithResponse(ctx context.Context, projectId string, issueId string, body NewCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*NewCommentResponse, error) // UpdateComment request UpdateCommentWithResponse(ctx context.Context, projectId string, issueId string, id string, reqEditors ...RequestEditorFn) (*UpdateCommentResponse, error) // Users request UsersWithResponse(ctx context.Context, params *UsersParams, reqEditors ...RequestEditorFn) (*UsersResponse, error) // GetUser request GetUserWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Comment ¶
type Comment struct { // User response. Author User `json:"author"` // The content associated with the Comment. Content string `json:"content"` // The timestamp the Comment was created. CreatedAt time.Time `json:"created_at"` // Comment identifier. Id string `json:"id"` // The timestamp the Comment was last updated. UpdatedAt time.Time `json:"updated_at"` }
Comment response.
type CommentsPage ¶
type CommentsPage struct {
Comments []Comment `json:"comments"`
}
Comments page response.
type CommentsParams ¶
type CommentsParams struct { // Used to query by name in a list operation. Q *Q `json:"q,omitempty"` // Used to request the next page in a list operation. Offset *Offset `json:"offset,omitempty"` // Used to specify the maximum number of records which are returned in the next page. Limit *Limit `json:"limit,omitempty"` }
CommentsParams defines parameters for Comments.
type CommentsResponse ¶
type CommentsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]CommentsPage }
func ParseCommentsResponse ¶
func ParseCommentsResponse(rsp *http.Response) (*CommentsResponse, error)
ParseCommentsResponse parses an HTTP response from a CommentsWithResponse call
func (CommentsResponse) Status ¶
func (r CommentsResponse) Status() string
Status returns HTTPResponse.Status
func (CommentsResponse) StatusCode ¶
func (r CommentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Customer ¶
type Customer struct { // The timestamp the customer was created CreatedAt time.Time `json:"created_at"` // A description of the customer, with some background. Description *string `json:"description,omitempty"` // Customer identifier. Id string `json:"id"` // Labels assigned to an entity. Labels []string `json:"labels"` // The name of the customer. Name string `json:"name"` // The timestamp the customer was last updated UpdatedAt time.Time `json:"updated_at"` }
Customer response.
type CustomersPage ¶
type CustomersPage struct {
Customers []Customer `json:"customers"`
}
Customer page response.
type CustomersParams ¶
type CustomersParams struct { // Used to query by name in a list operation. Q *Q `json:"q,omitempty"` // Used to request the next page in a list operation. Offset *Offset `json:"offset,omitempty"` // Used to specify the maximum number of records which are returned in the next page. Limit *Limit `json:"limit,omitempty"` }
CustomersParams defines parameters for Customers.
type CustomersResponse ¶
type CustomersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *CustomersPage }
func ParseCustomersResponse ¶
func ParseCustomersResponse(rsp *http.Response) (*CustomersResponse, error)
ParseCustomersResponse parses an HTTP response from a CustomersWithResponse call
func (CustomersResponse) Status ¶
func (r CustomersResponse) Status() string
Status returns HTTPResponse.Status
func (CustomersResponse) StatusCode ¶
func (r CustomersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GetCustomerResponse ¶
func ParseGetCustomerResponse ¶
func ParseGetCustomerResponse(rsp *http.Response) (*GetCustomerResponse, error)
ParseGetCustomerResponse parses an HTTP response from a GetCustomerWithResponse call
func (GetCustomerResponse) Status ¶
func (r GetCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomerResponse) StatusCode ¶
func (r GetCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIssueResponse ¶
func ParseGetIssueResponse ¶
func ParseGetIssueResponse(rsp *http.Response) (*GetIssueResponse, error)
ParseGetIssueResponse parses an HTTP response from a GetIssueWithResponse call
func (GetIssueResponse) Status ¶
func (r GetIssueResponse) Status() string
Status returns HTTPResponse.Status
func (GetIssueResponse) StatusCode ¶
func (r GetIssueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectResponse ¶
func ParseGetProjectResponse ¶
func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)
ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call
func (GetProjectResponse) Status ¶
func (r GetProjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectResponse) StatusCode ¶
func (r GetProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserResponse ¶
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Issue ¶
type Issue struct { // User response. Assignee *User `json:"assignee,omitempty"` // The category of the Issue. Category string `json:"category"` // Comments page response. Comments *CommentsPage `json:"comments,omitempty"` // The content associated with the Issue, any background, or details required to help resolve it. Content *string `json:"content,omitempty"` // The timestamp the Issue was created CreatedAt time.Time `json:"created_at"` // Issue identifier. Id string `json:"id"` // Labels assigned to an entity. Labels []string `json:"labels"` // User response. Reporter *User `json:"reporter,omitempty"` // The severity of the Issue. Severity string `json:"severity"` // The state of the Issue. State string `json:"state"` // A subject of the Issue. Subject string `json:"subject"` // The timestamp the Issue was last updated UpdatedAt time.Time `json:"updated_at"` }
Issue response.
type IssuesParams ¶
type IssuesParams struct { // Used to query by name in a list operation. Q *Q `json:"q,omitempty"` // Used to request the next page in a list operation. Offset *Offset `json:"offset,omitempty"` // Used to specify the maximum number of records which are returned in the next page. Limit *Limit `json:"limit,omitempty"` }
IssuesParams defines parameters for Issues.
type IssuesResponse ¶
type IssuesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *IssuesPage }
func ParseIssuesResponse ¶
func ParseIssuesResponse(rsp *http.Response) (*IssuesResponse, error)
ParseIssuesResponse parses an HTTP response from a IssuesWithResponse call
func (IssuesResponse) Status ¶
func (r IssuesResponse) Status() string
Status returns HTTPResponse.Status
func (IssuesResponse) StatusCode ¶
func (r IssuesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NewComment ¶
type NewComment struct { // The content associated with the comment. Content string `json:"content"` }
New Comment request.
type NewCommentJSONBody ¶
type NewCommentJSONBody NewComment
NewCommentJSONBody defines parameters for NewComment.
type NewCommentJSONRequestBody ¶
type NewCommentJSONRequestBody NewCommentJSONBody
NewCommentJSONRequestBody defines body for NewComment for application/json ContentType.
type NewCommentResponse ¶
func ParseNewCommentResponse ¶
func ParseNewCommentResponse(rsp *http.Response) (*NewCommentResponse, error)
ParseNewCommentResponse parses an HTTP response from a NewCommentWithResponse call
func (NewCommentResponse) Status ¶
func (r NewCommentResponse) Status() string
Status returns HTTPResponse.Status
func (NewCommentResponse) StatusCode ¶
func (r NewCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NewCustomer ¶
type NewCustomer struct { // A description of the customer, with some background. Description *string `json:"description,omitempty"` // Labels assigned to an entity. Labels []string `json:"labels"` // The name of the customer. Name string `json:"name"` }
New Customer request.
type NewCustomerJSONBody ¶
type NewCustomerJSONBody NewCustomer
NewCustomerJSONBody defines parameters for NewCustomer.
type NewCustomerJSONRequestBody ¶
type NewCustomerJSONRequestBody NewCustomerJSONBody
NewCustomerJSONRequestBody defines body for NewCustomer for application/json ContentType.
type NewCustomerResponse ¶
func ParseNewCustomerResponse ¶
func ParseNewCustomerResponse(rsp *http.Response) (*NewCustomerResponse, error)
ParseNewCustomerResponse parses an HTTP response from a NewCustomerWithResponse call
func (NewCustomerResponse) Status ¶
func (r NewCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (NewCustomerResponse) StatusCode ¶
func (r NewCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NewIssue ¶
type NewIssue struct { // A category of the Issue. Category string `json:"category"` // The content associated with the issue, any background, or details required to help resolve it. Content string `json:"content"` // Labels assigned to an entity. Labels []string `json:"labels"` // A severity of the Issue. Severity string `json:"severity"` // A subject of the issue Subject string `json:"subject"` }
New issue request.
type NewIssueJSONBody ¶
type NewIssueJSONBody NewIssue
NewIssueJSONBody defines parameters for NewIssue.
type NewIssueJSONRequestBody ¶
type NewIssueJSONRequestBody NewIssueJSONBody
NewIssueJSONRequestBody defines body for NewIssue for application/json ContentType.
type NewIssueResponse ¶
func ParseNewIssueResponse ¶
func ParseNewIssueResponse(rsp *http.Response) (*NewIssueResponse, error)
ParseNewIssueResponse parses an HTTP response from a NewIssueWithResponse call
func (NewIssueResponse) Status ¶
func (r NewIssueResponse) Status() string
Status returns HTTPResponse.Status
func (NewIssueResponse) StatusCode ¶
func (r NewIssueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NewProject ¶
type NewProject struct { // A description of the project, with some background. Description *string `json:"description,omitempty"` // Labels assigned to an entity. Labels []string `json:"labels"` // The name of the project. Name string `json:"name"` }
New Project request.
type NewProjectJSONBody ¶
type NewProjectJSONBody NewProject
NewProjectJSONBody defines parameters for NewProject.
type NewProjectJSONRequestBody ¶
type NewProjectJSONRequestBody NewProjectJSONBody
NewProjectJSONRequestBody defines body for NewProject for application/json ContentType.
type NewProjectResponse ¶
func ParseNewProjectResponse ¶
func ParseNewProjectResponse(rsp *http.Response) (*NewProjectResponse, error)
ParseNewProjectResponse parses an HTTP response from a NewProjectWithResponse call
func (NewProjectResponse) Status ¶
func (r NewProjectResponse) Status() string
Status returns HTTPResponse.Status
func (NewProjectResponse) StatusCode ¶
func (r NewProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Project ¶
type Project struct { // The timestamp the Project was created CreatedAt time.Time `json:"created_at"` // A description of the project, with some background. Description *string `json:"description,omitempty"` // Project identifier. Id string `json:"id"` // Labels assigned to an entity. Labels []string `json:"labels"` // The name of the Project. Name string `json:"name"` // The timestamp the Project was last updated UpdatedAt time.Time `json:"updated_at"` }
Project response.
type ProjectsPage ¶
type ProjectsPage struct {
Projects []Project `json:"projects"`
}
Project page response.
type ProjectsParams ¶
type ProjectsParams struct { // Used to query by name in a list operation. Q *Q `json:"q,omitempty"` // Used to request the next page in a list operation. Offset *Offset `json:"offset,omitempty"` // Used to specify the maximum number of records which are returned in the next page. Limit *Limit `json:"limit,omitempty"` }
ProjectsParams defines parameters for Projects.
type ProjectsResponse ¶
type ProjectsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ProjectsPage }
func ParseProjectsResponse ¶
func ParseProjectsResponse(rsp *http.Response) (*ProjectsResponse, error)
ParseProjectsResponse parses an HTTP response from a ProjectsWithResponse call
func (ProjectsResponse) Status ¶
func (r ProjectsResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectsResponse) StatusCode ¶
func (r ProjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface { // Get a list of customers. // (GET /customers) Customers(ctx echo.Context, params CustomersParams) error // Create a customer. // (POST /customers) NewCustomer(ctx echo.Context) error // (GET /customers/{id}) GetCustomer(ctx echo.Context, id string) error // Update a customer. // (PUT /customers/{id}) UpdateCustomer(ctx echo.Context, id string) error // Get a list of projects. // (GET /projects) Projects(ctx echo.Context, params ProjectsParams) error // Create a project. // (POST /projects) NewProject(ctx echo.Context) error // Get a project. // (GET /projects/{id}) GetProject(ctx echo.Context, id string) error // Update a project. // (PUT /projects/{id}) UpdateProject(ctx echo.Context, id string) error // Get a list of issues. // (GET /projects/{project_id}/issues) Issues(ctx echo.Context, projectId string, params IssuesParams) error // Create a issue. // (POST /projects/{project_id}/issues) NewIssue(ctx echo.Context, projectId string) error // (GET /projects/{project_id}/issues/{id}) GetIssue(ctx echo.Context, projectId string, id string) error // (PUT /projects/{project_id}/issues/{id}) UpdateIssue(ctx echo.Context, projectId string, id string) error // Get a list of Comments. // (GET /projects/{project_id}/issues/{issue_id}/comments) Comments(ctx echo.Context, projectId string, issueId string, params CommentsParams) error // Create a comment on a issue. // (POST /projects/{project_id}/issues/{issue_id}/comments) NewComment(ctx echo.Context, projectId string, issueId string) error // (PUT /projects/{project_id}/issues/{issue_id}/comments/{id}) UpdateComment(ctx echo.Context, projectId string, issueId string, id string) error // Get a list of users. // (GET /users) Users(ctx echo.Context, params UsersParams) error // (GET /users/{id}) GetUser(ctx echo.Context, id string) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) Comments ¶
func (w *ServerInterfaceWrapper) Comments(ctx echo.Context) error
Comments converts echo context to params.
func (*ServerInterfaceWrapper) Customers ¶
func (w *ServerInterfaceWrapper) Customers(ctx echo.Context) error
Customers converts echo context to params.
func (*ServerInterfaceWrapper) GetCustomer ¶
func (w *ServerInterfaceWrapper) GetCustomer(ctx echo.Context) error
GetCustomer converts echo context to params.
func (*ServerInterfaceWrapper) GetIssue ¶
func (w *ServerInterfaceWrapper) GetIssue(ctx echo.Context) error
GetIssue converts echo context to params.
func (*ServerInterfaceWrapper) GetProject ¶
func (w *ServerInterfaceWrapper) GetProject(ctx echo.Context) error
GetProject converts echo context to params.
func (*ServerInterfaceWrapper) GetUser ¶
func (w *ServerInterfaceWrapper) GetUser(ctx echo.Context) error
GetUser converts echo context to params.
func (*ServerInterfaceWrapper) Issues ¶
func (w *ServerInterfaceWrapper) Issues(ctx echo.Context) error
Issues converts echo context to params.
func (*ServerInterfaceWrapper) NewComment ¶
func (w *ServerInterfaceWrapper) NewComment(ctx echo.Context) error
NewComment converts echo context to params.
func (*ServerInterfaceWrapper) NewCustomer ¶
func (w *ServerInterfaceWrapper) NewCustomer(ctx echo.Context) error
NewCustomer converts echo context to params.
func (*ServerInterfaceWrapper) NewIssue ¶
func (w *ServerInterfaceWrapper) NewIssue(ctx echo.Context) error
NewIssue converts echo context to params.
func (*ServerInterfaceWrapper) NewProject ¶
func (w *ServerInterfaceWrapper) NewProject(ctx echo.Context) error
NewProject converts echo context to params.
func (*ServerInterfaceWrapper) Projects ¶
func (w *ServerInterfaceWrapper) Projects(ctx echo.Context) error
Projects converts echo context to params.
func (*ServerInterfaceWrapper) UpdateComment ¶
func (w *ServerInterfaceWrapper) UpdateComment(ctx echo.Context) error
UpdateComment converts echo context to params.
func (*ServerInterfaceWrapper) UpdateCustomer ¶
func (w *ServerInterfaceWrapper) UpdateCustomer(ctx echo.Context) error
UpdateCustomer converts echo context to params.
func (*ServerInterfaceWrapper) UpdateIssue ¶
func (w *ServerInterfaceWrapper) UpdateIssue(ctx echo.Context) error
UpdateIssue converts echo context to params.
func (*ServerInterfaceWrapper) UpdateProject ¶
func (w *ServerInterfaceWrapper) UpdateProject(ctx echo.Context) error
UpdateProject converts echo context to params.
func (*ServerInterfaceWrapper) Users ¶
func (w *ServerInterfaceWrapper) Users(ctx echo.Context) error
Users converts echo context to params.
type UpdateCommentResponse ¶
type UpdateCommentResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdatedComment }
func ParseUpdateCommentResponse ¶
func ParseUpdateCommentResponse(rsp *http.Response) (*UpdateCommentResponse, error)
ParseUpdateCommentResponse parses an HTTP response from a UpdateCommentWithResponse call
func (UpdateCommentResponse) Status ¶
func (r UpdateCommentResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCommentResponse) StatusCode ¶
func (r UpdateCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateCustomerJSONBody ¶
type UpdateCustomerJSONBody UpdatedCustomer
UpdateCustomerJSONBody defines parameters for UpdateCustomer.
type UpdateCustomerJSONRequestBody ¶
type UpdateCustomerJSONRequestBody UpdateCustomerJSONBody
UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType.
type UpdateCustomerResponse ¶
func ParseUpdateCustomerResponse ¶
func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error)
ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call
func (UpdateCustomerResponse) Status ¶
func (r UpdateCustomerResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCustomerResponse) StatusCode ¶
func (r UpdateCustomerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateIssueResponse ¶
type UpdateIssueResponse struct { Body []byte HTTPResponse *http.Response JSON200 *UpdatedIssue }
func ParseUpdateIssueResponse ¶
func ParseUpdateIssueResponse(rsp *http.Response) (*UpdateIssueResponse, error)
ParseUpdateIssueResponse parses an HTTP response from a UpdateIssueWithResponse call
func (UpdateIssueResponse) Status ¶
func (r UpdateIssueResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateIssueResponse) StatusCode ¶
func (r UpdateIssueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateProjectJSONBody ¶
type UpdateProjectJSONBody UpdatedProject
UpdateProjectJSONBody defines parameters for UpdateProject.
type UpdateProjectJSONRequestBody ¶
type UpdateProjectJSONRequestBody UpdateProjectJSONBody
UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.
type UpdateProjectResponse ¶
func ParseUpdateProjectResponse ¶
func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error)
ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call
func (UpdateProjectResponse) Status ¶
func (r UpdateProjectResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateProjectResponse) StatusCode ¶
func (r UpdateProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatedComment ¶
type UpdatedComment struct { // Embedded struct due to allOf(#/components/schemas/NewComment) NewComment `yaml:",inline"` // Embedded fields due to inline allOf schema Version int64 `json:"version"` }
UpdatedComment defines model for UpdatedComment.
type UpdatedCustomer ¶
type UpdatedCustomer struct { // Embedded struct due to allOf(#/components/schemas/NewCustomer) NewCustomer `yaml:",inline"` // Embedded fields due to inline allOf schema Version int64 `json:"version"` }
UpdatedCustomer defines model for UpdatedCustomer.
type UpdatedIssue ¶
type UpdatedIssue struct { // Embedded struct due to allOf(#/components/schemas/NewIssue) NewIssue `yaml:",inline"` // Embedded fields due to inline allOf schema Version int64 `json:"version"` }
UpdatedIssue defines model for UpdatedIssue.
type UpdatedProject ¶
type UpdatedProject struct { // Embedded struct due to allOf(#/components/schemas/NewProject) NewProject `yaml:",inline"` // Embedded fields due to inline allOf schema Version int64 `json:"version"` }
UpdatedProject defines model for UpdatedProject.
type User ¶
type User struct { // The timestamp the User was created. CreatedAt time.Time `json:"created_at"` // Email of the User. Email string `json:"email"` // User identifier. Id string `json:"id"` // Name of the User. Name string `json:"name"` // The timestamp the User was last updated. UpdatedAt time.Time `json:"updated_at"` }
User response.
type UsersParams ¶
type UsersParams struct { // Used to query by name in a list operation. Q *Q `json:"q,omitempty"` // Used to request the next page in a list operation. Offset *Offset `json:"offset,omitempty"` // Used to specify the maximum number of records which are returned in the next page. Limit *Limit `json:"limit,omitempty"` }
UsersParams defines parameters for Users.
type UsersResponse ¶
func ParseUsersResponse ¶
func ParseUsersResponse(rsp *http.Response) (*UsersResponse, error)
ParseUsersResponse parses an HTTP response from a UsersWithResponse call
func (UsersResponse) Status ¶
func (r UsersResponse) Status() string
Status returns HTTPResponse.Status
func (UsersResponse) StatusCode ¶
func (r UsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode