Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientService ¶
type ClientService struct { FirebaseGoogle *FirebaseGoogleService Mailgun *MailgunService }
func NewServiceHandler ¶
func NewServiceHandler(cfg *config.NotificationConfig) *ClientService
type FirebaseGoogleService ¶
func NewFcmGoogleService ¶
func NewFcmGoogleService(cfg *config.FirebaseGoogle) (*FirebaseGoogleService, error)
func (*FirebaseGoogleService) SendPushMessage ¶
func (x *FirebaseGoogleService) SendPushMessage(osName, deviceToken, title, body string) error
func (*FirebaseGoogleService) SendPushNotification ¶
func (x *FirebaseGoogleService) SendPushNotification(osName, deviceToken, title, body string, data map[string]string) error
type MailgunService ¶
Ref: https://github.com/Golang-Coach/Lessons/blob/master/GoMailer/main.go
func NewMailgunClient ¶
func NewMailgunClient(cfg *config.Mailgun) *MailgunService
Click to show internal directories.
Click to hide internal directories.