templates

package
v0.0.0-...-b6e3047 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

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 GetChannelMetadataTemplate

func GetChannelMetadataTemplate(templateData interface{}, key templateKeysChannelMetadata) (string, error)

func GetGroupChannelTemplate

func GetGroupChannelTemplate(templateData interface{}, key templateKeysGroupChannels) (string, error)

func GetMessagesTemplate

func GetMessagesTemplate(templateData interface{}, key templateKeysMessages) (string, error)

func GetOpenChannelTemplate

func GetOpenChannelTemplate(templateData interface{}, key templateKeysOpenChannels) (string, error)

func GetUsersTemplate

func GetUsersTemplate(templateData interface{}, key templateKeysUsers) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL