client

package
v0.0.0-...-b9360c4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

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

func DeleteMessageDiscussionPath(postID int64) string

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

func ProjectDiscussionPath(projectID int32) string

ProjectDiscussionPath returns the URL path to the discussion service project HTTP endpoint.

func UpdateMessageDiscussionPath

func UpdateMessageDiscussionPath(postID int64) string

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

func (c *Client) BuildDataRequest(ctx context.Context, v interface{}) (*http.Request, error)

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

func (c *Client) BuildPostMessageRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildPostMessageRequest instantiates a HTTP request object with method and path set to call the "discussion" service "post message" endpoint

func (*Client) BuildProjectRequest

func (c *Client) BuildProjectRequest(ctx context.Context, v interface{}) (*http.Request, error)

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

func (c *Client) Data() goa.Endpoint

Data returns an endpoint that makes HTTP requests to the discussion service data server.

func (*Client) DeleteMessage

func (c *Client) DeleteMessage() goa.Endpoint

DeleteMessage returns an endpoint that makes HTTP requests to the discussion service delete message server.

func (*Client) PostMessage

func (c *Client) PostMessage() goa.Endpoint

PostMessage returns an endpoint that makes HTTP requests to the discussion service post message server.

func (*Client) Project

func (c *Client) Project() goa.Endpoint

Project returns an endpoint that makes HTTP requests to the discussion service project server.

func (*Client) UpdateMessage

func (c *Client) UpdateMessage() goa.Endpoint

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 {
	// 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"`
}

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 {
	// 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"`
}

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 {
	// 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"`
}

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 {
	// 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"`
}

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 {
	// 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"`
}

UpdateMessageUnauthorizedResponseBody is the type of the "discussion" service "update message" endpoint HTTP response body for the "unauthorized" error.

Jump to

Keyboard shortcuts

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