Documentation
¶
Overview ¶
Package communicationapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package communicationapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateFeedbackCommentRequest(server string, feedbackId FeedbackId, ...) (*http.Request, error)
- func NewCreateFeedbackCommentRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateFeedbackRequest(server string, body CreateFeedbackJSONRequestBody) (*http.Request, error)
- func NewCreateFeedbackRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateVoteUserRequest(server string, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody) (*http.Request, error)
- func NewCreateVoteUserRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteFeedbackCommentRequest(server string, feedbackId FeedbackId, commentId CommentId) (*http.Request, error)
- func NewDeleteFeedbackRequest(server string, feedbackId FeedbackId) (*http.Request, error)
- func NewDeleteVoteForFeedbackRequest(server string, feedbackId FeedbackId, userId UserId) (*http.Request, error)
- func NewGetFeedbackCommentRequest(server string, feedbackId FeedbackId, commentId CommentId) (*http.Request, error)
- func NewGetFeedbackRequest(server string, feedbackId FeedbackId) (*http.Request, error)
- func NewGetFeedbacksRequest(server string) (*http.Request, error)
- func NewReturnInternalServerErrorRequest(server string) (*http.Request, error)
- func NewUpdateFeedbackCommentRequest(server string, feedbackId FeedbackId, commentId CommentId, ...) (*http.Request, error)
- func NewUpdateFeedbackCommentRequestWithBody(server string, feedbackId FeedbackId, commentId CommentId, contentType string, ...) (*http.Request, error)
- func NewUpdateFeedbackRequest(server string, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody) (*http.Request, error)
- func NewUpdateFeedbackRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateFeedbackStatusRequest(server string, feedbackId FeedbackId, body UpdateFeedbackStatusJSONRequestBody) (*http.Request, error)
- func NewUpdateFeedbackStatusRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
- type Client
- func (c *Client) CreateFeedback(ctx context.Context, body CreateFeedbackJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateFeedbackComment(ctx context.Context, feedbackId FeedbackId, ...) (*http.Response, error)
- func (c *Client) CreateFeedbackCommentWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateFeedbackWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateVoteUser(ctx context.Context, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateVoteUserWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteFeedback(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*http.Response, error)
- func (c *Client) DeleteVoteForFeedback(ctx context.Context, feedbackId FeedbackId, userId UserId, ...) (*http.Response, error)
- func (c *Client) GetFeedback(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*http.Response, error)
- func (c *Client) GetFeedbacks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReturnInternalServerError(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateFeedback(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*http.Response, error)
- func (c *Client) UpdateFeedbackCommentWithBody(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*http.Response, error)
- func (c *Client) UpdateFeedbackStatus(ctx context.Context, feedbackId FeedbackId, ...) (*http.Response, error)
- func (c *Client) UpdateFeedbackStatusWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateFeedbackWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateFeedbackCommentWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*CreateFeedbackCommentResponse, error)
- func (c *ClientWithResponses) CreateFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, ...) (*CreateFeedbackCommentResponse, error)
- func (c *ClientWithResponses) CreateFeedbackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateFeedbackResponse, error)
- func (c *ClientWithResponses) CreateFeedbackWithResponse(ctx context.Context, body CreateFeedbackJSONRequestBody, ...) (*CreateFeedbackResponse, error)
- func (c *ClientWithResponses) CreateVoteUserWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*CreateVoteUserResponse, error)
- func (c *ClientWithResponses) CreateVoteUserWithResponse(ctx context.Context, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody, ...) (*CreateVoteUserResponse, error)
- func (c *ClientWithResponses) DeleteFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*DeleteFeedbackCommentResponse, error)
- func (c *ClientWithResponses) DeleteFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*DeleteFeedbackResponse, error)
- func (c *ClientWithResponses) DeleteVoteForFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, userId UserId, ...) (*DeleteVoteForFeedbackResponse, error)
- func (c *ClientWithResponses) GetFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*GetFeedbackCommentResponse, error)
- func (c *ClientWithResponses) GetFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*GetFeedbackResponse, error)
- func (c *ClientWithResponses) GetFeedbacksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeedbacksResponse, error)
- func (c *ClientWithResponses) ReturnInternalServerErrorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReturnInternalServerErrorResponse, error)
- func (c *ClientWithResponses) UpdateFeedbackCommentWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*UpdateFeedbackCommentResponse, error)
- func (c *ClientWithResponses) UpdateFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, ...) (*UpdateFeedbackCommentResponse, error)
- func (c *ClientWithResponses) UpdateFeedbackStatusWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*UpdateFeedbackStatusResponse, error)
- func (c *ClientWithResponses) UpdateFeedbackStatusWithResponse(ctx context.Context, feedbackId FeedbackId, ...) (*UpdateFeedbackStatusResponse, error)
- func (c *ClientWithResponses) UpdateFeedbackWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, ...) (*UpdateFeedbackResponse, error)
- func (c *ClientWithResponses) UpdateFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody, ...) (*UpdateFeedbackResponse, error)
- type ClientWithResponsesInterface
- type Comment
- type CommentId
- type Comments
- type CreateFeedbackCommentJSONRequestBody
- type CreateFeedbackCommentParam
- type CreateFeedbackCommentResponse
- type CreateFeedbackJSONRequestBody
- type CreateFeedbackParam
- type CreateFeedbackResponse
- type CreateVoteUserJSONRequestBody
- type CreateVoteUserParam
- type CreateVoteUserResponse
- type DeleteFeedbackCommentResponse
- type DeleteFeedbackResponse
- type DeleteVoteForFeedbackResponse
- type Error
- type Feedback
- type FeedbackId
- type FeedbackSaveProps
- type Feedbacks
- type GetFeedbackCommentResponse
- type GetFeedbackResponse
- type GetFeedbacksResponse
- type HttpRequestDoer
- type RequestEditorFn
- type ReturnInternalServerErrorResponse
- type Status
- type UpdateFeedbackCommentJSONRequestBody
- type UpdateFeedbackCommentParam
- type UpdateFeedbackCommentResponse
- type UpdateFeedbackJSONRequestBody
- type UpdateFeedbackParam
- type UpdateFeedbackResponse
- type UpdateFeedbackStatusJSONRequestBody
- type UpdateFeedbackStatusParam
- type UpdateFeedbackStatusResponse
- type User
- type UserId
- type Users
- type Uuid
- type Votes
Constants ¶
const (
BearerScopes = "Bearer.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateFeedbackCommentRequest ¶
func NewCreateFeedbackCommentRequest(server string, feedbackId FeedbackId, body CreateFeedbackCommentJSONRequestBody) (*http.Request, error)
NewCreateFeedbackCommentRequest calls the generic CreateFeedbackComment builder with application/json body
func NewCreateFeedbackCommentRequestWithBody ¶
func NewCreateFeedbackCommentRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
NewCreateFeedbackCommentRequestWithBody generates requests for CreateFeedbackComment with any type of body
func NewCreateFeedbackRequest ¶
func NewCreateFeedbackRequest(server string, body CreateFeedbackJSONRequestBody) (*http.Request, error)
NewCreateFeedbackRequest calls the generic CreateFeedback builder with application/json body
func NewCreateFeedbackRequestWithBody ¶
func NewCreateFeedbackRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFeedbackRequestWithBody generates requests for CreateFeedback with any type of body
func NewCreateVoteUserRequest ¶
func NewCreateVoteUserRequest(server string, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody) (*http.Request, error)
NewCreateVoteUserRequest calls the generic CreateVoteUser builder with application/json body
func NewCreateVoteUserRequestWithBody ¶
func NewCreateVoteUserRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
NewCreateVoteUserRequestWithBody generates requests for CreateVoteUser with any type of body
func NewDeleteFeedbackCommentRequest ¶
func NewDeleteFeedbackCommentRequest(server string, feedbackId FeedbackId, commentId CommentId) (*http.Request, error)
NewDeleteFeedbackCommentRequest generates requests for DeleteFeedbackComment
func NewDeleteFeedbackRequest ¶
func NewDeleteFeedbackRequest(server string, feedbackId FeedbackId) (*http.Request, error)
NewDeleteFeedbackRequest generates requests for DeleteFeedback
func NewDeleteVoteForFeedbackRequest ¶
func NewDeleteVoteForFeedbackRequest(server string, feedbackId FeedbackId, userId UserId) (*http.Request, error)
NewDeleteVoteForFeedbackRequest generates requests for DeleteVoteForFeedback
func NewGetFeedbackCommentRequest ¶
func NewGetFeedbackCommentRequest(server string, feedbackId FeedbackId, commentId CommentId) (*http.Request, error)
NewGetFeedbackCommentRequest generates requests for GetFeedbackComment
func NewGetFeedbackRequest ¶
func NewGetFeedbackRequest(server string, feedbackId FeedbackId) (*http.Request, error)
NewGetFeedbackRequest generates requests for GetFeedback
func NewGetFeedbacksRequest ¶
NewGetFeedbacksRequest generates requests for GetFeedbacks
func NewReturnInternalServerErrorRequest ¶
NewReturnInternalServerErrorRequest generates requests for ReturnInternalServerError
func NewUpdateFeedbackCommentRequest ¶
func NewUpdateFeedbackCommentRequest(server string, feedbackId FeedbackId, commentId CommentId, body UpdateFeedbackCommentJSONRequestBody) (*http.Request, error)
NewUpdateFeedbackCommentRequest calls the generic UpdateFeedbackComment builder with application/json body
func NewUpdateFeedbackCommentRequestWithBody ¶
func NewUpdateFeedbackCommentRequestWithBody(server string, feedbackId FeedbackId, commentId CommentId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateFeedbackCommentRequestWithBody generates requests for UpdateFeedbackComment with any type of body
func NewUpdateFeedbackRequest ¶
func NewUpdateFeedbackRequest(server string, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody) (*http.Request, error)
NewUpdateFeedbackRequest calls the generic UpdateFeedback builder with application/json body
func NewUpdateFeedbackRequestWithBody ¶
func NewUpdateFeedbackRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateFeedbackRequestWithBody generates requests for UpdateFeedback with any type of body
func NewUpdateFeedbackStatusRequest ¶
func NewUpdateFeedbackStatusRequest(server string, feedbackId FeedbackId, body UpdateFeedbackStatusJSONRequestBody) (*http.Request, error)
NewUpdateFeedbackStatusRequest calls the generic UpdateFeedbackStatus builder with application/json body
func NewUpdateFeedbackStatusRequestWithBody ¶
func NewUpdateFeedbackStatusRequestWithBody(server string, feedbackId FeedbackId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateFeedbackStatusRequestWithBody generates requests for UpdateFeedbackStatus with any type of body
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) CreateFeedback ¶
func (c *Client) CreateFeedback(ctx context.Context, body CreateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFeedbackComment ¶
func (c *Client) CreateFeedbackComment(ctx context.Context, feedbackId FeedbackId, body CreateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFeedbackCommentWithBody ¶
func (*Client) CreateFeedbackWithBody ¶
func (*Client) CreateVoteUser ¶
func (c *Client) CreateVoteUser(ctx context.Context, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVoteUserWithBody ¶
func (*Client) DeleteFeedback ¶
func (c *Client) DeleteFeedback(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteFeedbackComment ¶
func (c *Client) DeleteFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteVoteForFeedback ¶
func (c *Client) DeleteVoteForFeedback(ctx context.Context, feedbackId FeedbackId, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFeedback ¶
func (c *Client) GetFeedback(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFeedbackComment ¶
func (c *Client) GetFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFeedbacks ¶
func (*Client) ReturnInternalServerError ¶
func (*Client) UpdateFeedback ¶
func (c *Client) UpdateFeedback(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFeedbackComment ¶
func (c *Client) UpdateFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, body UpdateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFeedbackCommentWithBody ¶
func (*Client) UpdateFeedbackStatus ¶
func (c *Client) UpdateFeedbackStatus(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFeedbackStatusWithBody ¶
func (*Client) UpdateFeedbackWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// ReturnInternalServerError request
ReturnInternalServerError(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFeedbacks request
GetFeedbacks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFeedback request with any body
CreateFeedbackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFeedback(ctx context.Context, body CreateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFeedback request
DeleteFeedback(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFeedback request
GetFeedback(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateFeedback request with any body
UpdateFeedbackWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateFeedback(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFeedbackComment request with any body
CreateFeedbackCommentWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFeedbackComment(ctx context.Context, feedbackId FeedbackId, body CreateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFeedbackComment request
DeleteFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFeedbackComment request
GetFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateFeedbackComment request with any body
UpdateFeedbackCommentWithBody(ctx context.Context, feedbackId FeedbackId, commentId CommentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateFeedbackComment(ctx context.Context, feedbackId FeedbackId, commentId CommentId, body UpdateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateFeedbackStatus request with any body
UpdateFeedbackStatusWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateFeedbackStatus(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVoteUser request with any body
CreateVoteUserWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVoteUser(ctx context.Context, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVoteForFeedback request
DeleteVoteForFeedback(ctx context.Context, feedbackId FeedbackId, userId UserId, 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) CreateFeedbackCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFeedbackCommentWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeedbackCommentResponse, error)
CreateFeedbackCommentWithBodyWithResponse request with arbitrary body returning *CreateFeedbackCommentResponse
func (*ClientWithResponses) CreateFeedbackCommentWithResponse ¶
func (c *ClientWithResponses) CreateFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, body CreateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeedbackCommentResponse, error)
func (*ClientWithResponses) CreateFeedbackWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFeedbackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeedbackResponse, error)
CreateFeedbackWithBodyWithResponse request with arbitrary body returning *CreateFeedbackResponse
func (*ClientWithResponses) CreateFeedbackWithResponse ¶
func (c *ClientWithResponses) CreateFeedbackWithResponse(ctx context.Context, body CreateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeedbackResponse, error)
func (*ClientWithResponses) CreateVoteUserWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateVoteUserWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVoteUserResponse, error)
CreateVoteUserWithBodyWithResponse request with arbitrary body returning *CreateVoteUserResponse
func (*ClientWithResponses) CreateVoteUserWithResponse ¶
func (c *ClientWithResponses) CreateVoteUserWithResponse(ctx context.Context, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVoteUserResponse, error)
func (*ClientWithResponses) DeleteFeedbackCommentWithResponse ¶
func (c *ClientWithResponses) DeleteFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*DeleteFeedbackCommentResponse, error)
DeleteFeedbackCommentWithResponse request returning *DeleteFeedbackCommentResponse
func (*ClientWithResponses) DeleteFeedbackWithResponse ¶
func (c *ClientWithResponses) DeleteFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*DeleteFeedbackResponse, error)
DeleteFeedbackWithResponse request returning *DeleteFeedbackResponse
func (*ClientWithResponses) DeleteVoteForFeedbackWithResponse ¶
func (c *ClientWithResponses) DeleteVoteForFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, userId UserId, reqEditors ...RequestEditorFn) (*DeleteVoteForFeedbackResponse, error)
DeleteVoteForFeedbackWithResponse request returning *DeleteVoteForFeedbackResponse
func (*ClientWithResponses) GetFeedbackCommentWithResponse ¶
func (c *ClientWithResponses) GetFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*GetFeedbackCommentResponse, error)
GetFeedbackCommentWithResponse request returning *GetFeedbackCommentResponse
func (*ClientWithResponses) GetFeedbackWithResponse ¶
func (c *ClientWithResponses) GetFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*GetFeedbackResponse, error)
GetFeedbackWithResponse request returning *GetFeedbackResponse
func (*ClientWithResponses) GetFeedbacksWithResponse ¶
func (c *ClientWithResponses) GetFeedbacksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeedbacksResponse, error)
GetFeedbacksWithResponse request returning *GetFeedbacksResponse
func (*ClientWithResponses) ReturnInternalServerErrorWithResponse ¶
func (c *ClientWithResponses) ReturnInternalServerErrorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReturnInternalServerErrorResponse, error)
ReturnInternalServerErrorWithResponse request returning *ReturnInternalServerErrorResponse
func (*ClientWithResponses) UpdateFeedbackCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateFeedbackCommentWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedbackCommentResponse, error)
UpdateFeedbackCommentWithBodyWithResponse request with arbitrary body returning *UpdateFeedbackCommentResponse
func (*ClientWithResponses) UpdateFeedbackCommentWithResponse ¶
func (c *ClientWithResponses) UpdateFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, body UpdateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedbackCommentResponse, error)
func (*ClientWithResponses) UpdateFeedbackStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateFeedbackStatusWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedbackStatusResponse, error)
UpdateFeedbackStatusWithBodyWithResponse request with arbitrary body returning *UpdateFeedbackStatusResponse
func (*ClientWithResponses) UpdateFeedbackStatusWithResponse ¶
func (c *ClientWithResponses) UpdateFeedbackStatusWithResponse(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedbackStatusResponse, error)
func (*ClientWithResponses) UpdateFeedbackWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateFeedbackWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedbackResponse, error)
UpdateFeedbackWithBodyWithResponse request with arbitrary body returning *UpdateFeedbackResponse
func (*ClientWithResponses) UpdateFeedbackWithResponse ¶
func (c *ClientWithResponses) UpdateFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedbackResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ReturnInternalServerError request
ReturnInternalServerErrorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReturnInternalServerErrorResponse, error)
// GetFeedbacks request
GetFeedbacksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFeedbacksResponse, error)
// CreateFeedback request with any body
CreateFeedbackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeedbackResponse, error)
CreateFeedbackWithResponse(ctx context.Context, body CreateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeedbackResponse, error)
// DeleteFeedback request
DeleteFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*DeleteFeedbackResponse, error)
// GetFeedback request
GetFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, reqEditors ...RequestEditorFn) (*GetFeedbackResponse, error)
// UpdateFeedback request with any body
UpdateFeedbackWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedbackResponse, error)
UpdateFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedbackResponse, error)
// CreateFeedbackComment request with any body
CreateFeedbackCommentWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFeedbackCommentResponse, error)
CreateFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, body CreateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFeedbackCommentResponse, error)
// DeleteFeedbackComment request
DeleteFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*DeleteFeedbackCommentResponse, error)
// GetFeedbackComment request
GetFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, reqEditors ...RequestEditorFn) (*GetFeedbackCommentResponse, error)
// UpdateFeedbackComment request with any body
UpdateFeedbackCommentWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedbackCommentResponse, error)
UpdateFeedbackCommentWithResponse(ctx context.Context, feedbackId FeedbackId, commentId CommentId, body UpdateFeedbackCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedbackCommentResponse, error)
// UpdateFeedbackStatus request with any body
UpdateFeedbackStatusWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFeedbackStatusResponse, error)
UpdateFeedbackStatusWithResponse(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFeedbackStatusResponse, error)
// CreateVoteUser request with any body
CreateVoteUserWithBodyWithResponse(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVoteUserResponse, error)
CreateVoteUserWithResponse(ctx context.Context, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVoteUserResponse, error)
// DeleteVoteForFeedback request
DeleteVoteForFeedbackWithResponse(ctx context.Context, feedbackId FeedbackId, userId UserId, reqEditors ...RequestEditorFn) (*DeleteVoteForFeedbackResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Comment ¶
type Comment struct {
Body string `json:"body"`
CreatedAt int `json:"created_at"`
Id Uuid `json:"id"`
}
Comment defines model for Comment.
type Comments ¶
type Comments struct {
Comments []Comment `json:"comments"`
}
Comments defines model for Comments.
type CreateFeedbackCommentJSONRequestBody ¶
type CreateFeedbackCommentJSONRequestBody = CreateFeedbackCommentParam
CreateFeedbackCommentJSONRequestBody defines body for CreateFeedbackComment for application/json ContentType.
type CreateFeedbackCommentParam ¶
type CreateFeedbackCommentParam struct {
Body string `json:"body"`
}
CreateFeedbackCommentParam defines model for CreateFeedbackCommentParam.
type CreateFeedbackCommentResponse ¶
type CreateFeedbackCommentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Comment
JSON404 *Error
JSON500 *Error
}
func ParseCreateFeedbackCommentResponse ¶
func ParseCreateFeedbackCommentResponse(rsp *http.Response) (*CreateFeedbackCommentResponse, error)
ParseCreateFeedbackCommentResponse parses an HTTP response from a CreateFeedbackCommentWithResponse call
func (CreateFeedbackCommentResponse) Status ¶
func (r CreateFeedbackCommentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFeedbackCommentResponse) StatusCode ¶
func (r CreateFeedbackCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFeedbackJSONRequestBody ¶
type CreateFeedbackJSONRequestBody = CreateFeedbackParam
CreateFeedbackJSONRequestBody defines body for CreateFeedback for application/json ContentType.
type CreateFeedbackParam ¶
type CreateFeedbackParam struct {
FeedbackDescription string `json:"feedback_description"`
FeedbackTitle string `json:"feedback_title"`
UserId Uuid `json:"user_id"`
}
CreateFeedbackParam defines model for CreateFeedbackParam.
type CreateFeedbackResponse ¶
type CreateFeedbackResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Feedback
JSON500 *Error
}
func ParseCreateFeedbackResponse ¶
func ParseCreateFeedbackResponse(rsp *http.Response) (*CreateFeedbackResponse, error)
ParseCreateFeedbackResponse parses an HTTP response from a CreateFeedbackWithResponse call
func (CreateFeedbackResponse) Status ¶
func (r CreateFeedbackResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFeedbackResponse) StatusCode ¶
func (r CreateFeedbackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVoteUserJSONRequestBody ¶
type CreateVoteUserJSONRequestBody = CreateVoteUserParam
CreateVoteUserJSONRequestBody defines body for CreateVoteUser for application/json ContentType.
type CreateVoteUserParam ¶
type CreateVoteUserParam struct {
UserId Uuid `json:"user_id"`
}
CreateVoteUserParam defines model for CreateVoteUserParam.
type CreateVoteUserResponse ¶
type CreateVoteUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Votes
JSON404 *Error
JSON500 *Error
}
func ParseCreateVoteUserResponse ¶
func ParseCreateVoteUserResponse(rsp *http.Response) (*CreateVoteUserResponse, error)
ParseCreateVoteUserResponse parses an HTTP response from a CreateVoteUserWithResponse call
func (CreateVoteUserResponse) Status ¶
func (r CreateVoteUserResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVoteUserResponse) StatusCode ¶
func (r CreateVoteUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteFeedbackCommentResponse ¶
type DeleteFeedbackCommentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteFeedbackCommentResponse ¶
func ParseDeleteFeedbackCommentResponse(rsp *http.Response) (*DeleteFeedbackCommentResponse, error)
ParseDeleteFeedbackCommentResponse parses an HTTP response from a DeleteFeedbackCommentWithResponse call
func (DeleteFeedbackCommentResponse) Status ¶
func (r DeleteFeedbackCommentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFeedbackCommentResponse) StatusCode ¶
func (r DeleteFeedbackCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteFeedbackResponse ¶
type DeleteFeedbackResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteFeedbackResponse ¶
func ParseDeleteFeedbackResponse(rsp *http.Response) (*DeleteFeedbackResponse, error)
ParseDeleteFeedbackResponse parses an HTTP response from a DeleteFeedbackWithResponse call
func (DeleteFeedbackResponse) Status ¶
func (r DeleteFeedbackResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFeedbackResponse) StatusCode ¶
func (r DeleteFeedbackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVoteForFeedbackResponse ¶
type DeleteVoteForFeedbackResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteVoteForFeedbackResponse ¶
func ParseDeleteVoteForFeedbackResponse(rsp *http.Response) (*DeleteVoteForFeedbackResponse, error)
ParseDeleteVoteForFeedbackResponse parses an HTTP response from a DeleteVoteForFeedbackWithResponse call
func (DeleteVoteForFeedbackResponse) Status ¶
func (r DeleteVoteForFeedbackResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVoteForFeedbackResponse) StatusCode ¶
func (r DeleteVoteForFeedbackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
// Message Error message
Message string `json:"message"`
// Type permission_denied
Type string `json:"type"`
}
Error defines model for Error.
type Feedback ¶
type Feedback struct {
Comments []Comment `json:"comments"`
Count uint64 `json:"count"`
CreatedAt int `json:"created_at"`
FeedbackDescription string `json:"feedback_description"`
FeedbackTitle string `json:"feedback_title"`
Id Uuid `json:"id"`
Status Status `json:"status"`
UserId Uuid `json:"user_id"`
Users []User `json:"users"`
}
Feedback defines model for Feedback.
type FeedbackSaveProps ¶
type FeedbackSaveProps struct {
FeedbackDescription string `json:"feedback_description"`
FeedbackTitle string `json:"feedback_title"`
}
FeedbackSaveProps defines model for FeedbackSaveProps.
type Feedbacks ¶
type Feedbacks struct {
Feedbacks []Feedback `json:"feedbacks"`
}
Feedbacks defines model for Feedbacks.
type GetFeedbackCommentResponse ¶
type GetFeedbackCommentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Comment
JSON404 *Error
JSON500 *Error
}
func ParseGetFeedbackCommentResponse ¶
func ParseGetFeedbackCommentResponse(rsp *http.Response) (*GetFeedbackCommentResponse, error)
ParseGetFeedbackCommentResponse parses an HTTP response from a GetFeedbackCommentWithResponse call
func (GetFeedbackCommentResponse) Status ¶
func (r GetFeedbackCommentResponse) Status() string
Status returns HTTPResponse.Status
func (GetFeedbackCommentResponse) StatusCode ¶
func (r GetFeedbackCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFeedbackResponse ¶
type GetFeedbackResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Feedback
JSON404 *Error
JSON500 *Error
}
func ParseGetFeedbackResponse ¶
func ParseGetFeedbackResponse(rsp *http.Response) (*GetFeedbackResponse, error)
ParseGetFeedbackResponse parses an HTTP response from a GetFeedbackWithResponse call
func (GetFeedbackResponse) Status ¶
func (r GetFeedbackResponse) Status() string
Status returns HTTPResponse.Status
func (GetFeedbackResponse) StatusCode ¶
func (r GetFeedbackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFeedbacksResponse ¶
type GetFeedbacksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Feedbacks
JSON500 *Error
}
func ParseGetFeedbacksResponse ¶
func ParseGetFeedbacksResponse(rsp *http.Response) (*GetFeedbacksResponse, error)
ParseGetFeedbacksResponse parses an HTTP response from a GetFeedbacksWithResponse call
func (GetFeedbacksResponse) Status ¶
func (r GetFeedbacksResponse) Status() string
Status returns HTTPResponse.Status
func (GetFeedbacksResponse) StatusCode ¶
func (r GetFeedbacksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ReturnInternalServerErrorResponse ¶
type ReturnInternalServerErrorResponse struct {
Body []byte
HTTPResponse *http.Response
JSON500 *Error
}
func ParseReturnInternalServerErrorResponse ¶
func ParseReturnInternalServerErrorResponse(rsp *http.Response) (*ReturnInternalServerErrorResponse, error)
ParseReturnInternalServerErrorResponse parses an HTTP response from a ReturnInternalServerErrorWithResponse call
func (ReturnInternalServerErrorResponse) Status ¶
func (r ReturnInternalServerErrorResponse) Status() string
Status returns HTTPResponse.Status
func (ReturnInternalServerErrorResponse) StatusCode ¶
func (r ReturnInternalServerErrorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateFeedbackCommentJSONRequestBody ¶
type UpdateFeedbackCommentJSONRequestBody = UpdateFeedbackCommentParam
UpdateFeedbackCommentJSONRequestBody defines body for UpdateFeedbackComment for application/json ContentType.
type UpdateFeedbackCommentParam ¶
type UpdateFeedbackCommentParam struct {
Body string `json:"body"`
}
UpdateFeedbackCommentParam defines model for UpdateFeedbackCommentParam.
type UpdateFeedbackCommentResponse ¶
type UpdateFeedbackCommentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseUpdateFeedbackCommentResponse ¶
func ParseUpdateFeedbackCommentResponse(rsp *http.Response) (*UpdateFeedbackCommentResponse, error)
ParseUpdateFeedbackCommentResponse parses an HTTP response from a UpdateFeedbackCommentWithResponse call
func (UpdateFeedbackCommentResponse) Status ¶
func (r UpdateFeedbackCommentResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateFeedbackCommentResponse) StatusCode ¶
func (r UpdateFeedbackCommentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateFeedbackJSONRequestBody ¶
type UpdateFeedbackJSONRequestBody = UpdateFeedbackParam
UpdateFeedbackJSONRequestBody defines body for UpdateFeedback for application/json ContentType.
type UpdateFeedbackParam ¶
type UpdateFeedbackParam = FeedbackSaveProps
UpdateFeedbackParam defines model for UpdateFeedbackParam.
type UpdateFeedbackResponse ¶
type UpdateFeedbackResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseUpdateFeedbackResponse ¶
func ParseUpdateFeedbackResponse(rsp *http.Response) (*UpdateFeedbackResponse, error)
ParseUpdateFeedbackResponse parses an HTTP response from a UpdateFeedbackWithResponse call
func (UpdateFeedbackResponse) Status ¶
func (r UpdateFeedbackResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateFeedbackResponse) StatusCode ¶
func (r UpdateFeedbackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateFeedbackStatusJSONRequestBody ¶
type UpdateFeedbackStatusJSONRequestBody = UpdateFeedbackStatusParam
UpdateFeedbackStatusJSONRequestBody defines body for UpdateFeedbackStatus for application/json ContentType.
type UpdateFeedbackStatusParam ¶
type UpdateFeedbackStatusParam struct {
Status Status `json:"status"`
}
UpdateFeedbackStatusParam defines model for UpdateFeedbackStatusParam.
type UpdateFeedbackStatusResponse ¶
type UpdateFeedbackStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseUpdateFeedbackStatusResponse ¶
func ParseUpdateFeedbackStatusResponse(rsp *http.Response) (*UpdateFeedbackStatusResponse, error)
ParseUpdateFeedbackStatusResponse parses an HTTP response from a UpdateFeedbackStatusWithResponse call
func (UpdateFeedbackStatusResponse) Status ¶
func (r UpdateFeedbackStatusResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateFeedbackStatusResponse) StatusCode ¶
func (r UpdateFeedbackStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode