Documentation ¶
Index ¶
- Constants
- func GetChannelMetadataTemplate(templateData interface{}, key templateKeysChannelMetadata) (string, error)
- func GetGroupChannelTemplate(templateData interface{}, key templateKeysGroupChannels) (string, error)
- func GetMessagesTemplate(templateData interface{}, key templateKeysMessages) (string, error)
- func GetOpenChannelTemplate(templateData interface{}, key templateKeysOpenChannels) (string, error)
- func GetUsersTemplate(templateData interface{}, key templateKeysUsers) (string, error)
Constants ¶
View Source
const ( SendbirdClientErrorFailedTemplateEngineCreation = "TemplateEngine creation failed. %s is nil." SendbirdClientErrorTemplateResultMismatch = "Template result and expected value are mismatched. Expect to get %s but get %s" SendbirdClientErrorTemplateNil = "Template is nil." )
View Source
const ( SendbirdURLUsersTemplate = `` /* 1503-byte string literal not displayed */ SendbirdURLOpenChannelsTemplate = `` /* 607-byte string literal not displayed */ SendbirdURLGroupChannelsTemplate = `` /* 579-byte string literal not displayed */ SendbirdURLChannelMetadataTemplate = `` /* 491-byte string literal not displayed */ SendbirdURLMessagesTemplate = `` /* 565-byte string literal not displayed */ )
Nested Template String
View Source
const ( //Users SendbirdURLUserswithUserID templateKeysUsers = `base` SendbirdURLUsersUnreadCountWithUserID templateKeysUsers = `unreadCount` SendbirdURLUsersBlockWithUserID templateKeysUsers = `block` SendbirdURLUsersBlockWithUserIDandTargetID templateKeysUsers = `blockWithTargetID` SendbirdURLUsersBanWithUserID templateKeysUsers = `ban` SendbirdURLUsersMuteWithUserID templateKeysUsers = `mute` SendbirdURLUsersMarkReadAllWithUserID templateKeysUsers = `markReadAll` SendbirdURLUsersListGroupChannelsWithUserID templateKeysUsers = `listGroupChannel` SendbirdURLUsersDeviceTokenWithUserID templateKeysUsers = `deviceToken` SendbirdURLUsersDeviceTokenWithUserIDandTokenType templateKeysUsers = `deviceTokenWithType` SendbirdURLUsersDeviceTokenWithUserIDandTokenTypeandPushToken templateKeysUsers = `deviceTokenWithTypeAndPushToken` SendbirdURLUsersPushPreferenceWithUserID templateKeysUsers = `pushPreference` SendbirdURLUsersPushPreferenceWithUserIDandChannelURL templateKeysUsers = `pushPreferenceWithChannelURL` //User Metadata SendbirdURLUserMetadataWithUserID templateKeysUsers = `userMeta` SendbirdURLUserMetadataWithUserIDandKeyName templateKeysUsers = `userMetaAndKeyName` //Open Channels SendbirdURLOpenChannelsWithChannelURL templateKeysOpenChannels = `base` SendbirdURLOpenChannelsParticipantsWithChannelURL templateKeysOpenChannels = `participants` SendbirdURLOpenChannelsFreezeWithChannelURL templateKeysOpenChannels = `freeze` SendbirdURLOpenChannelsBanWithChannelURL templateKeysOpenChannels = `ban` SendbirdURLOpenChannelsBanWithChannelURLandBannedUserID templateKeysOpenChannels = `banWithUserID` SendbirdURLOpenChannelsMuteWithChannelURL templateKeysOpenChannels = `mute` SendbirdURLOpenChannelsMuteWithChannelURLandMutedUserID templateKeysOpenChannels = `muteWithUserID` //Group Channels SendbirdURLGroupChannelsWithChannelURL templateKeysGroupChannels = `base` SendbirdURLGroupChannelsMembersWithChannelURL templateKeysGroupChannels = `members` SendbirdURLGroupChannelsMembersWithChannelURLAndUserID templateKeysGroupChannels = `membersWithUserID` SendbirdURLGroupChannelsInviteWithChannelURL templateKeysGroupChannels = `invite` SendbirdURLGroupChannelsAcceptWithChannelURL templateKeysGroupChannels = `accept` SendbirdURLGroupChannelsHideWithChannelURL templateKeysGroupChannels = `hide` SendbirdURLGroupChannelsLeaveWithChannelURL templateKeysGroupChannels = `leave` //Channel Metadata SendbirdURLChannelMetadataWithChannelTypeAndChannelURL templateKeysChannelMetadata = `chMeta` SendbirdURLChannelMetadataWithChannelTypeAndChannelURLAndKeyName templateKeysChannelMetadata = `chMetaWithKeyName` SendbirdURLChannelMetaCounterWithChannelTypeAndChannelURL templateKeysChannelMetadata = `metacounter` SendbirdURLChannelMetaCounterWithChannelTypeAndChannelURLAndKeyName templateKeysChannelMetadata = `metacounterWithKeyName` //Messages SendbirdURLMessagesWithChannelTypeAndChannelURL templateKeysMessages = `messages` SendbirdURLMessagesMarkAsReadWithChannelTypeAndChannelURL templateKeysMessages = `markAsRead` SendbirdURLMessagesTotalCountWithChannelTypeAndChannelURL templateKeysMessages = `totalCount` SendbirdURLMessagesUnreadCountWithChannelTypeAndChannelURL templateKeysMessages = `unreadCount` SendbirdURLMessagesWithChannelTypeAndChannelURLAndMessageID templateKeysMessages = `singleMessage` )
TemplateKeys
Variables ¶
This section is empty.
Functions ¶
func GetGroupChannelTemplate ¶
func GetMessagesTemplate ¶
func GetOpenChannelTemplate ¶
func GetUsersTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.