Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TypeSMS = 1 TypeEmail = 2 TypePushMessage = 3 TemplateTypePushMessage = "pushmessage" TemplateTypeSMS = "sms" TemplateTypeEmail = "email" )
type of notification
View Source
var (
ProviderNexmo = 1
)
notification providers
Functions ¶
This section is empty.
Types ¶
type EmailNotification ¶
EmailNotification struct
type Notification ¶
type Notification struct { UserID int64 Title string Message string DetailBody string Image string WebLink string Purpose int DeviceID device.Device // either push, sms or email NotifData interface{} }
Notification struct
type PushNotification ¶
type PushNotification struct { // if device token is present, then the device token is used rather than seeking in session // this is useful in user register flow DeviceToken string }
PushNotification struct
type SMSNotification ¶
SMSNotification struct
type UserNotification ¶
type UserNotification struct { ID string UserID int64 ProviderType int ProviderID int ProviderSendID string Purpose int IsWebpage bool Status int Title string Message string Show bool HasDetail bool Read bool CreatedAt time.Time UpdatedAt time.Time IsDeleted bool IsTest bool Detail UserNotificationDetail }
UserNotification struct
Click to show internal directories.
Click to hide internal directories.