Documentation ¶
Index ¶
- Variables
- func RemoveUnknownAndDeduplicateTags(input []string) []string
- func ValidateTags(input []string) bool
- type AcceptContactRequest
- type AcceptLatestContactRequestForContact
- type AcceptRequestToJoinCommunity
- type AddContact
- type AddRoleToMember
- type AddWalletConnectSession
- type BanUserFromCommunity
- type CancelOutgoingContactRequest
- type CancelRequestToJoinCommunity
- type ClearHistory
- type CreateCommunity
- type CreateCommunityCategory
- type CreateCommunityTokenPermission
- type CreateOneToOneChat
- type CreateProfileChat
- type CreatePublicChat
- type DeactivateChat
- type DeclineContactRequest
- type DeclineRequestToJoinCommunity
- type DeleteCommunityCategory
- type DeleteCommunityTokenPermission
- type DismissLatestContactRequestForContact
- type EditCommunity
- type EditCommunityCategory
- type EditCommunityTokenPermission
- type EditMessage
- type ImportDiscordCommunity
- type InviteUsersToCommunity
- type RemoveRoleFromMember
- type ReorderCommunityCategories
- type ReorderCommunityChat
- type RequestToJoinCommunity
- type RetractContactRequest
- type SendContactRequest
- type SetContactLocalNickname
- type ShareCommunity
- type ShareImageMessage
- type UnbanUserFromCommunity
- type UpsertSwitcherCard
- type VerifiedTrusted
- type VerifiedUntrustworthy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCreateCommunityInvalidName = errors.New("create-community: invalid name") ErrCreateCommunityInvalidColor = errors.New("create-community: invalid color") ErrCreateCommunityInvalidDescription = errors.New("create-community: invalid description") ErrCreateCommunityInvalidIntroMessage = errors.New("create-community: invalid intro message") ErrCreateCommunityInvalidOutroMessage = errors.New("create-community: invalid outro message") ErrCreateCommunityInvalidMembership = errors.New("create-community: invalid membership") ErrCreateCommunityInvalidTags = errors.New("create-community: invalid tags") )
View Source
var ( ErrCreateCommunityTokenPermissionInvalidCommunityID = errors.New("create community token permission needs a valid community id") ErrCreateCommunityTokenPermissionTooManyTokenCriteria = errors.New("too many token criteria") ErrCreateCommunityTokenPermissionInvalidPermissionType = errors.New("invalid community token permission type") ErrCreateCommunityTokenPermissionInvalidTokenCriteria = errors.New("invalid community permission token criteria data") )
View Source
var ErrAcceptContactRequestInvalidID = errors.New("accept-contact-request: invalid id")
View Source
var ErrAcceptLatestContactRequestForContactInvalidID = errors.New("accept-latest-contact-request-for-contact: invalid id")
View Source
var ErrAcceptRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
View Source
var ErrAddContactInvalidID = errors.New("add-contact: invalid id")
View Source
var ErrAddRoleToMemberInvalidCommunityID = errors.New("add-role-to-member: invalid community id")
View Source
var ErrAddRoleToMemberInvalidRole = errors.New("add-role-to-member: invalid role")
View Source
var ErrAddRoleToMemberInvalidUser = errors.New("add-role-to-member: invalid user id")
View Source
var ErrAddWalletConnectSessionInvalidDAppName = errors.New("add-wallet-connect-session: invalid dapp name")
View Source
var ErrAddWalletConnectSessionInvalidDAppURL = errors.New("add-wallet-connect-session: invalid dapp url")
View Source
var ErrAddWalletConnectSessionInvalidID = errors.New("add-wallet-connect-session: invalid id")
View Source
var ErrAddWalletConnectSessionInvalidInfo = errors.New("add-wallet-connect-session: invalid info")
View Source
var ErrBanUserFromCommunityInvalidCommunityID = errors.New("ban-user-from-community: invalid community id")
View Source
var ErrBanUserFromCommunityInvalidUser = errors.New("ban-user-from-community: invalid user id")
View Source
var ErrCancelOutgoingContactRequestInvalidID = errors.New("cancel-outgoing-contact-request: invalid id")
View Source
var ErrCancelRequestToJoinCommunityInvalidID = errors.New("cancel-request-to-join-community: invalid id")
View Source
var ErrClearHistoryInvalidID = errors.New("clear-history: invalid id")
View Source
var ErrCreateCommunityCategoryInvalidCommunityID = errors.New("create-community-category: invalid community id")
View Source
var ErrCreateCommunityCategoryInvalidName = errors.New("create-community-category: invalid category name")
View Source
var ErrCreateOneToOneChatInvalidID = errors.New("create-one-to-one-chat: invalid id")
View Source
var ErrCreateProfileChatInvalidID = errors.New("create-public-chat: invalid id")
View Source
var ErrCreatePublicChatInvalidID = errors.New("create-public-chat: invalid id")
View Source
var ErrDeactivateChatInvalidID = errors.New("deactivate-chat: invalid id")
View Source
var ErrDeclineContactRequestInvalidID = errors.New("decline-contact-request: invalid id")
View Source
var ErrDeclineRequestToJoinCommunityInvalidID = errors.New("accept-request-to-join-community: invalid id")
View Source
var ErrDeleteCommunityCategoryInvalidCategoryID = errors.New("delete-community-category: invalid category id")
View Source
var ErrDeleteCommunityCategoryInvalidCommunityID = errors.New("delete-community-category: invalid community id")
View Source
var ErrDeleteCommunityTokenPermissionInvalidCommunityID = errors.New("delete community token permission needs a valid community id ")
View Source
var ErrDeleteCommunityTokenPermissionInvalidPermissionID = errors.New("invalid token permission id")
View Source
var ErrDismissLatestContactRequestForContactInvalidID = errors.New("dismiss-latest-contact-request-for-contact: invalid id")
View Source
var ErrEditCommunityCategoryInvalidCategoryID = errors.New("edit-community-category: invalid category id")
View Source
var ErrEditCommunityCategoryInvalidCommunityID = errors.New("edit-community-category: invalid community id")
View Source
var ErrEditCommunityCategoryInvalidName = errors.New("edit-community-category: invalid category name")
View Source
var (
ErrEditCommunityInvalidID = errors.New("edit-community: invalid id")
)
View Source
var (
ErrEditCommunityTokenPermissionInvalidID = errors.New("invalid community token permission id")
)
View Source
var ErrEditMessageInvalidID = errors.New("edit-message: invalid id")
View Source
var ErrEditMessageInvalidText = errors.New("edit-message: invalid text")
View Source
var (
ErrImportDiscordCommunityMissingFilesToImport = errors.New("import-discord-community: missing files to import")
)
View Source
var ErrInviteUsersToCommunityEmptyUsers = errors.New("invite-users-to-community: empty users")
View Source
var ErrInviteUsersToCommunityInvalidID = errors.New("invite-users-to-community: invalid id")
View Source
var ErrRemoveRoleFromMemberInvalidCommunityID = errors.New("remove-role-from-member: invalid community id")
View Source
var ErrRemoveRoleFromMemberInvalidRole = errors.New("remove-role-from-member: invalid role")
View Source
var ErrRemoveRoleFromMemberInvalidUser = errors.New("remove-role-from-member: invalid user id")
View Source
var ErrReorderCommunityCategoryInvalidCategoryID = errors.New("reorder-community-category: invalid category id")
View Source
var ErrReorderCommunityCategoryInvalidCommunityID = errors.New("reorder-community-category: invalid community id")
View Source
var ErrReorderCommunityCategoryInvalidPosition = errors.New("reorder-community-category: invalid position")
View Source
var ErrReorderCommunityChatInvalidChatID = errors.New("reorder-community-chat: invalid chat id")
View Source
var ErrReorderCommunityChatInvalidCommunityID = errors.New("reorder-community-chat: invalid community id")
View Source
var ErrReorderCommunityChatInvalidPosition = errors.New("reorder-community-chat: invalid position")
View Source
var ErrRequestToJoinCommunityInvalidCommunityID = errors.New("request-to-join-community: invalid community id")
View Source
var ErrRetractContactRequestInvalidContactID = errors.New("retract-contact-request: invalid id")
View Source
var ErrSendContactRequestInvalidID = errors.New("send-contact-request: invalid id")
View Source
var ErrSendContactRequestInvalidMessage = errors.New("send-contact-request: invalid message")
View Source
var ErrSetContactLocalNicknameInvalidID = errors.New("add-contact: invalid id")
View Source
var ErrUnbanUserFromCommunityInvalidCommunityID = errors.New("unban-user-from-community: invalid community id")
View Source
var ErrUnbanUserFromCommunityInvalidUser = errors.New("unban-user-from-community: invalid user id")
View Source
var ErrUpsertSwitcherCardInvalidCardID = errors.New("upsert-switcher-card: invalid card id")
View Source
var ErrVerifiedTrustedInvalidID = errors.New("verified-trusted: invalid id")
View Source
var ErrVerifiedUntrustworthyInvalidID = errors.New("verified-untrustworthy: invalid id")
View Source
var TagsEmojies map[string]string
Functions ¶
func RemoveUnknownAndDeduplicateTags ¶ added in v0.102.5
func ValidateTags ¶ added in v0.102.5
Types ¶
type AcceptContactRequest ¶ added in v0.100.0
func (*AcceptContactRequest) Validate ¶ added in v0.100.0
func (a *AcceptContactRequest) Validate() error
type AcceptLatestContactRequestForContact ¶ added in v0.102.2
func (*AcceptLatestContactRequestForContact) Validate ¶ added in v0.102.2
func (a *AcceptLatestContactRequestForContact) Validate() error
type AcceptRequestToJoinCommunity ¶
func (*AcceptRequestToJoinCommunity) Validate ¶
func (j *AcceptRequestToJoinCommunity) Validate() error
type AddContact ¶ added in v0.90.0
type AddContact struct { ID types.HexBytes `json:"id"` Nickname string `json:"nickname"` DisplayName string `json:"displayName"` ENSName string `json:"ensName"` }
func (*AddContact) Validate ¶ added in v0.90.0
func (a *AddContact) Validate() error
type AddRoleToMember ¶ added in v0.115.5
type AddRoleToMember struct { CommunityID types.HexBytes `json:"communityId"` User types.HexBytes `json:"user"` Role protobuf.CommunityMember_Roles `json:"role"` }
func (*AddRoleToMember) Validate ¶ added in v0.115.5
func (a *AddRoleToMember) Validate() error
type AddWalletConnectSession ¶ added in v0.105.1
type AddWalletConnectSession struct { PeerID string `json:"id"` DAppName string `json:"dappName"` DAppURL string `json:"dappUrl"` Info string `json:"info"` }
func (*AddWalletConnectSession) Validate ¶ added in v0.105.1
func (c *AddWalletConnectSession) Validate() error
type BanUserFromCommunity ¶ added in v0.73.9
type BanUserFromCommunity struct { CommunityID types.HexBytes `json:"communityId"` User types.HexBytes `json:"user"` }
func (*BanUserFromCommunity) Validate ¶ added in v0.73.9
func (b *BanUserFromCommunity) Validate() error
type CancelOutgoingContactRequest ¶ added in v0.131.11
func (*CancelOutgoingContactRequest) Validate ¶ added in v0.131.11
func (a *CancelOutgoingContactRequest) Validate() error
type CancelRequestToJoinCommunity ¶ added in v0.114.1
func (*CancelRequestToJoinCommunity) Validate ¶ added in v0.114.1
func (j *CancelRequestToJoinCommunity) Validate() error
type ClearHistory ¶ added in v0.79.0
type ClearHistory struct {
ID string `json:"id"`
}
func (*ClearHistory) Validate ¶ added in v0.79.0
func (c *ClearHistory) Validate() error
type CreateCommunity ¶
type CreateCommunity struct { Name string `json:"name"` Description string `json:"description"` IntroMessage string `json:"introMessage,omitempty"` OutroMessage string `json:"outroMessage,omitempty"` Color string `json:"color"` Emoji string `json:"emoji"` Membership protobuf.CommunityPermissions_Access `json:"membership"` EnsOnly bool `json:"ensOnly"` Image string `json:"image"` ImageAx int `json:"imageAx"` ImageAy int `json:"imageAy"` ImageBx int `json:"imageBx"` ImageBy int `json:"imageBy"` Banner images.CroppedImage `json:"banner"` HistoryArchiveSupportEnabled bool `json:"historyArchiveSupportEnabled,omitempty"` PinMessageAllMembersEnabled bool `json:"pinMessageAllMembersEnabled,omitempty"` Encrypted bool `json:"encrypted,omitempty"` Tags []string `json:"tags,omitempty"` }
func (*CreateCommunity) ToCommunityDescription ¶
func (c *CreateCommunity) ToCommunityDescription() (*protobuf.CommunityDescription, error)
func (*CreateCommunity) Validate ¶
func (c *CreateCommunity) Validate() error
type CreateCommunityCategory ¶ added in v0.79.3
type CreateCommunityCategory struct { CommunityID types.HexBytes `json:"communityId"` CategoryName string `json:"categoryName"` ChatIDs []string `json:"chatIds"` ThirdPartyID string `json:"thirdPartyID,omitempty"` }
func (*CreateCommunityCategory) Validate ¶ added in v0.79.3
func (j *CreateCommunityCategory) Validate() error
type CreateCommunityTokenPermission ¶ added in v0.136.0
type CreateCommunityTokenPermission struct { CommunityID types.HexBytes `json:"communityId"` Type protobuf.CommunityTokenPermission_Type `json:"type"` TokenCriteria []*protobuf.TokenCriteria `json:"tokenCriteria"` }
func (*CreateCommunityTokenPermission) ToCommunityTokenPermission ¶ added in v0.136.0
func (p *CreateCommunityTokenPermission) ToCommunityTokenPermission() protobuf.CommunityTokenPermission
func (*CreateCommunityTokenPermission) Validate ¶ added in v0.136.0
func (p *CreateCommunityTokenPermission) Validate() error
type CreateOneToOneChat ¶
func (*CreateOneToOneChat) Validate ¶
func (c *CreateOneToOneChat) Validate() error
type CreateProfileChat ¶ added in v0.79.0
type CreateProfileChat struct {
ID string `json:"id"`
}
func (*CreateProfileChat) Validate ¶ added in v0.79.0
func (c *CreateProfileChat) Validate() error
type CreatePublicChat ¶ added in v0.79.0
type CreatePublicChat struct {
ID string `json:"id"`
}
func (*CreatePublicChat) Validate ¶ added in v0.79.0
func (c *CreatePublicChat) Validate() error
type DeactivateChat ¶ added in v0.79.0
type DeactivateChat struct {
ID string `json:"id"`
}
func (*DeactivateChat) Validate ¶ added in v0.79.0
func (j *DeactivateChat) Validate() error
type DeclineContactRequest ¶ added in v0.131.11
func (*DeclineContactRequest) Validate ¶ added in v0.131.11
func (a *DeclineContactRequest) Validate() error
type DeclineRequestToJoinCommunity ¶
func (*DeclineRequestToJoinCommunity) Validate ¶
func (j *DeclineRequestToJoinCommunity) Validate() error
type DeleteCommunityCategory ¶ added in v0.79.3
type DeleteCommunityCategory struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` }
func (*DeleteCommunityCategory) Validate ¶ added in v0.79.3
func (j *DeleteCommunityCategory) Validate() error
type DeleteCommunityTokenPermission ¶ added in v0.136.0
type DeleteCommunityTokenPermission struct { CommunityID types.HexBytes `json:"communityId"` PermissionID string `json:"permissionId"` }
func (*DeleteCommunityTokenPermission) Validate ¶ added in v0.136.0
func (r *DeleteCommunityTokenPermission) Validate() error
type DismissLatestContactRequestForContact ¶ added in v0.102.2
func (*DismissLatestContactRequestForContact) Validate ¶ added in v0.102.2
func (a *DismissLatestContactRequestForContact) Validate() error
type EditCommunity ¶ added in v0.79.0
type EditCommunity struct { CommunityID types.HexBytes CreateCommunity }
func (*EditCommunity) Validate ¶ added in v0.79.0
func (u *EditCommunity) Validate() error
type EditCommunityCategory ¶ added in v0.79.3
type EditCommunityCategory struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` CategoryName string `json:"categoryName"` ChatIDs []string `json:"chatIds"` }
func (*EditCommunityCategory) Validate ¶ added in v0.79.3
func (j *EditCommunityCategory) Validate() error
type EditCommunityTokenPermission ¶ added in v0.136.0
type EditCommunityTokenPermission struct { PermissionID string `json:"permissionId"` CreateCommunityTokenPermission }
func (*EditCommunityTokenPermission) ToCommunityTokenPermission ¶ added in v0.136.0
func (u *EditCommunityTokenPermission) ToCommunityTokenPermission() protobuf.CommunityTokenPermission
func (*EditCommunityTokenPermission) Validate ¶ added in v0.136.0
func (u *EditCommunityTokenPermission) Validate() error
type EditMessage ¶ added in v0.80.3
type EditMessage struct { ID types.HexBytes `json:"id"` Text string `json:"text"` ContentType protobuf.ChatMessage_ContentType `json:"content-type"` }
func (*EditMessage) Validate ¶ added in v0.80.3
func (e *EditMessage) Validate() error
type ImportDiscordCommunity ¶ added in v0.114.1
type ImportDiscordCommunity struct { CreateCommunity FilesToImport []string From int64 }
func (*ImportDiscordCommunity) ToCreateCommunityRequest ¶ added in v0.114.1
func (u *ImportDiscordCommunity) ToCreateCommunityRequest() *CreateCommunity
func (*ImportDiscordCommunity) Validate ¶ added in v0.114.1
func (u *ImportDiscordCommunity) Validate() error
type InviteUsersToCommunity ¶
type InviteUsersToCommunity struct { CommunityID types.HexBytes `json:"communityId"` Users []types.HexBytes `json:"users"` }
func (*InviteUsersToCommunity) Validate ¶
func (j *InviteUsersToCommunity) Validate() error
type RemoveRoleFromMember ¶ added in v0.115.5
type RemoveRoleFromMember struct { CommunityID types.HexBytes `json:"communityId"` User types.HexBytes `json:"user"` Role protobuf.CommunityMember_Roles `json:"role"` }
func (*RemoveRoleFromMember) Validate ¶ added in v0.115.5
func (r *RemoveRoleFromMember) Validate() error
type ReorderCommunityCategories ¶ added in v0.79.3
type ReorderCommunityCategories struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` Position int `json:"position"` }
func (*ReorderCommunityCategories) Validate ¶ added in v0.79.3
func (j *ReorderCommunityCategories) Validate() error
type ReorderCommunityChat ¶ added in v0.79.3
type ReorderCommunityChat struct { CommunityID types.HexBytes `json:"communityId"` CategoryID string `json:"categoryId"` ChatID string `json:"chatId"` Position int `json:"position"` }
func (*ReorderCommunityChat) Validate ¶ added in v0.79.3
func (j *ReorderCommunityChat) Validate() error
type RequestToJoinCommunity ¶
type RequestToJoinCommunity struct { CommunityID types.HexBytes `json:"communityId"` ENSName string `json:"ensName"` }
func (*RequestToJoinCommunity) Validate ¶
func (j *RequestToJoinCommunity) Validate() error
type RetractContactRequest ¶ added in v0.100.0
func (*RetractContactRequest) Validate ¶ added in v0.100.0
func (a *RetractContactRequest) Validate() error
type SendContactRequest ¶ added in v0.100.0
func (*SendContactRequest) Validate ¶ added in v0.100.0
func (a *SendContactRequest) Validate() error
type SetContactLocalNickname ¶ added in v0.90.0
type SetContactLocalNickname struct { ID types.HexBytes `json:"id"` Nickname string `json:"nickname"` }
func (*SetContactLocalNickname) Validate ¶ added in v0.90.0
func (a *SetContactLocalNickname) Validate() error
type ShareCommunity ¶
type ShareCommunity struct {}
func (*ShareCommunity) Validate ¶
func (j *ShareCommunity) Validate() error
type ShareImageMessage ¶ added in v0.94.8
type ShareImageMessage struct {}
func (*ShareImageMessage) Validate ¶ added in v0.94.8
func (s *ShareImageMessage) Validate() error
type UnbanUserFromCommunity ¶ added in v0.102.6
type UnbanUserFromCommunity struct { CommunityID types.HexBytes `json:"communityId"` User types.HexBytes `json:"user"` }
func (*UnbanUserFromCommunity) Validate ¶ added in v0.102.6
func (b *UnbanUserFromCommunity) Validate() error
type UpsertSwitcherCard ¶ added in v0.117.3
type UpsertSwitcherCard struct { CardID string `json:"cardId,omitempty"` Type int `json:"type"` Clock uint64 `json:"clock"` ScreenID string `json:"screenId"` }
func (*UpsertSwitcherCard) Validate ¶ added in v0.117.3
func (a *UpsertSwitcherCard) Validate() error
type VerifiedTrusted ¶ added in v0.115.1
func (*VerifiedTrusted) Validate ¶ added in v0.115.1
func (a *VerifiedTrusted) Validate() error
type VerifiedUntrustworthy ¶ added in v0.115.1
func (*VerifiedUntrustworthy) Validate ¶ added in v0.115.1
func (a *VerifiedUntrustworthy) Validate() error
Source Files ¶
- accept_contact_request.go
- accept_latest_contact_request_for_contact.go
- accept_request_to_join_community.go
- add_contact.go
- add_role_to_member.go
- add_wallet_connect_session.go
- ban_user_from_community.go
- cancel_outgoing_contact_request.go
- cancel_request_to_join_community.go
- clear_history.go
- community_tags.go
- create_community_category.go
- create_community_request.go
- create_community_token_permission_request.go
- create_one_to_one_chat.go
- create_profile_chat.go
- create_public_chat.go
- deactivate_chat.go
- decline_contact_request.go
- decline_request_to_join_community.go
- delete_community_category.go
- delete_community_token_permission.go
- dismiss_latest_contact_request_for_contact.go
- edit_community.go
- edit_community_category.go
- edit_community_token_permission_request.go
- edit_message.go
- import_discord_community.go
- invite_users_to_community.go
- remove_role_from_member.go
- reorder_community_category.go
- reorder_community_chat.go
- request_to_join_community.go
- retract_contact_request.go
- send_contact_request.go
- set_contact_local_nickname.go
- share_community.go
- share_image_message.go
- unban_user_from_community.go
- upsert_switcher_card.go
- verified_trusted.go
- verified_untrustworthy.go
Click to show internal directories.
Click to hide internal directories.