notification

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOKEN_AUTHORIZE = "TOKEN_AUTHORIZE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification interface {
	SendNotification(*fcm.Message) (*fcm.Response, error)
	SendNotificationWithRetry(message *fcm.Message, retries int) (*fcm.Response, error)
}

func NewService

func NewService(apiKey string) Notification

type NotificationDto

type NotificationDto map[string]interface{}

func CreateTokenAuthorizeNotificationDto

func CreateTokenAuthorizeNotificationDto(authorizationId string) NotificationDto

type NotificationService

type NotificationService struct {
	// contains filtered or unexported fields
}

func (*NotificationService) SendNotification

func (s *NotificationService) SendNotification(message *fcm.Message) (*fcm.Response, error)

func (*NotificationService) SendNotificationWithRetry

func (s *NotificationService) SendNotificationWithRetry(message *fcm.Message, retries int) (*fcm.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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