Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestSortBy = "sort_by" RestSortOrder = "sort_order" RestParentID = "parent_id" RestCreationTime = "creation_time" RestAllowsComments = "allows_comments" RestSubspace = "subspace" RestCreator = "creator" )
REST Variable names nolint
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes - Central function to define routes that get registered by the main application
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 map[string]string `json:"optional_data"` CreationTime time.Time `json:"creation_time"` Medias types.PostMedias `json:"medias,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.