Documentation ¶
Index ¶
Constants ¶
View Source
const (
CommunicationTaskName = "communication"
)
View Source
const NotificationTaskName = "notification"
Variables ¶
This section is empty.
Functions ¶
func ProcessCommunication ¶
func ProcessNotification ¶
Types ¶
type Communication ¶
type Communication struct { Content string ContentType string TemplateId string Recepients }
func NewCommunication ¶
func NewCommunication(emails []string, phones []string, template string) *Communication
func NewLoginOtpCommunication ¶
func NewLoginOtpCommunication(user models.User) *Communication
func NewResendLoginOtpCommunication ¶
func NewResendLoginOtpCommunication(user models.User) *Communication
func (*Communication) Name ¶
func (n *Communication) Name() string
func (*Communication) Run ¶
func (c *Communication) Run() error
type NotificationTask ¶
func NewNotificationTask ¶
func NewNotificationTask(phone string, otp int, data string) *NotificationTask
func (*NotificationTask) Name ¶
func (n *NotificationTask) Name() string
func (*NotificationTask) Run ¶
func (n *NotificationTask) Run() error
type Recepients ¶
Click to show internal directories.
Click to hide internal directories.