Documentation ¶
Index ¶
- func BuildDataPayload(discussionDataBookmark string, discussionDataAuth string) (*discussion.DataPayload, error)
- func BuildDeleteMessagePayload(discussionDeleteMessagePostID string, discussionDeleteMessageAuth string) (*discussion.DeleteMessagePayload, error)
- func BuildPostMessagePayload(discussionPostMessageBody string, discussionPostMessageAuth string) (*discussion.PostMessagePayload, error)
- func BuildProjectPayload(discussionProjectProjectID string, discussionProjectAuth string) (*discussion.ProjectPayload, error)
- func BuildUpdateMessagePayload(discussionUpdateMessageBody string, discussionUpdateMessagePostID string, ...) (*discussion.UpdateMessagePayload, error)
- func DataDiscussionPath() string
- func DecodeDataResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDeleteMessageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodePostMessageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeProjectResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeUpdateMessageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DeleteMessageDiscussionPath(postID int64) string
- func EncodeDataRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDeleteMessageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodePostMessageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeProjectRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeUpdateMessageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func NewDataBadRequest(body *DataBadRequestResponseBody) *goa.ServiceError
- func NewDataDiscussionOK(body *DataResponseBody) *discussionviews.DiscussionView
- func NewDataForbidden(body *DataForbiddenResponseBody) *goa.ServiceError
- func NewDataNotFound(body *DataNotFoundResponseBody) *goa.ServiceError
- func NewDataUnauthorized(body *DataUnauthorizedResponseBody) *goa.ServiceError
- func NewDeleteMessageBadRequest(body *DeleteMessageBadRequestResponseBody) *goa.ServiceError
- func NewDeleteMessageForbidden(body *DeleteMessageForbiddenResponseBody) *goa.ServiceError
- func NewDeleteMessageNotFound(body *DeleteMessageNotFoundResponseBody) *goa.ServiceError
- func NewDeleteMessageUnauthorized(body *DeleteMessageUnauthorizedResponseBody) *goa.ServiceError
- func NewPostMessageBadRequest(body *PostMessageBadRequestResponseBody) *goa.ServiceError
- func NewPostMessageForbidden(body *PostMessageForbiddenResponseBody) *goa.ServiceError
- func NewPostMessageNotFound(body *PostMessageNotFoundResponseBody) *goa.ServiceError
- func NewPostMessageResultOK(body *PostMessageResponseBody) *discussion.PostMessageResult
- func NewPostMessageUnauthorized(body *PostMessageUnauthorizedResponseBody) *goa.ServiceError
- func NewProjectBadRequest(body *ProjectBadRequestResponseBody) *goa.ServiceError
- func NewProjectDiscussionOK(body *ProjectResponseBody) *discussionviews.DiscussionView
- func NewProjectForbidden(body *ProjectForbiddenResponseBody) *goa.ServiceError
- func NewProjectNotFound(body *ProjectNotFoundResponseBody) *goa.ServiceError
- func NewProjectUnauthorized(body *ProjectUnauthorizedResponseBody) *goa.ServiceError
- func NewUpdateMessageBadRequest(body *UpdateMessageBadRequestResponseBody) *goa.ServiceError
- func NewUpdateMessageForbidden(body *UpdateMessageForbiddenResponseBody) *goa.ServiceError
- func NewUpdateMessageNotFound(body *UpdateMessageNotFoundResponseBody) *goa.ServiceError
- func NewUpdateMessageResultOK(body *UpdateMessageResponseBody) *discussion.UpdateMessageResult
- func NewUpdateMessageUnauthorized(body *UpdateMessageUnauthorizedResponseBody) *goa.ServiceError
- func PostMessageDiscussionPath() string
- func ProjectDiscussionPath(projectID int32) string
- func UpdateMessageDiscussionPath(postID int64) string
- func ValidateAuthorPhotoResponseBody(body *AuthorPhotoResponseBody) (err error)
- func ValidateDataBadRequestResponseBody(body *DataBadRequestResponseBody) (err error)
- func ValidateDataForbiddenResponseBody(body *DataForbiddenResponseBody) (err error)
- func ValidateDataNotFoundResponseBody(body *DataNotFoundResponseBody) (err error)
- func ValidateDataUnauthorizedResponseBody(body *DataUnauthorizedResponseBody) (err error)
- func ValidateDeleteMessageBadRequestResponseBody(body *DeleteMessageBadRequestResponseBody) (err error)
- func ValidateDeleteMessageForbiddenResponseBody(body *DeleteMessageForbiddenResponseBody) (err error)
- func ValidateDeleteMessageNotFoundResponseBody(body *DeleteMessageNotFoundResponseBody) (err error)
- func ValidateDeleteMessageUnauthorizedResponseBody(body *DeleteMessageUnauthorizedResponseBody) (err error)
- func ValidatePostAuthorResponseBody(body *PostAuthorResponseBody) (err error)
- func ValidatePostMessageBadRequestResponseBody(body *PostMessageBadRequestResponseBody) (err error)
- func ValidatePostMessageForbiddenResponseBody(body *PostMessageForbiddenResponseBody) (err error)
- func ValidatePostMessageNotFoundResponseBody(body *PostMessageNotFoundResponseBody) (err error)
- func ValidatePostMessageResponseBody(body *PostMessageResponseBody) (err error)
- func ValidatePostMessageUnauthorizedResponseBody(body *PostMessageUnauthorizedResponseBody) (err error)
- func ValidateProjectBadRequestResponseBody(body *ProjectBadRequestResponseBody) (err error)
- func ValidateProjectForbiddenResponseBody(body *ProjectForbiddenResponseBody) (err error)
- func ValidateProjectNotFoundResponseBody(body *ProjectNotFoundResponseBody) (err error)
- func ValidateProjectUnauthorizedResponseBody(body *ProjectUnauthorizedResponseBody) (err error)
- func ValidateThreadedPostResponseBody(body *ThreadedPostResponseBody) (err error)
- func ValidateUpdateMessageBadRequestResponseBody(body *UpdateMessageBadRequestResponseBody) (err error)
- func ValidateUpdateMessageForbiddenResponseBody(body *UpdateMessageForbiddenResponseBody) (err error)
- func ValidateUpdateMessageNotFoundResponseBody(body *UpdateMessageNotFoundResponseBody) (err error)
- func ValidateUpdateMessageResponseBody(body *UpdateMessageResponseBody) (err error)
- func ValidateUpdateMessageUnauthorizedResponseBody(body *UpdateMessageUnauthorizedResponseBody) (err error)
- type AuthorPhotoResponseBody
- type Client
- func (c *Client) BuildDataRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDeleteMessageRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildPostMessageRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildProjectRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildUpdateMessageRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) Data() goa.Endpoint
- func (c *Client) DeleteMessage() goa.Endpoint
- func (c *Client) PostMessage() goa.Endpoint
- func (c *Client) Project() goa.Endpoint
- func (c *Client) UpdateMessage() goa.Endpoint
- type DataBadRequestResponseBody
- type DataForbiddenResponseBody
- type DataNotFoundResponseBody
- type DataResponseBody
- type DataUnauthorizedResponseBody
- type DeleteMessageBadRequestResponseBody
- type DeleteMessageForbiddenResponseBody
- type DeleteMessageNotFoundResponseBody
- type DeleteMessageUnauthorizedResponseBody
- type NewPostRequestBody
- type PostAuthorResponseBody
- type PostMessageBadRequestResponseBody
- type PostMessageForbiddenResponseBody
- type PostMessageNotFoundResponseBody
- type PostMessageRequestBody
- type PostMessageResponseBody
- type PostMessageUnauthorizedResponseBody
- type ProjectBadRequestResponseBody
- type ProjectForbiddenResponseBody
- type ProjectNotFoundResponseBody
- type ProjectResponseBody
- type ProjectUnauthorizedResponseBody
- type ThreadedPostResponseBody
- type UpdateMessageBadRequestResponseBody
- type UpdateMessageForbiddenResponseBody
- type UpdateMessageNotFoundResponseBody
- type UpdateMessageRequestBody
- type UpdateMessageResponseBody
- type UpdateMessageUnauthorizedResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDataPayload ¶
func BuildDataPayload(discussionDataBookmark string, discussionDataAuth string) (*discussion.DataPayload, error)
BuildDataPayload builds the payload for the discussion data endpoint from CLI flags.
func BuildDeleteMessagePayload ¶
func BuildDeleteMessagePayload(discussionDeleteMessagePostID string, discussionDeleteMessageAuth string) (*discussion.DeleteMessagePayload, error)
BuildDeleteMessagePayload builds the payload for the discussion delete message endpoint from CLI flags.
func BuildPostMessagePayload ¶
func BuildPostMessagePayload(discussionPostMessageBody string, discussionPostMessageAuth string) (*discussion.PostMessagePayload, error)
BuildPostMessagePayload builds the payload for the discussion post message endpoint from CLI flags.
func BuildProjectPayload ¶
func BuildProjectPayload(discussionProjectProjectID string, discussionProjectAuth string) (*discussion.ProjectPayload, error)
BuildProjectPayload builds the payload for the discussion project endpoint from CLI flags.
func BuildUpdateMessagePayload ¶
func BuildUpdateMessagePayload(discussionUpdateMessageBody string, discussionUpdateMessagePostID string, discussionUpdateMessageAuth string) (*discussion.UpdateMessagePayload, error)
BuildUpdateMessagePayload builds the payload for the discussion update message endpoint from CLI flags.
func DataDiscussionPath ¶
func DataDiscussionPath() string
DataDiscussionPath returns the URL path to the discussion service data HTTP endpoint.
func DecodeDataResponse ¶
func DecodeDataResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDataResponse returns a decoder for responses returned by the discussion data endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDataResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodeDeleteMessageResponse ¶
func DecodeDeleteMessageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDeleteMessageResponse returns a decoder for responses returned by the discussion delete message endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteMessageResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodePostMessageResponse ¶
func DecodePostMessageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodePostMessageResponse returns a decoder for responses returned by the discussion post message endpoint. restoreBody controls whether the response body should be restored after having been read. DecodePostMessageResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodeProjectResponse ¶
func DecodeProjectResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeProjectResponse returns a decoder for responses returned by the discussion project endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeProjectResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodeUpdateMessageResponse ¶
func DecodeUpdateMessageResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeUpdateMessageResponse returns a decoder for responses returned by the discussion update message endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateMessageResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DeleteMessageDiscussionPath ¶
DeleteMessageDiscussionPath returns the URL path to the discussion service delete message HTTP endpoint.
func EncodeDataRequest ¶
func EncodeDataRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDataRequest returns an encoder for requests sent to the discussion data server.
func EncodeDeleteMessageRequest ¶
func EncodeDeleteMessageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDeleteMessageRequest returns an encoder for requests sent to the discussion delete message server.
func EncodePostMessageRequest ¶
func EncodePostMessageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodePostMessageRequest returns an encoder for requests sent to the discussion post message server.
func EncodeProjectRequest ¶
func EncodeProjectRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeProjectRequest returns an encoder for requests sent to the discussion project server.
func EncodeUpdateMessageRequest ¶
func EncodeUpdateMessageRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeUpdateMessageRequest returns an encoder for requests sent to the discussion update message server.
func NewDataBadRequest ¶
func NewDataBadRequest(body *DataBadRequestResponseBody) *goa.ServiceError
NewDataBadRequest builds a discussion service data endpoint bad-request error.
func NewDataDiscussionOK ¶
func NewDataDiscussionOK(body *DataResponseBody) *discussionviews.DiscussionView
NewDataDiscussionOK builds a "discussion" service "data" endpoint result from a HTTP "OK" response.
func NewDataForbidden ¶
func NewDataForbidden(body *DataForbiddenResponseBody) *goa.ServiceError
NewDataForbidden builds a discussion service data endpoint forbidden error.
func NewDataNotFound ¶
func NewDataNotFound(body *DataNotFoundResponseBody) *goa.ServiceError
NewDataNotFound builds a discussion service data endpoint not-found error.
func NewDataUnauthorized ¶
func NewDataUnauthorized(body *DataUnauthorizedResponseBody) *goa.ServiceError
NewDataUnauthorized builds a discussion service data endpoint unauthorized error.
func NewDeleteMessageBadRequest ¶
func NewDeleteMessageBadRequest(body *DeleteMessageBadRequestResponseBody) *goa.ServiceError
NewDeleteMessageBadRequest builds a discussion service delete message endpoint bad-request error.
func NewDeleteMessageForbidden ¶
func NewDeleteMessageForbidden(body *DeleteMessageForbiddenResponseBody) *goa.ServiceError
NewDeleteMessageForbidden builds a discussion service delete message endpoint forbidden error.
func NewDeleteMessageNotFound ¶
func NewDeleteMessageNotFound(body *DeleteMessageNotFoundResponseBody) *goa.ServiceError
NewDeleteMessageNotFound builds a discussion service delete message endpoint not-found error.
func NewDeleteMessageUnauthorized ¶
func NewDeleteMessageUnauthorized(body *DeleteMessageUnauthorizedResponseBody) *goa.ServiceError
NewDeleteMessageUnauthorized builds a discussion service delete message endpoint unauthorized error.
func NewPostMessageBadRequest ¶
func NewPostMessageBadRequest(body *PostMessageBadRequestResponseBody) *goa.ServiceError
NewPostMessageBadRequest builds a discussion service post message endpoint bad-request error.
func NewPostMessageForbidden ¶
func NewPostMessageForbidden(body *PostMessageForbiddenResponseBody) *goa.ServiceError
NewPostMessageForbidden builds a discussion service post message endpoint forbidden error.
func NewPostMessageNotFound ¶
func NewPostMessageNotFound(body *PostMessageNotFoundResponseBody) *goa.ServiceError
NewPostMessageNotFound builds a discussion service post message endpoint not-found error.
func NewPostMessageResultOK ¶
func NewPostMessageResultOK(body *PostMessageResponseBody) *discussion.PostMessageResult
NewPostMessageResultOK builds a "discussion" service "post message" endpoint result from a HTTP "OK" response.
func NewPostMessageUnauthorized ¶
func NewPostMessageUnauthorized(body *PostMessageUnauthorizedResponseBody) *goa.ServiceError
NewPostMessageUnauthorized builds a discussion service post message endpoint unauthorized error.
func NewProjectBadRequest ¶
func NewProjectBadRequest(body *ProjectBadRequestResponseBody) *goa.ServiceError
NewProjectBadRequest builds a discussion service project endpoint bad-request error.
func NewProjectDiscussionOK ¶
func NewProjectDiscussionOK(body *ProjectResponseBody) *discussionviews.DiscussionView
NewProjectDiscussionOK builds a "discussion" service "project" endpoint result from a HTTP "OK" response.
func NewProjectForbidden ¶
func NewProjectForbidden(body *ProjectForbiddenResponseBody) *goa.ServiceError
NewProjectForbidden builds a discussion service project endpoint forbidden error.
func NewProjectNotFound ¶
func NewProjectNotFound(body *ProjectNotFoundResponseBody) *goa.ServiceError
NewProjectNotFound builds a discussion service project endpoint not-found error.
func NewProjectUnauthorized ¶
func NewProjectUnauthorized(body *ProjectUnauthorizedResponseBody) *goa.ServiceError
NewProjectUnauthorized builds a discussion service project endpoint unauthorized error.
func NewUpdateMessageBadRequest ¶
func NewUpdateMessageBadRequest(body *UpdateMessageBadRequestResponseBody) *goa.ServiceError
NewUpdateMessageBadRequest builds a discussion service update message endpoint bad-request error.
func NewUpdateMessageForbidden ¶
func NewUpdateMessageForbidden(body *UpdateMessageForbiddenResponseBody) *goa.ServiceError
NewUpdateMessageForbidden builds a discussion service update message endpoint forbidden error.
func NewUpdateMessageNotFound ¶
func NewUpdateMessageNotFound(body *UpdateMessageNotFoundResponseBody) *goa.ServiceError
NewUpdateMessageNotFound builds a discussion service update message endpoint not-found error.
func NewUpdateMessageResultOK ¶
func NewUpdateMessageResultOK(body *UpdateMessageResponseBody) *discussion.UpdateMessageResult
NewUpdateMessageResultOK builds a "discussion" service "update message" endpoint result from a HTTP "OK" response.
func NewUpdateMessageUnauthorized ¶
func NewUpdateMessageUnauthorized(body *UpdateMessageUnauthorizedResponseBody) *goa.ServiceError
NewUpdateMessageUnauthorized builds a discussion service update message endpoint unauthorized error.
func PostMessageDiscussionPath ¶
func PostMessageDiscussionPath() string
PostMessageDiscussionPath returns the URL path to the discussion service post message HTTP endpoint.
func ProjectDiscussionPath ¶
ProjectDiscussionPath returns the URL path to the discussion service project HTTP endpoint.
func UpdateMessageDiscussionPath ¶
UpdateMessageDiscussionPath returns the URL path to the discussion service update message HTTP endpoint.
func ValidateAuthorPhotoResponseBody ¶
func ValidateAuthorPhotoResponseBody(body *AuthorPhotoResponseBody) (err error)
ValidateAuthorPhotoResponseBody runs the validations defined on AuthorPhotoResponseBody
func ValidateDataBadRequestResponseBody ¶
func ValidateDataBadRequestResponseBody(body *DataBadRequestResponseBody) (err error)
ValidateDataBadRequestResponseBody runs the validations defined on data_bad-request_response_body
func ValidateDataForbiddenResponseBody ¶
func ValidateDataForbiddenResponseBody(body *DataForbiddenResponseBody) (err error)
ValidateDataForbiddenResponseBody runs the validations defined on data_forbidden_response_body
func ValidateDataNotFoundResponseBody ¶
func ValidateDataNotFoundResponseBody(body *DataNotFoundResponseBody) (err error)
ValidateDataNotFoundResponseBody runs the validations defined on data_not-found_response_body
func ValidateDataUnauthorizedResponseBody ¶
func ValidateDataUnauthorizedResponseBody(body *DataUnauthorizedResponseBody) (err error)
ValidateDataUnauthorizedResponseBody runs the validations defined on data_unauthorized_response_body
func ValidateDeleteMessageBadRequestResponseBody ¶
func ValidateDeleteMessageBadRequestResponseBody(body *DeleteMessageBadRequestResponseBody) (err error)
ValidateDeleteMessageBadRequestResponseBody runs the validations defined on delete message_bad-request_response_body
func ValidateDeleteMessageForbiddenResponseBody ¶
func ValidateDeleteMessageForbiddenResponseBody(body *DeleteMessageForbiddenResponseBody) (err error)
ValidateDeleteMessageForbiddenResponseBody runs the validations defined on delete message_forbidden_response_body
func ValidateDeleteMessageNotFoundResponseBody ¶
func ValidateDeleteMessageNotFoundResponseBody(body *DeleteMessageNotFoundResponseBody) (err error)
ValidateDeleteMessageNotFoundResponseBody runs the validations defined on delete message_not-found_response_body
func ValidateDeleteMessageUnauthorizedResponseBody ¶
func ValidateDeleteMessageUnauthorizedResponseBody(body *DeleteMessageUnauthorizedResponseBody) (err error)
ValidateDeleteMessageUnauthorizedResponseBody runs the validations defined on delete message_unauthorized_response_body
func ValidatePostAuthorResponseBody ¶
func ValidatePostAuthorResponseBody(body *PostAuthorResponseBody) (err error)
ValidatePostAuthorResponseBody runs the validations defined on PostAuthorResponseBody
func ValidatePostMessageBadRequestResponseBody ¶
func ValidatePostMessageBadRequestResponseBody(body *PostMessageBadRequestResponseBody) (err error)
ValidatePostMessageBadRequestResponseBody runs the validations defined on post message_bad-request_response_body
func ValidatePostMessageForbiddenResponseBody ¶
func ValidatePostMessageForbiddenResponseBody(body *PostMessageForbiddenResponseBody) (err error)
ValidatePostMessageForbiddenResponseBody runs the validations defined on post message_forbidden_response_body
func ValidatePostMessageNotFoundResponseBody ¶
func ValidatePostMessageNotFoundResponseBody(body *PostMessageNotFoundResponseBody) (err error)
ValidatePostMessageNotFoundResponseBody runs the validations defined on post message_not-found_response_body
func ValidatePostMessageResponseBody ¶
func ValidatePostMessageResponseBody(body *PostMessageResponseBody) (err error)
ValidatePostMessageResponseBody runs the validations defined on Post MessageResponseBody
func ValidatePostMessageUnauthorizedResponseBody ¶
func ValidatePostMessageUnauthorizedResponseBody(body *PostMessageUnauthorizedResponseBody) (err error)
ValidatePostMessageUnauthorizedResponseBody runs the validations defined on post message_unauthorized_response_body
func ValidateProjectBadRequestResponseBody ¶
func ValidateProjectBadRequestResponseBody(body *ProjectBadRequestResponseBody) (err error)
ValidateProjectBadRequestResponseBody runs the validations defined on project_bad-request_response_body
func ValidateProjectForbiddenResponseBody ¶
func ValidateProjectForbiddenResponseBody(body *ProjectForbiddenResponseBody) (err error)
ValidateProjectForbiddenResponseBody runs the validations defined on project_forbidden_response_body
func ValidateProjectNotFoundResponseBody ¶
func ValidateProjectNotFoundResponseBody(body *ProjectNotFoundResponseBody) (err error)
ValidateProjectNotFoundResponseBody runs the validations defined on project_not-found_response_body
func ValidateProjectUnauthorizedResponseBody ¶
func ValidateProjectUnauthorizedResponseBody(body *ProjectUnauthorizedResponseBody) (err error)
ValidateProjectUnauthorizedResponseBody runs the validations defined on project_unauthorized_response_body
func ValidateThreadedPostResponseBody ¶
func ValidateThreadedPostResponseBody(body *ThreadedPostResponseBody) (err error)
ValidateThreadedPostResponseBody runs the validations defined on ThreadedPostResponseBody
func ValidateUpdateMessageBadRequestResponseBody ¶
func ValidateUpdateMessageBadRequestResponseBody(body *UpdateMessageBadRequestResponseBody) (err error)
ValidateUpdateMessageBadRequestResponseBody runs the validations defined on update message_bad-request_response_body
func ValidateUpdateMessageForbiddenResponseBody ¶
func ValidateUpdateMessageForbiddenResponseBody(body *UpdateMessageForbiddenResponseBody) (err error)
ValidateUpdateMessageForbiddenResponseBody runs the validations defined on update message_forbidden_response_body
func ValidateUpdateMessageNotFoundResponseBody ¶
func ValidateUpdateMessageNotFoundResponseBody(body *UpdateMessageNotFoundResponseBody) (err error)
ValidateUpdateMessageNotFoundResponseBody runs the validations defined on update message_not-found_response_body
func ValidateUpdateMessageResponseBody ¶
func ValidateUpdateMessageResponseBody(body *UpdateMessageResponseBody) (err error)
ValidateUpdateMessageResponseBody runs the validations defined on Update MessageResponseBody
func ValidateUpdateMessageUnauthorizedResponseBody ¶
func ValidateUpdateMessageUnauthorizedResponseBody(body *UpdateMessageUnauthorizedResponseBody) (err error)
ValidateUpdateMessageUnauthorizedResponseBody runs the validations defined on update message_unauthorized_response_body
Types ¶
type AuthorPhotoResponseBody ¶
type AuthorPhotoResponseBody struct {
URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"`
}
AuthorPhotoResponseBody is used to define fields on response body types.
type Client ¶
type Client struct { // Project Doer is the HTTP client used to make requests to the project // endpoint. ProjectDoer goahttp.Doer // Data Doer is the HTTP client used to make requests to the data endpoint. DataDoer goahttp.Doer // PostMessage Doer is the HTTP client used to make requests to the post // message endpoint. PostMessageDoer goahttp.Doer // UpdateMessage Doer is the HTTP client used to make requests to the update // message endpoint. UpdateMessageDoer goahttp.Doer // DeleteMessage Doer is the HTTP client used to make requests to the delete // message endpoint. DeleteMessageDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the discussion service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the discussion service servers.
func (*Client) BuildDataRequest ¶
BuildDataRequest instantiates a HTTP request object with method and path set to call the "discussion" service "data" endpoint
func (*Client) BuildDeleteMessageRequest ¶
func (c *Client) BuildDeleteMessageRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildDeleteMessageRequest instantiates a HTTP request object with method and path set to call the "discussion" service "delete message" endpoint
func (*Client) BuildPostMessageRequest ¶
BuildPostMessageRequest instantiates a HTTP request object with method and path set to call the "discussion" service "post message" endpoint
func (*Client) BuildProjectRequest ¶
BuildProjectRequest instantiates a HTTP request object with method and path set to call the "discussion" service "project" endpoint
func (*Client) BuildUpdateMessageRequest ¶
func (c *Client) BuildUpdateMessageRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildUpdateMessageRequest instantiates a HTTP request object with method and path set to call the "discussion" service "update message" endpoint
func (*Client) Data ¶
Data returns an endpoint that makes HTTP requests to the discussion service data server.
func (*Client) DeleteMessage ¶
DeleteMessage returns an endpoint that makes HTTP requests to the discussion service delete message server.
func (*Client) PostMessage ¶
PostMessage returns an endpoint that makes HTTP requests to the discussion service post message server.
func (*Client) Project ¶
Project returns an endpoint that makes HTTP requests to the discussion service project server.
func (*Client) UpdateMessage ¶
UpdateMessage returns an endpoint that makes HTTP requests to the discussion service update message server.
type DataBadRequestResponseBody ¶
type DataBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DataBadRequestResponseBody is the type of the "discussion" service "data" endpoint HTTP response body for the "bad-request" error.
type DataForbiddenResponseBody ¶
type DataForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DataForbiddenResponseBody is the type of the "discussion" service "data" endpoint HTTP response body for the "forbidden" error.
type DataNotFoundResponseBody ¶
type DataNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DataNotFoundResponseBody is the type of the "discussion" service "data" endpoint HTTP response body for the "not-found" error.
type DataResponseBody ¶
type DataResponseBody struct {
Posts []*ThreadedPostResponseBody `form:"posts,omitempty" json:"posts,omitempty" xml:"posts,omitempty"`
}
DataResponseBody is the type of the "discussion" service "data" endpoint HTTP response body.
type DataUnauthorizedResponseBody ¶
type DataUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DataUnauthorizedResponseBody is the type of the "discussion" service "data" endpoint HTTP response body for the "unauthorized" error.
type DeleteMessageBadRequestResponseBody ¶
type DeleteMessageBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeleteMessageBadRequestResponseBody is the type of the "discussion" service "delete message" endpoint HTTP response body for the "bad-request" error.
type DeleteMessageForbiddenResponseBody ¶
type DeleteMessageForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeleteMessageForbiddenResponseBody is the type of the "discussion" service "delete message" endpoint HTTP response body for the "forbidden" error.
type DeleteMessageNotFoundResponseBody ¶
type DeleteMessageNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeleteMessageNotFoundResponseBody is the type of the "discussion" service "delete message" endpoint HTTP response body for the "not-found" error.
type DeleteMessageUnauthorizedResponseBody ¶
type DeleteMessageUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DeleteMessageUnauthorizedResponseBody is the type of the "discussion" service "delete message" endpoint HTTP response body for the "unauthorized" error.
type NewPostRequestBody ¶
type NewPostRequestBody struct { ThreadID *int64 `form:"threadId,omitempty" json:"threadId,omitempty" xml:"threadId,omitempty"` Body string `form:"body" json:"body" xml:"body"` ProjectID *int32 `form:"projectId,omitempty" json:"projectId,omitempty" xml:"projectId,omitempty"` Bookmark *string `form:"bookmark,omitempty" json:"bookmark,omitempty" xml:"bookmark,omitempty"` }
NewPostRequestBody is used to define fields on request body types.
type PostAuthorResponseBody ¶
type PostAuthorResponseBody struct { ID *int32 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` Photo *AuthorPhotoResponseBody `form:"photo,omitempty" json:"photo,omitempty" xml:"photo,omitempty"` }
PostAuthorResponseBody is used to define fields on response body types.
type PostMessageBadRequestResponseBody ¶
type PostMessageBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
PostMessageBadRequestResponseBody is the type of the "discussion" service "post message" endpoint HTTP response body for the "bad-request" error.
type PostMessageForbiddenResponseBody ¶
type PostMessageForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
PostMessageForbiddenResponseBody is the type of the "discussion" service "post message" endpoint HTTP response body for the "forbidden" error.
type PostMessageNotFoundResponseBody ¶
type PostMessageNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
PostMessageNotFoundResponseBody is the type of the "discussion" service "post message" endpoint HTTP response body for the "not-found" error.
type PostMessageRequestBody ¶
type PostMessageRequestBody struct {
Post *NewPostRequestBody `form:"post" json:"post" xml:"post"`
}
PostMessageRequestBody is the type of the "discussion" service "post message" endpoint HTTP request body.
func NewPostMessageRequestBody ¶
func NewPostMessageRequestBody(p *discussion.PostMessagePayload) *PostMessageRequestBody
NewPostMessageRequestBody builds the HTTP request body from the payload of the "post message" endpoint of the "discussion" service.
type PostMessageResponseBody ¶
type PostMessageResponseBody struct {
Post *ThreadedPostResponseBody `form:"post,omitempty" json:"post,omitempty" xml:"post,omitempty"`
}
PostMessageResponseBody is the type of the "discussion" service "post message" endpoint HTTP response body.
type PostMessageUnauthorizedResponseBody ¶
type PostMessageUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
PostMessageUnauthorizedResponseBody is the type of the "discussion" service "post message" endpoint HTTP response body for the "unauthorized" error.
type ProjectBadRequestResponseBody ¶
type ProjectBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ProjectBadRequestResponseBody is the type of the "discussion" service "project" endpoint HTTP response body for the "bad-request" error.
type ProjectForbiddenResponseBody ¶
type ProjectForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ProjectForbiddenResponseBody is the type of the "discussion" service "project" endpoint HTTP response body for the "forbidden" error.
type ProjectNotFoundResponseBody ¶
type ProjectNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ProjectNotFoundResponseBody is the type of the "discussion" service "project" endpoint HTTP response body for the "not-found" error.
type ProjectResponseBody ¶
type ProjectResponseBody struct {
Posts []*ThreadedPostResponseBody `form:"posts,omitempty" json:"posts,omitempty" xml:"posts,omitempty"`
}
ProjectResponseBody is the type of the "discussion" service "project" endpoint HTTP response body.
type ProjectUnauthorizedResponseBody ¶
type ProjectUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
ProjectUnauthorizedResponseBody is the type of the "discussion" service "project" endpoint HTTP response body for the "unauthorized" error.
type ThreadedPostResponseBody ¶
type ThreadedPostResponseBody struct { ID *int64 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` CreatedAt *int64 `form:"createdAt,omitempty" json:"createdAt,omitempty" xml:"createdAt,omitempty"` UpdatedAt *int64 `form:"updatedAt,omitempty" json:"updatedAt,omitempty" xml:"updatedAt,omitempty"` Author *PostAuthorResponseBody `form:"author,omitempty" json:"author,omitempty" xml:"author,omitempty"` Replies []*ThreadedPostResponseBody `form:"replies,omitempty" json:"replies,omitempty" xml:"replies,omitempty"` Body *string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty"` Bookmark *string `form:"bookmark,omitempty" json:"bookmark,omitempty" xml:"bookmark,omitempty"` }
ThreadedPostResponseBody is used to define fields on response body types.
type UpdateMessageBadRequestResponseBody ¶
type UpdateMessageBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateMessageBadRequestResponseBody is the type of the "discussion" service "update message" endpoint HTTP response body for the "bad-request" error.
type UpdateMessageForbiddenResponseBody ¶
type UpdateMessageForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateMessageForbiddenResponseBody is the type of the "discussion" service "update message" endpoint HTTP response body for the "forbidden" error.
type UpdateMessageNotFoundResponseBody ¶
type UpdateMessageNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateMessageNotFoundResponseBody is the type of the "discussion" service "update message" endpoint HTTP response body for the "not-found" error.
type UpdateMessageRequestBody ¶
type UpdateMessageRequestBody struct {
Body string `form:"body" json:"body" xml:"body"`
}
UpdateMessageRequestBody is the type of the "discussion" service "update message" endpoint HTTP request body.
func NewUpdateMessageRequestBody ¶
func NewUpdateMessageRequestBody(p *discussion.UpdateMessagePayload) *UpdateMessageRequestBody
NewUpdateMessageRequestBody builds the HTTP request body from the payload of the "update message" endpoint of the "discussion" service.
type UpdateMessageResponseBody ¶
type UpdateMessageResponseBody struct {
Post *ThreadedPostResponseBody `form:"post,omitempty" json:"post,omitempty" xml:"post,omitempty"`
}
UpdateMessageResponseBody is the type of the "discussion" service "update message" endpoint HTTP response body.
type UpdateMessageUnauthorizedResponseBody ¶
type UpdateMessageUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
UpdateMessageUnauthorizedResponseBody is the type of the "discussion" service "update message" endpoint HTTP response body for the "unauthorized" error.