communicationapi

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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

View Source
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

func NewGetFeedbacksRequest(server string) (*http.Request, error)

NewGetFeedbacksRequest generates requests for GetFeedbacks

func NewReturnInternalServerErrorRequest

func NewReturnInternalServerErrorRequest(server string) (*http.Request, error)

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 (c *Client) CreateFeedbackCommentWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateFeedbackWithBody

func (c *Client) CreateFeedbackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVoteUser

func (c *Client) CreateVoteUser(ctx context.Context, feedbackId FeedbackId, body CreateVoteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVoteUserWithBody

func (c *Client) CreateVoteUserWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) GetFeedbacks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReturnInternalServerError

func (c *Client) ReturnInternalServerError(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) UpdateFeedbackCommentWithBody(ctx context.Context, feedbackId FeedbackId, commentId CommentId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFeedbackStatus

func (c *Client) UpdateFeedbackStatus(ctx context.Context, feedbackId FeedbackId, body UpdateFeedbackStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFeedbackStatusWithBody

func (c *Client) UpdateFeedbackStatusWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateFeedbackWithBody

func (c *Client) UpdateFeedbackWithBody(ctx context.Context, feedbackId FeedbackId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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"`
	UserId    Uuid   `json:"user_id"`
}

Comment defines model for Comment.

type CommentId

type CommentId = Uuid

CommentId defines model for CommentId.

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"`
	UserId Uuid   `json:"user_id"`
}

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

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

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

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 FeedbackId

type FeedbackId = Uuid

FeedbackId defines model for FeedbackId.

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

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

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

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

Status returns HTTPResponse.Status

func (ReturnInternalServerErrorResponse) StatusCode

func (r ReturnInternalServerErrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Status

type Status = uint64

Status defines model for Status.

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

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

Status returns HTTPResponse.Status

func (UpdateFeedbackStatusResponse) StatusCode

func (r UpdateFeedbackStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type User

type User struct {
	UserId Uuid `json:"user_id"`
}

User defines model for User.

type UserId

type UserId = Uuid

UserId defines model for UserId.

type Users

type Users struct {
	Users []User `json:"users"`
}

Users defines model for Users.

type Uuid

type Uuid = string

Uuid defines model for Uuid.

type Votes

type Votes struct {
	Count uint64 `json:"count"`
	Users []User `json:"users"`
}

Votes defines model for Votes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL