Documentation ¶
Index ¶
- Constants
- type ApplicationLink
- type ApplicationLinkInfo
- type AuthzGrant
- type Blockage
- type ChainLink
- type Contract
- type DTagTransferRequest
- type FeeGrant
- type MsgSendTip
- type MsgSendTipTarget
- type MultiNotificationMessage
- type Notification
- type NotificationData
- type NotificationDataWithConfig
- type NotificationMessage
- type NotificationRecipient
- type NotificationToken
- type NotificationTopicRecipient
- type NotificationUserRecipient
- type PollAnswer
- type Post
- type PostAttachment
- type PostTarget
- type PostTransaction
- type PostsParams
- type Profile
- type ProfileScore
- type ProfileScoreDetails
- type ProfilesParams
- type Reaction
- type ReactionParams
- type Reason
- type RegisteredReaction
- type Relationship
- type Report
- type ReportsParams
- type Section
- type SingleNotificationMessage
- type StdNotificationDataWithConfig
- func (s StdNotificationDataWithConfig) GetAPNSConfig() *messaging.APNSConfig
- func (s StdNotificationDataWithConfig) GetAdditionalData() map[string]string
- func (s StdNotificationDataWithConfig) GetAndroidConfig() *messaging.AndroidConfig
- func (s StdNotificationDataWithConfig) GetNotification() *messaging.Notification
- func (s StdNotificationDataWithConfig) GetType() string
- func (s StdNotificationDataWithConfig) GetWebpushConfig() *messaging.WebpushConfig
- func (s StdNotificationDataWithConfig) WithAPNSConfig(config *messaging.APNSConfig) *StdNotificationDataWithConfig
- func (s StdNotificationDataWithConfig) WithAndroidConfig(config *messaging.AndroidConfig) *StdNotificationDataWithConfig
- func (s StdNotificationDataWithConfig) WithWebpushConfig(config *messaging.WebpushConfig) *StdNotificationDataWithConfig
- type Subspace
- type Target
- type TargetContent
- type TargetUser
- type Tip
- type TipMsg
- type UserGroup
- type UserGroupMember
- type UserPermission
- type UserTarget
Constants ¶
View Source
const ( NotificationTypeKey = "type" TransactionHashKey = "tx_hash" TransactionErrorKey = "tx_error" RecipientKey = "recipient" SubspaceIDKey = "subspace_id" RelationshipCreatorKey = "relationship_creator" PostIDKey = "post_id" PostAuthorKey = "post_author" RepostIDKey = "repost_id" RepostAuthorKey = "repost_author" CommentIDKey = "comment_id" CommentAuthorKey = "comment_author" ReplyIDKey = "reply_id" ReplyAuthorKey = "reply_author" QuoteIDKey = "quote_id" QuoteAuthorKey = "quote_author" ReactionIDKey = "reaction_id" ReactionAuthorKey = "reaction_author" ClickActionKey = "click_action" ClickActionValue = "open" NotificationActionKey = "action" ActionOpenPost = "open_post" ActionOpenProfile = "open_profile" TypeTransactionSuccess = "transaction_success" TypeTransactionFailed = "transaction_fail" TypeFollow = "follow" TypeReply = "reply" TypeComment = "comment" TypeRepost = "repost" TypeQuote = "quote" TypeMention = "mention" TypeReaction = "reaction" )
View Source
const (
ContractTypeTips = "tips"
)
View Source
const (
Year = time.Hour * 24 * 365
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationLink ¶
type ApplicationLink struct { profilestypes.ApplicationLink Height int64 }
func NewApplicationLink ¶
func NewApplicationLink(link profilestypes.ApplicationLink, height int64) ApplicationLink
type ApplicationLinkInfo ¶
func NewApplicationInfo ¶
func NewApplicationInfo(user, application, username string) ApplicationLinkInfo
type AuthzGrant ¶
type AuthzGrant struct { Granter string Grantee string Authorization authz.Authorization Expiration *time.Time Height int64 }
func NewAuthzGrant ¶
func NewAuthzGrant(granter, grantee string, authorization authz.Authorization, expiration *time.Time, height int64) AuthzGrant
type Blockage ¶
type Blockage struct { relationshipstypes.UserBlock Height int64 }
func NewBlockage ¶
func NewBlockage(blockage relationshipstypes.UserBlock, height int64) Blockage
type ChainLink ¶
type ChainLink struct { profilestypes.ChainLink Height int64 }
func NewChainLink ¶
func NewChainLink(link profilestypes.ChainLink, height int64) ChainLink
type DTagTransferRequest ¶
type DTagTransferRequest struct { profilestypes.DTagTransferRequest Height int64 }
func NewDTagTransferRequest ¶
func NewDTagTransferRequest(request profilestypes.DTagTransferRequest, height int64) DTagTransferRequest
type FeeGrant ¶
type FeeGrant struct { Granter string Grantee string Allowance feegrant.FeeAllowanceI Height int64 }
func NewFeeGrant ¶
type MsgSendTip ¶
type MsgSendTip struct { Amount sdk.Coins `json:"amount"` Target *MsgSendTipTarget `json:"target"` }
type MsgSendTipTarget ¶
type MsgSendTipTarget struct { User *TargetUser `json:"user_target"` Content *TargetContent `json:"content_target"` }
func (*MsgSendTipTarget) Equal ¶
func (t *MsgSendTipTarget) Equal(u *MsgSendTipTarget) bool
type MultiNotificationMessage ¶
type MultiNotificationMessage struct {
*messaging.MulticastMessage
}
func NewMultiNotificationMessage ¶
func NewMultiNotificationMessage(message *messaging.MulticastMessage) *MultiNotificationMessage
type Notification ¶
type Notification struct { Recipient NotificationRecipient Type string Data map[string]string Timestamp time.Time }
func NewNotification ¶
func NewNotification(recipient NotificationRecipient, notificationType string, data map[string]string, timestamp time.Time) Notification
type NotificationData ¶
type NotificationData interface { GetType() string GetNotification() *messaging.Notification GetAdditionalData() map[string]string }
type NotificationDataWithConfig ¶
type NotificationDataWithConfig interface { NotificationData GetAndroidConfig() *messaging.AndroidConfig GetAPNSConfig() *messaging.APNSConfig GetWebpushConfig() *messaging.WebpushConfig }
type NotificationMessage ¶
type NotificationMessage interface {
// contains filtered or unexported methods
}
type NotificationRecipient ¶
NotificationRecipient represents a generic Firebase message recipient
func NewNotificationTopicRecipient ¶
func NewNotificationTopicRecipient(topic string) NotificationRecipient
func NewNotificationUserRecipient ¶
func NewNotificationUserRecipient(address string) NotificationRecipient
type NotificationToken ¶
func NewNotificationToken ¶
func NewNotificationToken(userAddress string, token string, timestamp time.Time) NotificationToken
type NotificationTopicRecipient ¶
type NotificationTopicRecipient struct {
Topic string
}
NotificationTopicRecipient represents a topic Firebase message recipient. Once this type if used, all the applications subscribed to the specified topic will receive the notification
func (*NotificationTopicRecipient) GetValue ¶
func (recipient *NotificationTopicRecipient) GetValue() string
func (*NotificationTopicRecipient) String ¶
func (recipient *NotificationTopicRecipient) String() string
type NotificationUserRecipient ¶
type NotificationUserRecipient struct {
Address string
}
NotificationUserRecipient represents a single user Firebase message recipient. Once this type is used as the recipient of a notification, the user will receive a notification on all and only their personal devices
func (*NotificationUserRecipient) GetValue ¶
func (recipient *NotificationUserRecipient) GetValue() string
func (*NotificationUserRecipient) String ¶
func (recipient *NotificationUserRecipient) String() string
type PollAnswer ¶
type PollAnswer struct { poststypes.UserAnswer Height int64 }
func NewPollAnswer ¶
func NewPollAnswer(answer poststypes.UserAnswer, height int64) PollAnswer
type Post ¶
type Post struct { poststypes.Post Height int64 }
type PostAttachment ¶
type PostAttachment struct { poststypes.Attachment Height int64 }
func NewPostAttachment ¶
func NewPostAttachment(attachment poststypes.Attachment, height int64) PostAttachment
type PostTarget ¶
type PostTarget struct {
PostID uint64
}
func NewPostTarget ¶
func NewPostTarget(postID uint64) PostTarget
type PostTransaction ¶
func NewPostTransaction ¶
func NewPostTransaction(subspaceID uint64, postID uint64, txHash string) PostTransaction
type PostsParams ¶
type PostsParams struct { poststypes.Params Height int64 }
func NewPostsParams ¶
func NewPostsParams(params poststypes.Params, height int64) PostsParams
type Profile ¶
type Profile struct { *profilestypes.Profile Height int64 }
func NewProfile ¶
func NewProfile(profile *profilestypes.Profile, height int64) *Profile
type ProfileScore ¶
type ProfileScore struct { DesmosAddress string Application string Username string Details ProfileScoreDetails Timestamp time.Time }
func NewApplicationLinkScore ¶
func NewApplicationLinkScore(address string, application string, username string, details ProfileScoreDetails, timestamp time.Time) *ProfileScore
type ProfileScoreDetails ¶
type ProfileScoreDetails interface {
GetScore() uint64
}
type ProfilesParams ¶
type ProfilesParams struct { profilestypes.Params Height int64 }
func NewProfilesParams ¶
func NewProfilesParams(params profilestypes.Params, height int64) ProfilesParams
type Reaction ¶
type Reaction struct { reactionstypes.Reaction Height int64 }
func NewReaction ¶
func NewReaction(reaction reactionstypes.Reaction, height int64) Reaction
type ReactionParams ¶
type ReactionParams struct { reactionstypes.SubspaceReactionsParams Height int64 }
func NewReactionParams ¶
func NewReactionParams(params reactionstypes.SubspaceReactionsParams, height int64) ReactionParams
type Reason ¶
type Reason struct { reportstypes.Reason Height int64 }
type RegisteredReaction ¶
type RegisteredReaction struct { reactionstypes.RegisteredReaction Height int64 }
func NewRegisteredReaction ¶
func NewRegisteredReaction(reaction reactionstypes.RegisteredReaction, height int64) RegisteredReaction
type Relationship ¶
type Relationship struct { relationshipstypes.Relationship Height int64 }
func NewRelationship ¶
func NewRelationship(relationship relationshipstypes.Relationship, height int64) Relationship
type Report ¶
type Report struct { reportstypes.Report Height int64 }
type ReportsParams ¶
type ReportsParams struct { reportstypes.Params Height int64 }
func NewReportsParams ¶
func NewReportsParams(params reportstypes.Params, height int64) ReportsParams
type Section ¶
type Section struct { subspacestypes.Section Height int64 }
func NewSection ¶
func NewSection(section subspacestypes.Section, height int64) Section
type SingleNotificationMessage ¶
func NewSingleNotificationMessage ¶
func NewSingleNotificationMessage(message *messaging.Message) *SingleNotificationMessage
type StdNotificationDataWithConfig ¶
type StdNotificationDataWithConfig struct { Type string Data map[string]string Notification *messaging.Notification Android *messaging.AndroidConfig APNS *messaging.APNSConfig Webpush *messaging.WebpushConfig Timestamp time.Time }
func NewStdNotificationDataWithConfig ¶
func NewStdNotificationDataWithConfig(notification *messaging.Notification, data map[string]string) *StdNotificationDataWithConfig
func (StdNotificationDataWithConfig) GetAPNSConfig ¶
func (s StdNotificationDataWithConfig) GetAPNSConfig() *messaging.APNSConfig
func (StdNotificationDataWithConfig) GetAdditionalData ¶
func (s StdNotificationDataWithConfig) GetAdditionalData() map[string]string
func (StdNotificationDataWithConfig) GetAndroidConfig ¶
func (s StdNotificationDataWithConfig) GetAndroidConfig() *messaging.AndroidConfig
func (StdNotificationDataWithConfig) GetNotification ¶
func (s StdNotificationDataWithConfig) GetNotification() *messaging.Notification
func (StdNotificationDataWithConfig) GetType ¶
func (s StdNotificationDataWithConfig) GetType() string
func (StdNotificationDataWithConfig) GetWebpushConfig ¶
func (s StdNotificationDataWithConfig) GetWebpushConfig() *messaging.WebpushConfig
func (StdNotificationDataWithConfig) WithAPNSConfig ¶
func (s StdNotificationDataWithConfig) WithAPNSConfig(config *messaging.APNSConfig) *StdNotificationDataWithConfig
func (StdNotificationDataWithConfig) WithAndroidConfig ¶
func (s StdNotificationDataWithConfig) WithAndroidConfig(config *messaging.AndroidConfig) *StdNotificationDataWithConfig
func (StdNotificationDataWithConfig) WithWebpushConfig ¶
func (s StdNotificationDataWithConfig) WithWebpushConfig(config *messaging.WebpushConfig) *StdNotificationDataWithConfig
type Subspace ¶
type Subspace struct { subspacestypes.Subspace Height int64 }
func NewSubspace ¶
func NewSubspace(subspace subspacestypes.Subspace, height int64) Subspace
type TargetContent ¶
type TargetContent struct {
PostID string `json:"post_id"`
}
type TargetUser ¶
type TargetUser struct {
Receiver string `json:"receiver"`
}
type TipMsg ¶
type TipMsg struct {
SendTip *MsgSendTip `json:"send_tip,omitempty"`
}
type UserGroup ¶
type UserGroup struct { subspacestypes.UserGroup Height int64 }
func NewUserGroup ¶
func NewUserGroup(group subspacestypes.UserGroup, height int64) UserGroup
type UserGroupMember ¶
func NewUserGroupMember ¶
func NewUserGroupMember(subspaceID uint64, groupID uint32, member string, height int64) UserGroupMember
type UserPermission ¶
type UserPermission struct { subspacestypes.UserPermission Height int64 }
func NewUserPermission ¶
func NewUserPermission(permission subspacestypes.UserPermission, height int64) UserPermission
type UserTarget ¶
type UserTarget struct {
Address string
}
func NewUserTarget ¶
func NewUserTarget(address string) UserTarget
Click to show internal directories.
Click to hide internal directories.