push

package
v1.10.18 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 19 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 SendTriggerSwapRpcPushNotification added in v1.10.5

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

SendTriggerSwapRpcPushNotification sends a data push to trigger the Swap RPC

func SendTwitterAccountConnectedPushNotification added in v1.9.0

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

SendTwitterAccountConnectedPushNotification sends a push notification for newly connected Twitter accounts

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