notification

package
v0.0.0-...-928d55a Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationGateway

type NotificationGateway struct {
	AwsLib    libaws.AwsInterface
	Providers provider.ProvidersInterface
	Sendgrid  libsendgrid.LibsendgridInterface
}

NotificationGateway ...

func NotificationGatewayHandler

func NotificationGatewayHandler() *NotificationGateway

NotificationGatewayHandler Handler

func (*NotificationGateway) GetByID

func (gateway *NotificationGateway) GetByID(ID string) (*entity.DynamoItemHistory, error)

GetByID ...

func (*NotificationGateway) GetHistory

func (gateway *NotificationGateway) GetHistory(msisdn string) ([]entity.DynamoItemHistory, error)

GetHistory ...

func (*NotificationGateway) PostNotification

func (gateway *NotificationGateway) PostNotification(data *entity.PostNotificationRequest, wg *sync.WaitGroup)

PostNotification ...

func (*NotificationGateway) PostNotificationEmail

func (gateway *NotificationGateway) PostNotificationEmail(data *entity.PostNotificationRequestEmail, wg *sync.WaitGroup)

PostNotificationEmail ...

func (*NotificationGateway) PostNotificationPush

func (gateway *NotificationGateway) PostNotificationPush()

type NotificationGatewayInterface

type NotificationGatewayInterface interface {
	GetByID(ID string) (*entity.DynamoItemHistory, error)
	GetHistory(msisdn string) ([]entity.DynamoItemHistory, error)
	PostNotificationEmail(data *entity.PostNotificationRequestEmail, wg *sync.WaitGroup)
	PostNotification(data *entity.PostNotificationRequest, wg *sync.WaitGroup)
	PostNotificationPush()
}

NotificationGatewayInterface ...

Jump to

Keyboard shortcuts

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