push

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendChatMessagePushNotification

func SendChatMessagePushNotification(
	ctx context.Context,
	data code_data.Provider,
	pusher push_lib.Provider,
	chatTitle string,
	owner *common.Account,
	chatMessage *chatpb.ChatMessage,
) error

SendChatMessagePushNotification sends a push notification for chat messages

func SendDepositPushNotification

func SendDepositPushNotification(
	ctx context.Context,
	data code_data.Provider,
	pusher push_lib.Provider,
	vault *common.Account,
	quarks uint64,
) error

SendDepositPushNotification sends a push notification for received deposits

func SendGiftCardReturnedPushNotification

func SendGiftCardReturnedPushNotification(
	ctx context.Context,
	data code_data.Provider,
	pusher push_lib.Provider,
	giftCardVault *common.Account,
) error

SendGiftCardReturnedPushNotification sends a push notification when a gift card has expired and the balance has returned to the issuing user

func SendMicroPaymentReceivedPushNotification

func SendMicroPaymentReceivedPushNotification(
	ctx context.Context,
	data code_data.Provider,
	pusher push_lib.Provider,
	intentRecord *intent.Record,
) error

SendMicroPaymentReceivedPushNotification sends a push to the destination when someone pays for content through a micro payment.

func UpdateBadgeCount

func UpdateBadgeCount(
	ctx context.Context,
	data code_data.Provider,
	pusher push_lib.Provider,
	owner *common.Account,
) error

UpdateBadgeCount updates the badge count for an owner account to the latest value

todo: Duplicated code with other send push utitilies

Types

This section is empty.

Jump to

Keyboard shortcuts

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