client

package
v0.0.0-...-0250c29 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcknowledgeModerationPath

func AcknowledgeModerationPath(id int32) string

AcknowledgeModerationPath returns the URL path to the moderation service acknowledge HTTP endpoint.

func AddModerationPath

func AddModerationPath() string

AddModerationPath returns the URL path to the moderation service add HTTP endpoint.

func BuildAcknowledgePayload

func BuildAcknowledgePayload(moderationAcknowledgeID string, moderationAcknowledgeAction string, moderationAcknowledgeAuth string) (*moderation.AcknowledgePayload, error)

BuildAcknowledgePayload builds the payload for the moderation acknowledge endpoint from CLI flags.

func BuildAddPayload

func BuildAddPayload(moderationAddBody string, moderationAddAuth string) (*moderation.ModerationAddPayload, error)

BuildAddPayload builds the payload for the moderation add endpoint from CLI flags.

func BuildCancelPayload

func BuildCancelPayload(moderationCancelPostID string, moderationCancelPostType string, moderationCancelAuth string) (*moderation.CancelPayload, error)

BuildCancelPayload builds the payload for the moderation cancel endpoint from CLI flags.

func BuildCheckUserReportPayload

func BuildCheckUserReportPayload(moderationCheckUserReportPostID string, moderationCheckUserReportPostType string, moderationCheckUserReportAuth string) (*moderation.CheckUserReportPayload, error)

BuildCheckUserReportPayload builds the payload for the moderation checkUserReport endpoint from CLI flags.

func BuildGetContentPayload

func BuildGetContentPayload(moderationGetContentPostType string, moderationGetContentPostID string, moderationGetContentAuth string) (*moderation.GetContentPayload, error)

BuildGetContentPayload builds the payload for the moderation getContent endpoint from CLI flags.

func BuildListRequestsPayload

func BuildListRequestsPayload(moderationListRequestsPage string, moderationListRequestsPageSize string, moderationListRequestsAuth string) (*moderation.ListRequestsPayload, error)

BuildListRequestsPayload builds the payload for the moderation listRequests endpoint from CLI flags.

func CancelModerationPath

func CancelModerationPath() string

CancelModerationPath returns the URL path to the moderation service cancel HTTP endpoint.

func CheckUserReportModerationPath

func CheckUserReportModerationPath() string

CheckUserReportModerationPath returns the URL path to the moderation service checkUserReport HTTP endpoint.

func DecodeAcknowledgeResponse

func DecodeAcknowledgeResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeAcknowledgeResponse returns a decoder for responses returned by the moderation acknowledge endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAcknowledgeResponse 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 DecodeAddResponse

func DecodeAddResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeAddResponse returns a decoder for responses returned by the moderation add endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAddResponse 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 DecodeCancelResponse

func DecodeCancelResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeCancelResponse returns a decoder for responses returned by the moderation cancel endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCancelResponse 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 DecodeCheckUserReportResponse

func DecodeCheckUserReportResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeCheckUserReportResponse returns a decoder for responses returned by the moderation checkUserReport endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeCheckUserReportResponse 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 DecodeGetContentResponse

func DecodeGetContentResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeGetContentResponse returns a decoder for responses returned by the moderation getContent endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeGetContentResponse 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 DecodeListRequestsResponse

func DecodeListRequestsResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeListRequestsResponse returns a decoder for responses returned by the moderation listRequests endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListRequestsResponse 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 EncodeAcknowledgeRequest

func EncodeAcknowledgeRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeAcknowledgeRequest returns an encoder for requests sent to the moderation acknowledge server.

func EncodeAddRequest

func EncodeAddRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeAddRequest returns an encoder for requests sent to the moderation add server.

func EncodeCancelRequest

func EncodeCancelRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeCancelRequest returns an encoder for requests sent to the moderation cancel server.

func EncodeCheckUserReportRequest

func EncodeCheckUserReportRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeCheckUserReportRequest returns an encoder for requests sent to the moderation checkUserReport server.

func EncodeGetContentRequest

func EncodeGetContentRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeGetContentRequest returns an encoder for requests sent to the moderation getContent server.

func EncodeListRequestsRequest

func EncodeListRequestsRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeListRequestsRequest returns an encoder for requests sent to the moderation listRequests server.

func GetContentModerationPath

func GetContentModerationPath(postType string, postID int32) string

GetContentModerationPath returns the URL path to the moderation service getContent HTTP endpoint.

func ListRequestsModerationPath

func ListRequestsModerationPath() string

ListRequestsModerationPath returns the URL path to the moderation service listRequests HTTP endpoint.

func NewAcknowledgeBadRequest

func NewAcknowledgeBadRequest(body *AcknowledgeBadRequestResponseBody) *goa.ServiceError

NewAcknowledgeBadRequest builds a moderation service acknowledge endpoint bad-request error.

func NewAcknowledgeForbidden

func NewAcknowledgeForbidden(body *AcknowledgeForbiddenResponseBody) *goa.ServiceError

NewAcknowledgeForbidden builds a moderation service acknowledge endpoint forbidden error.

func NewAcknowledgeModerationRequestOK

func NewAcknowledgeModerationRequestOK(body *AcknowledgeOKResponseBody) *moderation.ModerationRequest

NewAcknowledgeModerationRequestOK builds a "moderation" service "acknowledge" endpoint result from a HTTP "OK" response.

func NewAcknowledgeNotFound

func NewAcknowledgeNotFound(body *AcknowledgeNotFoundResponseBody) *goa.ServiceError

NewAcknowledgeNotFound builds a moderation service acknowledge endpoint not-found error.

func NewAcknowledgeUnauthorized

func NewAcknowledgeUnauthorized(body *AcknowledgeUnauthorizedResponseBody) *goa.ServiceError

NewAcknowledgeUnauthorized builds a moderation service acknowledge endpoint unauthorized error.

func NewAddBadRequest

func NewAddBadRequest(body *AddBadRequestResponseBody) *goa.ServiceError

NewAddBadRequest builds a moderation service add endpoint bad-request error.

func NewAddForbidden

func NewAddForbidden(body *AddForbiddenResponseBody) *goa.ServiceError

NewAddForbidden builds a moderation service add endpoint forbidden error.

func NewAddModerationRequestOK

func NewAddModerationRequestOK(body *AddResponseBody) *moderation.ModerationRequest

NewAddModerationRequestOK builds a "moderation" service "add" endpoint result from a HTTP "OK" response.

func NewAddNotFound

func NewAddNotFound(body *AddNotFoundResponseBody) *goa.ServiceError

NewAddNotFound builds a moderation service add endpoint not-found error.

func NewAddUnauthorized

func NewAddUnauthorized(body *AddUnauthorizedResponseBody) *goa.ServiceError

NewAddUnauthorized builds a moderation service add endpoint unauthorized error.

func NewCancelBadRequest

func NewCancelBadRequest(body *CancelBadRequestResponseBody) *goa.ServiceError

NewCancelBadRequest builds a moderation service cancel endpoint bad-request error.

func NewCancelForbidden

func NewCancelForbidden(body *CancelForbiddenResponseBody) *goa.ServiceError

NewCancelForbidden builds a moderation service cancel endpoint forbidden error.

func NewCancelNotFound

func NewCancelNotFound(body *CancelNotFoundResponseBody) *goa.ServiceError

NewCancelNotFound builds a moderation service cancel endpoint not-found error.

func NewCancelUnauthorized

func NewCancelUnauthorized(body *CancelUnauthorizedResponseBody) *goa.ServiceError

NewCancelUnauthorized builds a moderation service cancel endpoint unauthorized error.

func NewCheckUserReportBadRequest

func NewCheckUserReportBadRequest(body *CheckUserReportBadRequestResponseBody) *goa.ServiceError

NewCheckUserReportBadRequest builds a moderation service checkUserReport endpoint bad-request error.

func NewCheckUserReportForbidden

func NewCheckUserReportForbidden(body *CheckUserReportForbiddenResponseBody) *goa.ServiceError

NewCheckUserReportForbidden builds a moderation service checkUserReport endpoint forbidden error.

func NewCheckUserReportNotFound

func NewCheckUserReportNotFound(body *CheckUserReportNotFoundResponseBody) *goa.ServiceError

NewCheckUserReportNotFound builds a moderation service checkUserReport endpoint not-found error.

func NewCheckUserReportResultOK

func NewCheckUserReportResultOK(body *CheckUserReportOKResponseBody) *moderation.CheckUserReportResult

NewCheckUserReportResultOK builds a "moderation" service "checkUserReport" endpoint result from a HTTP "OK" response.

func NewCheckUserReportUnauthorized

func NewCheckUserReportUnauthorized(body *CheckUserReportUnauthorizedResponseBody) *goa.ServiceError

NewCheckUserReportUnauthorized builds a moderation service checkUserReport endpoint unauthorized error.

func NewGetContentBadRequest

func NewGetContentBadRequest(body *GetContentBadRequestResponseBody) *goa.ServiceError

NewGetContentBadRequest builds a moderation service getContent endpoint bad-request error.

func NewGetContentForbidden

func NewGetContentForbidden(body *GetContentForbiddenResponseBody) *goa.ServiceError

NewGetContentForbidden builds a moderation service getContent endpoint forbidden error.

func NewGetContentNotFound

func NewGetContentNotFound(body *GetContentNotFoundResponseBody) *goa.ServiceError

NewGetContentNotFound builds a moderation service getContent endpoint not-found error.

func NewGetContentUnauthorized

func NewGetContentUnauthorized(body *GetContentUnauthorizedResponseBody) *goa.ServiceError

NewGetContentUnauthorized builds a moderation service getContent endpoint unauthorized error.

func NewListRequestsBadRequest

func NewListRequestsBadRequest(body *ListRequestsBadRequestResponseBody) *goa.ServiceError

NewListRequestsBadRequest builds a moderation service listRequests endpoint bad-request error.

func NewListRequestsForbidden

func NewListRequestsForbidden(body *ListRequestsForbiddenResponseBody) *goa.ServiceError

NewListRequestsForbidden builds a moderation service listRequests endpoint forbidden error.

func NewListRequestsModerationRequestsOK

func NewListRequestsModerationRequestsOK(body *ListRequestsOKResponseBody) *moderationviews.ModerationRequestsView

NewListRequestsModerationRequestsOK builds a "moderation" service "listRequests" endpoint result from a HTTP "OK" response.

func NewListRequestsNotFound

func NewListRequestsNotFound(body *ListRequestsNotFoundResponseBody) *goa.ServiceError

NewListRequestsNotFound builds a moderation service listRequests endpoint not-found error.

func NewListRequestsUnauthorized

func NewListRequestsUnauthorized(body *ListRequestsUnauthorizedResponseBody) *goa.ServiceError

NewListRequestsUnauthorized builds a moderation service listRequests endpoint unauthorized error.

func ValidateAcknowledgeBadRequestResponseBody

func ValidateAcknowledgeBadRequestResponseBody(body *AcknowledgeBadRequestResponseBody) (err error)

ValidateAcknowledgeBadRequestResponseBody runs the validations defined on acknowledge_bad-request_response_body

func ValidateAcknowledgeForbiddenResponseBody

func ValidateAcknowledgeForbiddenResponseBody(body *AcknowledgeForbiddenResponseBody) (err error)

ValidateAcknowledgeForbiddenResponseBody runs the validations defined on acknowledge_forbidden_response_body

func ValidateAcknowledgeForbiddenResponseBody2

func ValidateAcknowledgeForbiddenResponseBody2(body *AcknowledgeForbiddenResponseBody2) (err error)

ValidateAcknowledgeForbiddenResponseBody2 runs the validations defined on AcknowledgeForbiddenResponseBody

func ValidateAcknowledgeNotFoundResponseBody

func ValidateAcknowledgeNotFoundResponseBody(body *AcknowledgeNotFoundResponseBody) (err error)

ValidateAcknowledgeNotFoundResponseBody runs the validations defined on acknowledge_not-found_response_body

func ValidateAcknowledgeNotFoundResponseBody2

func ValidateAcknowledgeNotFoundResponseBody2(body *AcknowledgeNotFoundResponseBody2) (err error)

ValidateAcknowledgeNotFoundResponseBody2 runs the validations defined on AcknowledgeNot FoundResponseBody

func ValidateAcknowledgeOKResponseBody

func ValidateAcknowledgeOKResponseBody(body *AcknowledgeOKResponseBody) (err error)

ValidateAcknowledgeOKResponseBody runs the validations defined on AcknowledgeOKResponseBody

func ValidateAcknowledgeUnauthorizedResponseBody

func ValidateAcknowledgeUnauthorizedResponseBody(body *AcknowledgeUnauthorizedResponseBody) (err error)

ValidateAcknowledgeUnauthorizedResponseBody runs the validations defined on acknowledge_unauthorized_response_body

func ValidateAcknowledgeUnauthorizedResponseBody2

func ValidateAcknowledgeUnauthorizedResponseBody2(body *AcknowledgeUnauthorizedResponseBody2) (err error)

ValidateAcknowledgeUnauthorizedResponseBody2 runs the validations defined on AcknowledgeUnauthorizedResponseBody

func ValidateAddBadRequestResponseBody

func ValidateAddBadRequestResponseBody(body *AddBadRequestResponseBody) (err error)

ValidateAddBadRequestResponseBody runs the validations defined on add_bad-request_response_body

func ValidateAddForbiddenResponseBody

func ValidateAddForbiddenResponseBody(body *AddForbiddenResponseBody) (err error)

ValidateAddForbiddenResponseBody runs the validations defined on add_forbidden_response_body

func ValidateAddNotFoundResponseBody

func ValidateAddNotFoundResponseBody(body *AddNotFoundResponseBody) (err error)

ValidateAddNotFoundResponseBody runs the validations defined on add_not-found_response_body

func ValidateAddResponseBody

func ValidateAddResponseBody(body *AddResponseBody) (err error)

ValidateAddResponseBody runs the validations defined on AddResponseBody

func ValidateAddUnauthorizedResponseBody

func ValidateAddUnauthorizedResponseBody(body *AddUnauthorizedResponseBody) (err error)

ValidateAddUnauthorizedResponseBody runs the validations defined on add_unauthorized_response_body

func ValidateCancelBadRequestResponseBody

func ValidateCancelBadRequestResponseBody(body *CancelBadRequestResponseBody) (err error)

ValidateCancelBadRequestResponseBody runs the validations defined on cancel_bad-request_response_body

func ValidateCancelForbiddenResponseBody

func ValidateCancelForbiddenResponseBody(body *CancelForbiddenResponseBody) (err error)

ValidateCancelForbiddenResponseBody runs the validations defined on cancel_forbidden_response_body

func ValidateCancelNotFoundResponseBody

func ValidateCancelNotFoundResponseBody(body *CancelNotFoundResponseBody) (err error)

ValidateCancelNotFoundResponseBody runs the validations defined on cancel_not-found_response_body

func ValidateCancelUnauthorizedResponseBody

func ValidateCancelUnauthorizedResponseBody(body *CancelUnauthorizedResponseBody) (err error)

ValidateCancelUnauthorizedResponseBody runs the validations defined on cancel_unauthorized_response_body

func ValidateCheckUserReportBadRequestResponseBody

func ValidateCheckUserReportBadRequestResponseBody(body *CheckUserReportBadRequestResponseBody) (err error)

ValidateCheckUserReportBadRequestResponseBody runs the validations defined on checkUserReport_bad-request_response_body

func ValidateCheckUserReportForbiddenResponseBody

func ValidateCheckUserReportForbiddenResponseBody(body *CheckUserReportForbiddenResponseBody) (err error)

ValidateCheckUserReportForbiddenResponseBody runs the validations defined on checkUserReport_forbidden_response_body

func ValidateCheckUserReportNotFoundResponseBody

func ValidateCheckUserReportNotFoundResponseBody(body *CheckUserReportNotFoundResponseBody) (err error)

ValidateCheckUserReportNotFoundResponseBody runs the validations defined on checkUserReport_not-found_response_body

func ValidateCheckUserReportOKResponseBody

func ValidateCheckUserReportOKResponseBody(body *CheckUserReportOKResponseBody) (err error)

ValidateCheckUserReportOKResponseBody runs the validations defined on CheckUserReportOKResponseBody

func ValidateCheckUserReportUnauthorizedResponseBody

func ValidateCheckUserReportUnauthorizedResponseBody(body *CheckUserReportUnauthorizedResponseBody) (err error)

ValidateCheckUserReportUnauthorizedResponseBody runs the validations defined on checkUserReport_unauthorized_response_body

func ValidateCheckUserReportUnauthorizedResponseBody2

func ValidateCheckUserReportUnauthorizedResponseBody2(body *CheckUserReportUnauthorizedResponseBody2) (err error)

ValidateCheckUserReportUnauthorizedResponseBody2 runs the validations defined on CheckUserReportUnauthorizedResponseBody

func ValidateGetContentBadRequestResponseBody

func ValidateGetContentBadRequestResponseBody(body *GetContentBadRequestResponseBody) (err error)

ValidateGetContentBadRequestResponseBody runs the validations defined on getContent_bad-request_response_body

func ValidateGetContentForbiddenResponseBody

func ValidateGetContentForbiddenResponseBody(body *GetContentForbiddenResponseBody) (err error)

ValidateGetContentForbiddenResponseBody runs the validations defined on getContent_forbidden_response_body

func ValidateGetContentNotFoundResponseBody

func ValidateGetContentNotFoundResponseBody(body *GetContentNotFoundResponseBody) (err error)

ValidateGetContentNotFoundResponseBody runs the validations defined on getContent_not-found_response_body

func ValidateGetContentUnauthorizedResponseBody

func ValidateGetContentUnauthorizedResponseBody(body *GetContentUnauthorizedResponseBody) (err error)

ValidateGetContentUnauthorizedResponseBody runs the validations defined on getContent_unauthorized_response_body

func ValidateListRequestsBadRequestResponseBody

func ValidateListRequestsBadRequestResponseBody(body *ListRequestsBadRequestResponseBody) (err error)

ValidateListRequestsBadRequestResponseBody runs the validations defined on listRequests_bad-request_response_body

func ValidateListRequestsForbiddenResponseBody

func ValidateListRequestsForbiddenResponseBody(body *ListRequestsForbiddenResponseBody) (err error)

ValidateListRequestsForbiddenResponseBody runs the validations defined on listRequests_forbidden_response_body

func ValidateListRequestsForbiddenResponseBody2

func ValidateListRequestsForbiddenResponseBody2(body *ListRequestsForbiddenResponseBody2) (err error)

ValidateListRequestsForbiddenResponseBody2 runs the validations defined on ListRequestsForbiddenResponseBody

func ValidateListRequestsNotFoundResponseBody

func ValidateListRequestsNotFoundResponseBody(body *ListRequestsNotFoundResponseBody) (err error)

ValidateListRequestsNotFoundResponseBody runs the validations defined on listRequests_not-found_response_body

func ValidateListRequestsUnauthorizedResponseBody

func ValidateListRequestsUnauthorizedResponseBody(body *ListRequestsUnauthorizedResponseBody) (err error)

ValidateListRequestsUnauthorizedResponseBody runs the validations defined on listRequests_unauthorized_response_body

func ValidateListRequestsUnauthorizedResponseBody2

func ValidateListRequestsUnauthorizedResponseBody2(body *ListRequestsUnauthorizedResponseBody2) (err error)

ValidateListRequestsUnauthorizedResponseBody2 runs the validations defined on ListRequestsUnauthorizedResponseBody

func ValidateModerationRequestResponseBody

func ValidateModerationRequestResponseBody(body *ModerationRequestResponseBody) (err error)

ValidateModerationRequestResponseBody runs the validations defined on ModerationRequestResponseBody

func ValidateUserInfoResponseBody

func ValidateUserInfoResponseBody(body *UserInfoResponseBody) (err error)

ValidateUserInfoResponseBody runs the validations defined on UserInfoResponseBody

Types

type AcknowledgeBadRequestResponseBody

type AcknowledgeBadRequestResponseBody 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"`
}

AcknowledgeBadRequestResponseBody is the type of the "moderation" service "acknowledge" endpoint HTTP response body for the "bad-request" error.

type AcknowledgeForbiddenResponseBody

type AcknowledgeForbiddenResponseBody 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"`
}

AcknowledgeForbiddenResponseBody is the type of the "moderation" service "acknowledge" endpoint HTTP response body for the "forbidden" error.

type AcknowledgeForbiddenResponseBody2

type AcknowledgeForbiddenResponseBody2 struct {
	ID                 *int32                `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	PostID             *int32                `form:"postId,omitempty" json:"postId,omitempty" xml:"postId,omitempty"`
	PostType           *string               `form:"postType,omitempty" json:"postType,omitempty" xml:"postType,omitempty"`
	ReportedBy         *int32                `form:"reportedBy,omitempty" json:"reportedBy,omitempty" xml:"reportedBy,omitempty"`
	ReportedByName     *string               `form:"reportedByName,omitempty" json:"reportedByName,omitempty" xml:"reportedByName,omitempty"`
	ReportedAt         *string               `form:"reportedAt,omitempty" json:"reportedAt,omitempty" xml:"reportedAt,omitempty"`
	AcknowledgedBy     *int32                `form:"acknowledgedBy,omitempty" json:"acknowledgedBy,omitempty" xml:"acknowledgedBy,omitempty"`
	AcknowledgedByUser *UserInfoResponseBody `form:"acknowledgedByUser,omitempty" json:"acknowledgedByUser,omitempty" xml:"acknowledgedByUser,omitempty"`
	AcknowledgedAt     *string               `form:"acknowledgedAt,omitempty" json:"acknowledgedAt,omitempty" xml:"acknowledgedAt,omitempty"`
}

AcknowledgeForbiddenResponseBody2 is used to define fields on response body types.

type AcknowledgeNotFoundResponseBody

type AcknowledgeNotFoundResponseBody 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"`
}

AcknowledgeNotFoundResponseBody is the type of the "moderation" service "acknowledge" endpoint HTTP response body for the "not-found" error.

type AcknowledgeNotFoundResponseBody2

type AcknowledgeNotFoundResponseBody2 struct {
	ID                 *int32                `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	PostID             *int32                `form:"postId,omitempty" json:"postId,omitempty" xml:"postId,omitempty"`
	PostType           *string               `form:"postType,omitempty" json:"postType,omitempty" xml:"postType,omitempty"`
	ReportedBy         *int32                `form:"reportedBy,omitempty" json:"reportedBy,omitempty" xml:"reportedBy,omitempty"`
	ReportedByName     *string               `form:"reportedByName,omitempty" json:"reportedByName,omitempty" xml:"reportedByName,omitempty"`
	ReportedAt         *string               `form:"reportedAt,omitempty" json:"reportedAt,omitempty" xml:"reportedAt,omitempty"`
	AcknowledgedBy     *int32                `form:"acknowledgedBy,omitempty" json:"acknowledgedBy,omitempty" xml:"acknowledgedBy,omitempty"`
	AcknowledgedByUser *UserInfoResponseBody `form:"acknowledgedByUser,omitempty" json:"acknowledgedByUser,omitempty" xml:"acknowledgedByUser,omitempty"`
	AcknowledgedAt     *string               `form:"acknowledgedAt,omitempty" json:"acknowledgedAt,omitempty" xml:"acknowledgedAt,omitempty"`
}

AcknowledgeNotFoundResponseBody2 is used to define fields on response body types.

type AcknowledgeOKResponseBody

type AcknowledgeOKResponseBody struct {
	ID                 *int32                `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	PostID             *int32                `form:"postId,omitempty" json:"postId,omitempty" xml:"postId,omitempty"`
	PostType           *string               `form:"postType,omitempty" json:"postType,omitempty" xml:"postType,omitempty"`
	ReportedBy         *int32                `form:"reportedBy,omitempty" json:"reportedBy,omitempty" xml:"reportedBy,omitempty"`
	ReportedByName     *string               `form:"reportedByName,omitempty" json:"reportedByName,omitempty" xml:"reportedByName,omitempty"`
	ReportedAt         *string               `form:"reportedAt,omitempty" json:"reportedAt,omitempty" xml:"reportedAt,omitempty"`
	AcknowledgedBy     *int32                `form:"acknowledgedBy,omitempty" json:"acknowledgedBy,omitempty" xml:"acknowledgedBy,omitempty"`
	AcknowledgedByUser *UserInfoResponseBody `form:"acknowledgedByUser,omitempty" json:"acknowledgedByUser,omitempty" xml:"acknowledgedByUser,omitempty"`
	AcknowledgedAt     *string               `form:"acknowledgedAt,omitempty" json:"acknowledgedAt,omitempty" xml:"acknowledgedAt,omitempty"`
}

AcknowledgeOKResponseBody is the type of the "moderation" service "acknowledge" endpoint HTTP response body.

type AcknowledgeUnauthorizedResponseBody

type AcknowledgeUnauthorizedResponseBody 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"`
}

AcknowledgeUnauthorizedResponseBody is the type of the "moderation" service "acknowledge" endpoint HTTP response body for the "unauthorized" error.

type AcknowledgeUnauthorizedResponseBody2

type AcknowledgeUnauthorizedResponseBody2 struct {
	ID                 *int32                `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	PostID             *int32                `form:"postId,omitempty" json:"postId,omitempty" xml:"postId,omitempty"`
	PostType           *string               `form:"postType,omitempty" json:"postType,omitempty" xml:"postType,omitempty"`
	ReportedBy         *int32                `form:"reportedBy,omitempty" json:"reportedBy,omitempty" xml:"reportedBy,omitempty"`
	ReportedByName     *string               `form:"reportedByName,omitempty" json:"reportedByName,omitempty" xml:"reportedByName,omitempty"`
	ReportedAt         *string               `form:"reportedAt,omitempty" json:"reportedAt,omitempty" xml:"reportedAt,omitempty"`
	AcknowledgedBy     *int32                `form:"acknowledgedBy,omitempty" json:"acknowledgedBy,omitempty" xml:"acknowledgedBy,omitempty"`
	AcknowledgedByUser *UserInfoResponseBody `form:"acknowledgedByUser,omitempty" json:"acknowledgedByUser,omitempty" xml:"acknowledgedByUser,omitempty"`
	AcknowledgedAt     *string               `form:"acknowledgedAt,omitempty" json:"acknowledgedAt,omitempty" xml:"acknowledgedAt,omitempty"`
}

AcknowledgeUnauthorizedResponseBody2 is used to define fields on response body types.

type AddBadRequestResponseBody

type AddBadRequestResponseBody 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"`
}

AddBadRequestResponseBody is the type of the "moderation" service "add" endpoint HTTP response body for the "bad-request" error.

type AddForbiddenResponseBody

type AddForbiddenResponseBody 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"`
}

AddForbiddenResponseBody is the type of the "moderation" service "add" endpoint HTTP response body for the "forbidden" error.

type AddNotFoundResponseBody

type AddNotFoundResponseBody 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"`
}

AddNotFoundResponseBody is the type of the "moderation" service "add" endpoint HTTP response body for the "not-found" error.

type AddRequestBody

type AddRequestBody struct {
	PostID   int32  `form:"postId" json:"postId" xml:"postId"`
	PostType string `form:"postType" json:"postType" xml:"postType"`
}

AddRequestBody is the type of the "moderation" service "add" endpoint HTTP request body.

func NewAddRequestBody

func NewAddRequestBody(p *moderation.ModerationAddPayload) *AddRequestBody

NewAddRequestBody builds the HTTP request body from the payload of the "add" endpoint of the "moderation" service.

type AddResponseBody

type AddResponseBody struct {
	ID                 *int32                `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	PostID             *int32                `form:"postId,omitempty" json:"postId,omitempty" xml:"postId,omitempty"`
	PostType           *string               `form:"postType,omitempty" json:"postType,omitempty" xml:"postType,omitempty"`
	ReportedBy         *int32                `form:"reportedBy,omitempty" json:"reportedBy,omitempty" xml:"reportedBy,omitempty"`
	ReportedByName     *string               `form:"reportedByName,omitempty" json:"reportedByName,omitempty" xml:"reportedByName,omitempty"`
	ReportedAt         *string               `form:"reportedAt,omitempty" json:"reportedAt,omitempty" xml:"reportedAt,omitempty"`
	AcknowledgedBy     *int32                `form:"acknowledgedBy,omitempty" json:"acknowledgedBy,omitempty" xml:"acknowledgedBy,omitempty"`
	AcknowledgedByUser *UserInfoResponseBody `form:"acknowledgedByUser,omitempty" json:"acknowledgedByUser,omitempty" xml:"acknowledgedByUser,omitempty"`
	AcknowledgedAt     *string               `form:"acknowledgedAt,omitempty" json:"acknowledgedAt,omitempty" xml:"acknowledgedAt,omitempty"`
}

AddResponseBody is the type of the "moderation" service "add" endpoint HTTP response body.

type AddUnauthorizedResponseBody

type AddUnauthorizedResponseBody 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"`
}

AddUnauthorizedResponseBody is the type of the "moderation" service "add" endpoint HTTP response body for the "unauthorized" error.

type CancelBadRequestResponseBody

type CancelBadRequestResponseBody 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"`
}

CancelBadRequestResponseBody is the type of the "moderation" service "cancel" endpoint HTTP response body for the "bad-request" error.

type CancelForbiddenResponseBody

type CancelForbiddenResponseBody 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"`
}

CancelForbiddenResponseBody is the type of the "moderation" service "cancel" endpoint HTTP response body for the "forbidden" error.

type CancelNotFoundResponseBody

type CancelNotFoundResponseBody 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"`
}

CancelNotFoundResponseBody is the type of the "moderation" service "cancel" endpoint HTTP response body for the "not-found" error.

type CancelUnauthorizedResponseBody

type CancelUnauthorizedResponseBody 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"`
}

CancelUnauthorizedResponseBody is the type of the "moderation" service "cancel" endpoint HTTP response body for the "unauthorized" error.

type CheckUserReportBadRequestResponseBody

type CheckUserReportBadRequestResponseBody 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"`
}

CheckUserReportBadRequestResponseBody is the type of the "moderation" service "checkUserReport" endpoint HTTP response body for the "bad-request" error.

type CheckUserReportForbiddenResponseBody

type CheckUserReportForbiddenResponseBody 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"`
}

CheckUserReportForbiddenResponseBody is the type of the "moderation" service "checkUserReport" endpoint HTTP response body for the "forbidden" error.

type CheckUserReportNotFoundResponseBody

type CheckUserReportNotFoundResponseBody 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"`
}

CheckUserReportNotFoundResponseBody is the type of the "moderation" service "checkUserReport" endpoint HTTP response body for the "not-found" error.

type CheckUserReportOKResponseBody

type CheckUserReportOKResponseBody struct {
	HasReported *bool `form:"hasReported,omitempty" json:"hasReported,omitempty" xml:"hasReported,omitempty"`
	CanWithdraw *bool `form:"canWithdraw,omitempty" json:"canWithdraw,omitempty" xml:"canWithdraw,omitempty"`
}

CheckUserReportOKResponseBody is the type of the "moderation" service "checkUserReport" endpoint HTTP response body.

type CheckUserReportUnauthorizedResponseBody

type CheckUserReportUnauthorizedResponseBody 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"`
}

CheckUserReportUnauthorizedResponseBody is the type of the "moderation" service "checkUserReport" endpoint HTTP response body for the "unauthorized" error.

type CheckUserReportUnauthorizedResponseBody2

type CheckUserReportUnauthorizedResponseBody2 struct {
	HasReported *bool `form:"hasReported,omitempty" json:"hasReported,omitempty" xml:"hasReported,omitempty"`
	CanWithdraw *bool `form:"canWithdraw,omitempty" json:"canWithdraw,omitempty" xml:"canWithdraw,omitempty"`
}

CheckUserReportUnauthorizedResponseBody2 is used to define fields on response body types.

type Client

type Client struct {
	// Add Doer is the HTTP client used to make requests to the add endpoint.
	AddDoer goahttp.Doer

	// Cancel Doer is the HTTP client used to make requests to the cancel endpoint.
	CancelDoer goahttp.Doer

	// CheckUserReport Doer is the HTTP client used to make requests to the
	// checkUserReport endpoint.
	CheckUserReportDoer goahttp.Doer

	// Acknowledge Doer is the HTTP client used to make requests to the acknowledge
	// endpoint.
	AcknowledgeDoer goahttp.Doer

	// ListRequests Doer is the HTTP client used to make requests to the
	// listRequests endpoint.
	ListRequestsDoer goahttp.Doer

	// GetContent Doer is the HTTP client used to make requests to the getContent
	// endpoint.
	GetContentDoer 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 moderation 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 moderation service servers.

func (*Client) Acknowledge

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

Acknowledge returns an endpoint that makes HTTP requests to the moderation service acknowledge server.

func (*Client) Add

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

Add returns an endpoint that makes HTTP requests to the moderation service add server.

func (*Client) BuildAcknowledgeRequest

func (c *Client) BuildAcknowledgeRequest(ctx context.Context, v any) (*http.Request, error)

BuildAcknowledgeRequest instantiates a HTTP request object with method and path set to call the "moderation" service "acknowledge" endpoint

func (*Client) BuildAddRequest

func (c *Client) BuildAddRequest(ctx context.Context, v any) (*http.Request, error)

BuildAddRequest instantiates a HTTP request object with method and path set to call the "moderation" service "add" endpoint

func (*Client) BuildCancelRequest

func (c *Client) BuildCancelRequest(ctx context.Context, v any) (*http.Request, error)

BuildCancelRequest instantiates a HTTP request object with method and path set to call the "moderation" service "cancel" endpoint

func (*Client) BuildCheckUserReportRequest

func (c *Client) BuildCheckUserReportRequest(ctx context.Context, v any) (*http.Request, error)

BuildCheckUserReportRequest instantiates a HTTP request object with method and path set to call the "moderation" service "checkUserReport" endpoint

func (*Client) BuildGetContentRequest

func (c *Client) BuildGetContentRequest(ctx context.Context, v any) (*http.Request, error)

BuildGetContentRequest instantiates a HTTP request object with method and path set to call the "moderation" service "getContent" endpoint

func (*Client) BuildListRequestsRequest

func (c *Client) BuildListRequestsRequest(ctx context.Context, v any) (*http.Request, error)

BuildListRequestsRequest instantiates a HTTP request object with method and path set to call the "moderation" service "listRequests" endpoint

func (*Client) Cancel

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

Cancel returns an endpoint that makes HTTP requests to the moderation service cancel server.

func (*Client) CheckUserReport

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

CheckUserReport returns an endpoint that makes HTTP requests to the moderation service checkUserReport server.

func (*Client) GetContent

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

GetContent returns an endpoint that makes HTTP requests to the moderation service getContent server.

func (*Client) ListRequests

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

ListRequests returns an endpoint that makes HTTP requests to the moderation service listRequests server.

type GetContentBadRequestResponseBody

type GetContentBadRequestResponseBody 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"`
}

GetContentBadRequestResponseBody is the type of the "moderation" service "getContent" endpoint HTTP response body for the "bad-request" error.

type GetContentForbiddenResponseBody

type GetContentForbiddenResponseBody 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"`
}

GetContentForbiddenResponseBody is the type of the "moderation" service "getContent" endpoint HTTP response body for the "forbidden" error.

type GetContentNotFoundResponseBody

type GetContentNotFoundResponseBody 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"`
}

GetContentNotFoundResponseBody is the type of the "moderation" service "getContent" endpoint HTTP response body for the "not-found" error.

type GetContentUnauthorizedResponseBody

type GetContentUnauthorizedResponseBody 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"`
}

GetContentUnauthorizedResponseBody is the type of the "moderation" service "getContent" endpoint HTTP response body for the "unauthorized" error.

type ListRequestsBadRequestResponseBody

type ListRequestsBadRequestResponseBody 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"`
}

ListRequestsBadRequestResponseBody is the type of the "moderation" service "listRequests" endpoint HTTP response body for the "bad-request" error.

type ListRequestsForbiddenResponseBody

type ListRequestsForbiddenResponseBody 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"`
}

ListRequestsForbiddenResponseBody is the type of the "moderation" service "listRequests" endpoint HTTP response body for the "forbidden" error.

type ListRequestsForbiddenResponseBody2

type ListRequestsForbiddenResponseBody2 struct {
	Requests   []*ModerationRequestResponseBody `form:"requests,omitempty" json:"requests,omitempty" xml:"requests,omitempty"`
	TotalPages *int                             `form:"total_pages,omitempty" json:"total_pages,omitempty" xml:"total_pages,omitempty"`
}

ListRequestsForbiddenResponseBody2 is used to define fields on response body types.

type ListRequestsNotFoundResponseBody

type ListRequestsNotFoundResponseBody 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"`
}

ListRequestsNotFoundResponseBody is the type of the "moderation" service "listRequests" endpoint HTTP response body for the "not-found" error.

type ListRequestsOKResponseBody

type ListRequestsOKResponseBody struct {
	Requests   []*ModerationRequestResponseBody `form:"requests,omitempty" json:"requests,omitempty" xml:"requests,omitempty"`
	TotalPages *int                             `form:"total_pages,omitempty" json:"total_pages,omitempty" xml:"total_pages,omitempty"`
}

ListRequestsOKResponseBody is the type of the "moderation" service "listRequests" endpoint HTTP response body.

type ListRequestsUnauthorizedResponseBody

type ListRequestsUnauthorizedResponseBody 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"`
}

ListRequestsUnauthorizedResponseBody is the type of the "moderation" service "listRequests" endpoint HTTP response body for the "unauthorized" error.

type ListRequestsUnauthorizedResponseBody2

type ListRequestsUnauthorizedResponseBody2 struct {
	Requests   []*ModerationRequestResponseBody `form:"requests,omitempty" json:"requests,omitempty" xml:"requests,omitempty"`
	TotalPages *int                             `form:"total_pages,omitempty" json:"total_pages,omitempty" xml:"total_pages,omitempty"`
}

ListRequestsUnauthorizedResponseBody2 is used to define fields on response body types.

type ModerationRequestResponseBody

type ModerationRequestResponseBody struct {
	ID                 *int32                `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	PostID             *int32                `form:"postId,omitempty" json:"postId,omitempty" xml:"postId,omitempty"`
	PostType           *string               `form:"postType,omitempty" json:"postType,omitempty" xml:"postType,omitempty"`
	ReportedBy         *int32                `form:"reportedBy,omitempty" json:"reportedBy,omitempty" xml:"reportedBy,omitempty"`
	ReportedByName     *string               `form:"reportedByName,omitempty" json:"reportedByName,omitempty" xml:"reportedByName,omitempty"`
	ReportedAt         *string               `form:"reportedAt,omitempty" json:"reportedAt,omitempty" xml:"reportedAt,omitempty"`
	AcknowledgedBy     *int32                `form:"acknowledgedBy,omitempty" json:"acknowledgedBy,omitempty" xml:"acknowledgedBy,omitempty"`
	AcknowledgedByUser *UserInfoResponseBody `form:"acknowledgedByUser,omitempty" json:"acknowledgedByUser,omitempty" xml:"acknowledgedByUser,omitempty"`
	AcknowledgedAt     *string               `form:"acknowledgedAt,omitempty" json:"acknowledgedAt,omitempty" xml:"acknowledgedAt,omitempty"`
}

ModerationRequestResponseBody is used to define fields on response body types.

type UserInfoResponseBody

type UserInfoResponseBody struct {
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
}

UserInfoResponseBody is used to define fields on response body types.

Jump to

Keyboard shortcuts

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