firebase

package
v0.0.0-...-8ae4d99 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendPushForTxs

func SendPushForTxs(ptdb *db.PushTokenDB, fb *PushService, ev *indexer.Event, txs []*indexer.Transfer)

Types

type PushService

type PushService struct {
	Messaging *messaging.Client
	// contains filtered or unexported fields
}

func NewPushService

func NewPushService(ctx context.Context, path string) *PushService

func (*PushService) Send

func (s *PushService) Send(push *indexer.PushMessage) ([]string, error)

Send sends a push notification to the given tokens. Returns the tokens to be removed.

Jump to

Keyboard shortcuts

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