notifications

package
v0.0.0-...-026aa9f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToMapAndAddExtraData

func ConvertToMapAndAddExtraData(data interface{}, newData map[string]interface{}) (map[string]interface{}, error)

func SendDirectOTP

func SendDirectOTP(extReq request.ExternalRequest, req models.SendOTP, db *gorm.DB) error

Types

type NotificationObject

type NotificationObject struct {
	Notification *models.NotificationRecord
	ExtReq       request.ExternalRequest

	Db *gorm.DB
	// contains filtered or unexported fields
}

func NewNotificationObject

func NewNotificationObject(extReq request.ExternalRequest, rdb *redis.Client, db *gorm.DB, notification *models.NotificationRecord) *NotificationObject

func (NotificationObject) SendContactUsMail

func (n NotificationObject) SendContactUsMail() error

func (NotificationObject) SendEmailVerificationMail

func (n NotificationObject) SendEmailVerificationMail() error
func (n NotificationObject) SendMagicLink() error

func (NotificationObject) SendOTP

func (n NotificationObject) SendOTP() error

func (NotificationObject) SendResetPasswordMail

func (n NotificationObject) SendResetPasswordMail() error

func (NotificationObject) SendSqueeze

func (n NotificationObject) SendSqueeze() error

func (NotificationObject) SendWelcomeMail

func (n NotificationObject) SendWelcomeMail() error

Jump to

Keyboard shortcuts

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