Documentation ¶
Index ¶
- Constants
- func ComposeNotificationPayload(userProfile *domain.User, notificationData dto.FCMNotificationMessage) *firebasetools.SendNotificationPayload
- func CreateInviteMessage(user *domain.User, inviteLink string, pin string, flavour feedlib.Flavour) string
- func DecryptSensitiveData(text, MySecret string) (string, error)
- func EncryptSensitiveData(text, MySecret string) (string, error)
- func GetInviteLink(flavour feedlib.Flavour) (string, error)
- func GetPinExpiryDate() (*time.Time, error)
- func ReportErrorToSentry(err error)
- func RestAPIResponseHelper(key string, value interface{}) *dto.RestEndpointResponses
Constants ¶
View Source
const ( // ProInviteLink will store the pro app invite link at the settings ProInviteLink = "PRO_INVITE_LINK" // ConsumerInviteLink will store the consumer invite link at the settings ConsumerInviteLink = "CONSUMER_INVITE_LINK" // GoogleCloudStorageURL is base bucket link for the content images GoogleCloudStorageURL = "GOOGLE_CLOUD_STORAGE_URL" )
Variables ¶
This section is empty.
Functions ¶
func ComposeNotificationPayload ¶
func ComposeNotificationPayload(userProfile *domain.User, notificationData dto.FCMNotificationMessage) *firebasetools.SendNotificationPayload
ComposeNotificationPayload creates the notification payload that will sent via pubsub
func CreateInviteMessage ¶
func CreateInviteMessage(user *domain.User, inviteLink string, pin string, flavour feedlib.Flavour) string
CreateInviteMessage creates a new invite message
func DecryptSensitiveData ¶
DecryptSensitiveData decrypts sensitive data for a user
func EncryptSensitiveData ¶
EncryptSensitiveData encrypts sensitive data for a user
func GetInviteLink ¶
GetInviteLink generates a custom invite link for PRO or CONSUMER
func GetPinExpiryDate ¶
GetPinExpiryDate returns the expiry date for the given pin
func ReportErrorToSentry ¶
func ReportErrorToSentry(err error)
ReportErrorToSentry captures the exception thrown and registers an issue in sentry
func RestAPIResponseHelper ¶
func RestAPIResponseHelper(key string, value interface{}) *dto.RestEndpointResponses
RestAPIResponseHelper returns custom standardised response for frontend response consistency
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.