package
0.0.0-20230307095339-03ee383c5cd9
Repository: https://github.com/gridiron-zone/huddle.git
Documentation: pkg.go.dev
# Functions
ActivePollByTimeKey gets the active poll queue key by endTime.
ActivePollQueueKey returns the key for a pollID in the activePollQueue.
AttachmentStoreKey returns the store key that is used to store the attachment having the given id.
DefaultGenesisState returns a default GenesisState.
DefaultParams return default paramsModule.
GetAttachmentIDBytes returns the byte representation of the attachmentID.
GetAttachmentIDFromBytes returns the attachmentID in uint32 format from a byte array.
GetPollIDBytes returns the byte representation of the provided pollID.
GetPollIDFromBytes returns the pollID in uint32 format from a byte array.
GetPostIDBytes returns the byte representation of the postID.
GetPostIDFromBytes returns postID in uint64 format from a byte array.
GetSubspacePostIDBytes returns the byte representation of the subspaceID merged with the postID.
IsPoll tells whether the given attachment represents a poll or not.
NewActivePollData returns a new ActivePollData instance.
NewAnswerResult returns a new PollTallyResults_AnswerResult instance.
NewAttachment returns a new Attachment instance.
NewAttachments returns a new Attachments instance.
NewEntities returns a new Entities instance.
NewGenesisState returns a new GenesisState instance.
NewMedia returns a new Media instance.
NewMsgAddPostAttachment returns a new MsgAddPostAttachment instance.
NewMsgAnswerPoll returns a new MsgAnswerPoll instance.
No description provided by the author
NewMsgCreatePost returns a new MsgCreatePost instance.
NewMsgDeletePost returns a new MsgDeletePost instance.
NewMsgEditPost returns a new MsgEditPost instance.
NewMsgRemovePostAttachment returns a new MsgRemovePostAttachment instance.
No description provided by the author
NewParams returns a new Params instance.
NewPoll returns a new Poll instance.
NewPollTallyResults returns a new PollTallyResults instance.
NewPost allows to build a new Post instance.
NewPostDataEntry returns a new PostDataEntry instance.
NewPostReference returns a new PostReference instance.
NewPostUpdate returns a new PostUpdate instance.
NewProvidedAnswer returns a new Poll_ProvidedAnswer instance.
No description provided by the author
NewQueryParamsRequest returns a new QueryParamsRequest instance.
NewQueryPollAnswersRequest returns a new QueryPollAnswersRequest instance.
NewQueryPostAttachmentsRequest returns a new QueryPostAttachmentsRequest instance.
NewQueryPostRequest returns a new QueryPostRequest instance.
NewQuerySectionPostsRequest returns a new QuerySectionPostsRequest instance.
NewQuerySubspacePostsRequest returns a new QuerySubspacePostsRequest instance.
NewSubspaceDataEntry returns a new SubspaceDataEntry instance.
NewTextTag returns a new TextTag instance.
NewURL returns a new Url instance.
NewUserAnswer returns a new UserAnswer instance.
NextAttachmentIDStoreKey returns the store key that is used to store the attachment id to be used next for the given post.
NextPostIDStoreKey returns the key uses to store the next post id for the given subspace.
PackAttachments packs the given AttachmentContent instances as Any instances.
ParamKeyTable Key declaration for parameters.
ParseAttachmentID parses the given value as an attachment id, returning an error if it's invalid.
ParsePostID parses the given value as a post id, returning an error if it's invalid.
PollAnswersPrefix returns the store prefix used to store the polls associated with the given post.
PollAnswerStoreKey returns the store key used to store the poll answer for the given user.
PostAttachmentsPrefix returns the store prefix used to store all the given post attachments.
PostSectionStoreKey returns the key used to store the section reference for the given post.
PostStoreKey returns the key for a specific post.
No description provided by the author
No description provided by the author
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
SectionPostsPrefix returns the prefix used to store all the section references for the given section.
SplitActivePollQueueKey split the active poll key and returns the poll id and endTime.
No description provided by the author
SubspacePostsPrefix returns the store prefix used to store all the posts related to the given subspace.
SubspaceSectionsPrefix returns the prefix used to store all the section references for the given subspace.
UnpackAttachments unpacks the given Any instances as AttachmentContent.
ValidateGenesis validates the given genesis state and returns an error if something is invalid.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
DefaultParamsSpace represents the default paramspace for the Params keeper.
No description provided by the author
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
Posts module event types.
No description provided by the author
This reference represents a quote of the specified post.
This reference represents a reply to the specified post.
This reference represents a repost of the specified post.
No reference specified.
No description provided by the author
Everyone will be able to reply to this post.
Only followers of the author will be able to reply to this post.
Only people mentioned inside this post will be able to reply.
Only the author mutual followers will be able to reply to this post.
No reply setting specified.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
AminoCodec references the global x/posts module codec.
No description provided by the author
DefaultMaxTextLength represents the default max length for post texts.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxTextLengthKey represents the key used to store the max length for posts texts.
No description provided by the author
No description provided by the author
PermissionComment identifies users that can comment posts inside the subspace.
PermissionEditOwnContent allows users to edit their own content inside the subspace.
PermissionInteractWithContent allows users to interact with content inside the subspace (eg.
PermissionModerateContent allows users to moderate other user's content.
PermissionWrite identifies users that can create content inside the subspace.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ActivePollData contains the data of an active poll.
Attachment contains the data of a single post attachment.
Contains the details of entities parsed out of the post text.
GenesisState contains the data of the genesis state for the posts module.
Media represents a media attachment.
MsgAddPostAttachment represents the message that should be used when adding an attachment to post.
MsgAddPostAttachmentResponse defines the Msg/AddPostAttachment response type.
MsgAnswerPoll represents the message used to answer a poll.
MsgAnswerPollResponse represents the MSg/AnswerPoll response type.
MsgCreatePost represents the message to be used to create a post.
MsgCreatePostResponse defines the Msg/CreatePost response type.
MsgDeletePost represents the message used when deleting a post.
MsgDeletePostResponse represents the Msg/DeletePost response type.
MsgEditPost represents the message to be used to edit a post.
MsgCreatePostResponse defines the Msg/EditPost response type.
MsgRemovePostAttachment represents the message to be used when removing an attachment from a post.
MsgRemovePostAttachmentResponse defines the Msg/RemovePostAttachment response type.
Params contains the parameters for the posts module.
Poll represents a poll attachment.
Provided answer contains the details of a possible poll answer.
PollTallyResults contains the tally results for a poll.
AnswerResult contains the result of a single poll provided answer.
Post contains all the information about a single post.
PostDataEntry contains the data of a given post.
PostReference contains the details of a post reference.
No description provided by the author
No description provided by the author
PostUpdate contains all the data that can be updated about a post.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryPollAnswersRequest is the request type for the Query/PollAnswers RPC method.
QueryPollAnswersResponse is the response type for the Query/PollAnswers RPC method.
QueryPostsRequest is the request type for the Query/PostAttachments RPC method.
QueryPostAttachmentsResponse is the response type for the Query/PostAttachments RPC method.
QueryPostRequest is the request type for the Query/Post RPC method.
QueryPostResponse is the response type for the Query/Post RPC method.
QuerySectionPostsRequest is the request type for the Query/SectionPosts RPC method.
QuerySectionPostsResponse is the response type for the Query/SectionPosts RPC method.
QuerySubspacePostsRequest is the request type for the Query/SubspacePosts RPC method.
QuerySubspacePostsResponse is the response type for the Query/SubspacePosts RPC method.
SubspaceDataEntry contains the data for a given subspace.
TextTag represents a tag within the post text.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Url contains the details of a generic URL.
UserAnswer represents a user answer to a poll.
# Interfaces
AttachmentContent represents an attachment content.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
PostsHooks event hooks for posts objects (noalias).
ProfilesKeeper represents a keeper that deals with profiles.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
RelationshipsKeeper represents a keeper that deals with relationships.
SubspacesKeeper represents a keeper that deals with subspaces.
# Type aliases
Attachments represents a slice of Attachment objects.
MultiPostsHooks combines multiple posts hooks, all hook functions are run in array sequence.
PostReferenceType represents the different types of references.
ReplySetting contains the possible reply settings that a post can have.