Documentation ¶
Index ¶
- Constants
- func GetAttributes(request *fs.AddCampaignRequest, userJourneyMetadata string, ...) sql.NullString
- func GetBitSetOfBloomFilter(bloomFilter *bloom.BloomFilter) sql.RawBytes
- func GetControlGroupUserAttributes(controlGroupPercentage int, bloomFilter *bloom.BloomFilter) string
- func GetNullableBool(boolean bool) sql.NullBool
- func GetNullableDateTime(timeStamp int64) sql.NullTime
- func GetNullableDuration(nullableTimeStamp *duration.Duration) sql.NullInt64
- func GetNullableFloat64(nullableFloat float64) sql.NullFloat64
- func GetNullableInt32(nullableInt int32) sql.NullInt32
- func GetNullableInt32s(nullableInts []int32) []sql.NullInt32
- func GetNullableInt64(nullableInt int64) sql.NullInt64
- func GetNullableInt64s(nullableInts []int64) []sql.NullInt64
- func GetNullableString(nullableString string) sql.NullString
- func GetNullableStrings(nullableStrings []string) []sql.NullString
- func GetNullableTimestamp(timeStamp int64) sql.NullString
- func GetNullableTimestampFromProtoTime(nullableTimeStamp *timestamp.Timestamp) sql.NullTime
- func GetTargetUserAttributes(attribs []*common.Attribs) sql.NullString
- func GetUnixTime(timestamp string) int64
- func MakeAddCampaignRequestVO(request *fs.AddCampaignRequest, userJourneyMetadata string, ...) *models.AddCampaignRequestVO
- func MakeAddCampaignTemplateRequestVO(request *fs.AddCampaignTemplateRequest) *models.AddCampaignTemplateRequestVO
- func MakeAddControlGroupRequestVO(campaignId int, attributes string, bloomFilter []byte) *models.AddControlGroupRequestVO
- func MakeAddDynamicDataRequestVO(request *fs.AddDynamicDataRequest) *models.AddDynamicDataRequestVO
- func MakeAddInactionTargetUserRequestVO(request *fs.AddInactionTargetUserRequest) *models.AddInactionTargetUserRequestVO
- func MakeAddQueryCampaignRequestVO(request *fs.AddQueryCampaignRequest) *models.AddQueryCampaignRequestVO
- func MakeAddTargetUserRequestVO(request *fs.AddTargetUserRequest) *models.AddTargetUserRequestVO
- func MakeCampaignTemplateRequestVO(campaignId int64) *models.DeleteCampaignTemplateRequestVO
- func MakeFindCampaignByIdResponseVO(model *models.FindCampaignByIdResponseVO) *fs.FindCampaignByIdResponseRecord
- func MakeFindCampaignTemplateByIdResponseVO(model *models.FindCampaignTemplateByIdResponseVO) *fs.FindCampaignTemplateByIdResponseRecord
- func MakeFindControlGroupByCampaignIdResponse(model *models.FindControlGroupByCampaignIdRequestV0) *fs.FindControlGroupByCampaignIdResponseRecord
- func MakeFindInactionTargetUserByCampaignIdResponseVO(model *models.FindInactionTargetUserByCampaignIdResponseVO) *fs.FindInactionTargetUserByCampaignIdResponseRecord
- func MakeFindQueryCampaignRequestVO(request *fs.FindQueryCampaignRequest) *models.FindQueryCampaignRequestVO
- func MakeFindQueryCampaignResponseVO(model *models.FindQueryCampaignResponseVO) *fs.FindQueryCampaignResponseRecord
- func MakeFindTargetUserByIdResponseVO(model *models.FindTargetUserByIdResponseVO) *fs.FindTargetUserByIdResponseRecord
- func MakeGetDynamicDataByKeyResponseVO(model *models.GetDynamicDataByKeyResponseVO) *fs.GetDynamicDataByKeyResponseRecord
- func MakeUpdateCampaignRequestVO(request *fs.UpdateCampaignRequest) *models.UpdateCampaignRequestVO
- func MapChannelAttributes(channelAttributes string) *ce.CommunicationChannelAttributes
- func MapContentMetaData(AttributeList string) []*common.Attribs
- func MapControlGroupAttributes(AttributeList string) map[string]string
- func MapControlGroupPercentage(channelAttributes string) int32
- func MapMedia(AttributeList string) *ce.Media
- func MapMetaData(AttributeList string) (string, string, []*fs.UserMetadata)
- func MapPlaceholders(attributes string) []*common.Attribs
- type Attributes
- type ContentMetaData
- type PlaceHolder
- type TargetUserAttributes
- type UserJourneyCampaignMetadata
Constants ¶
View Source
const ( CONST_MEDIA_TYPE = "media_type" CONST_MEDIA_ACCESS_TYPE = "media_access_type" CONST_MEDIA_INFO = "media_info" CONST_DOCUMENT_NAME = "document_name" CONST_MSG = "msg" CONST_DEFAULT_DOCUMENT_NAME = "file" CONST_MEDIA_URL = "mediaUrl" )
Variables ¶
This section is empty.
Functions ¶
func GetAttributes ¶
func GetAttributes(request *fs.AddCampaignRequest, userJourneyMetadata string, engagementMetadata string, userMetadataList []*fs.UserMetadata) sql.NullString
func GetBitSetOfBloomFilter ¶
func GetNullableBool ¶
func GetNullableDateTime ¶
func GetNullableDuration ¶
func GetNullableFloat64 ¶
func GetNullableFloat64(nullableFloat float64) sql.NullFloat64
func GetNullableInt32 ¶
func GetNullableInt32s ¶
func GetNullableInt64 ¶
func GetNullableInt64s ¶
func GetNullableString ¶
func GetNullableString(nullableString string) sql.NullString
func GetNullableStrings ¶
func GetNullableStrings(nullableStrings []string) []sql.NullString
func GetNullableTimestamp ¶
func GetNullableTimestamp(timeStamp int64) sql.NullString
func GetTargetUserAttributes ¶
func GetTargetUserAttributes(attribs []*common.Attribs) sql.NullString
func GetUnixTime ¶
func MakeAddCampaignRequestVO ¶
func MakeAddCampaignRequestVO(request *fs.AddCampaignRequest, userJourneyMetadata string, engagementMetadata string, userMetadataList []*fs.UserMetadata) *models.AddCampaignRequestVO
func MakeAddCampaignTemplateRequestVO ¶
func MakeAddCampaignTemplateRequestVO(request *fs.AddCampaignTemplateRequest) *models.AddCampaignTemplateRequestVO
func MakeAddControlGroupRequestVO ¶
func MakeAddControlGroupRequestVO(campaignId int, attributes string, bloomFilter []byte) *models.AddControlGroupRequestVO
func MakeAddDynamicDataRequestVO ¶
func MakeAddDynamicDataRequestVO(request *fs.AddDynamicDataRequest) *models.AddDynamicDataRequestVO
func MakeAddInactionTargetUserRequestVO ¶
func MakeAddInactionTargetUserRequestVO(request *fs.AddInactionTargetUserRequest) *models.AddInactionTargetUserRequestVO
func MakeAddQueryCampaignRequestVO ¶
func MakeAddQueryCampaignRequestVO(request *fs.AddQueryCampaignRequest) *models.AddQueryCampaignRequestVO
func MakeAddTargetUserRequestVO ¶
func MakeAddTargetUserRequestVO(request *fs.AddTargetUserRequest) *models.AddTargetUserRequestVO
func MakeCampaignTemplateRequestVO ¶
func MakeCampaignTemplateRequestVO(campaignId int64) *models.DeleteCampaignTemplateRequestVO
func MakeFindCampaignByIdResponseVO ¶
func MakeFindCampaignByIdResponseVO(model *models.FindCampaignByIdResponseVO) *fs.FindCampaignByIdResponseRecord
func MakeFindCampaignTemplateByIdResponseVO ¶
func MakeFindCampaignTemplateByIdResponseVO(model *models.FindCampaignTemplateByIdResponseVO) *fs.FindCampaignTemplateByIdResponseRecord
func MakeFindControlGroupByCampaignIdResponse ¶
func MakeFindControlGroupByCampaignIdResponse(model *models.FindControlGroupByCampaignIdRequestV0) *fs.FindControlGroupByCampaignIdResponseRecord
func MakeFindInactionTargetUserByCampaignIdResponseVO ¶
func MakeFindInactionTargetUserByCampaignIdResponseVO(model *models.FindInactionTargetUserByCampaignIdResponseVO) *fs.FindInactionTargetUserByCampaignIdResponseRecord
func MakeFindQueryCampaignRequestVO ¶
func MakeFindQueryCampaignRequestVO(request *fs.FindQueryCampaignRequest) *models.FindQueryCampaignRequestVO
func MakeFindQueryCampaignResponseVO ¶
func MakeFindQueryCampaignResponseVO(model *models.FindQueryCampaignResponseVO) *fs.FindQueryCampaignResponseRecord
func MakeFindTargetUserByIdResponseVO ¶
func MakeFindTargetUserByIdResponseVO(model *models.FindTargetUserByIdResponseVO) *fs.FindTargetUserByIdResponseRecord
func MakeGetDynamicDataByKeyResponseVO ¶
func MakeGetDynamicDataByKeyResponseVO(model *models.GetDynamicDataByKeyResponseVO) *fs.GetDynamicDataByKeyResponseRecord
func MakeUpdateCampaignRequestVO ¶
func MakeUpdateCampaignRequestVO(request *fs.UpdateCampaignRequest) *models.UpdateCampaignRequestVO
func MapChannelAttributes ¶
func MapChannelAttributes(channelAttributes string) *ce.CommunicationChannelAttributes
func MapContentMetaData ¶
func MapMetaData ¶
func MapMetaData(AttributeList string) (string, string, []*fs.UserMetadata)
func MapPlaceholders ¶
Types ¶
type Attributes ¶
type Attributes struct { ContentMetaData []ContentMetaData `json:"content_metadata,omitempty"` MediaInfo []ContentMetaData `json:"media,omitempty"` ChannelAttributes string `json:"channel_attributes,omitempty"` MetaData UserJourneyCampaignMetadata `json:"meta_data,omitempty""` ControlGroupPercentage int32 `json:"control_group_percentage,omitempty""` UserMetaDataList []*fs.UserMetadata `json:"user_metadata_list,omitempty"` }
type ContentMetaData ¶
type PlaceHolder ¶
type TargetUserAttributes ¶
type TargetUserAttributes struct {
PlaceHolders []PlaceHolder `json:"placeHolders,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.