Documentation ¶
Index ¶
Constants ¶
View Source
const ( ParamPostID = "post_id" ParamSortBy = "sort_by" ParamSortOrder = "sort_order" ParamParentID = "parent_id" ParamCreationTime = "creation_time" ParamSubspace = "subspace" ParamCreator = "creator" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddReactionReq ¶ added in v0.2.0
type AddReactionReq struct { BaseReq rest.BaseReq `json:"base_req"` PostID string `json:"post_id"` Reaction string `json:"reaction"` }
AddReactionReq defines the properties of a reaction adding request's body.
type AnswerPollPostReq ¶ added in v0.3.0
type CreatePostReq ¶ added in v0.2.0
type CreatePostReq struct { BaseReq rest.BaseReq `json:"base_req"` Message string `json:"message"` ParentID string `json:"parent_id"` AllowsComments bool `json:"allows_comments"` Subspace string `json:"subspace"` OptionalData types.OptionalData `json:"optional_data"` CreationTime time.Time `json:"creation_time"` Medias types.Attachments `json:"attachments,omitempty"` PollData *types.PollData `json:"poll_data,omitempty"` }
CreatePostReq defines the properties of a post creation request's body.
type RegisterReactionReq ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.