services

package
v0.0.0-...-ecf8c57 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtAPNS *apns2.Client

ExtAPNS is an Apple Push Notification Services client

View Source
var ExtFire *firebase.App

ExtFire is a Firebase App client

Functions

func ClientCount

func ClientCount(uid uint) int

func ClientRegister

func ClientRegister(user models.Account, conn *websocket.Conn) uint64

func ClientUnregister

func ClientUnregister(user models.Account, id uint64)

func DealDeliveryTask

func DealDeliveryTask(task any)

func LinkExpand

func LinkExpand(target string) (*models.LinkMeta, error)

func PushAppleNotify

func PushAppleNotify(token string, in *proto.NotifyRequest) error

func PushFirebaseNotify

func PushFirebaseNotify(token string, in *proto.NotifyRequest) error

func RetrieveLinkMetaFromCache

func RetrieveLinkMetaFromCache(target string) (models.LinkMeta, error)

func SaveLinkMetaToCache

func SaveLinkMetaToCache(target string, meta models.LinkMeta) error

func SendMail

func SendMail(target string, subject string, content string) error

func SendMailHTML

func SendMailHTML(target string, subject string, content string) error

func SetupAPNS

func SetupAPNS() error

func SetupFirebase

func SetupFirebase() error

func WebsocketPush

func WebsocketPush(uid uint, body []byte) (count int, success int, errs []error)

func WebsocketPushBatch

func WebsocketPushBatch(uidList []uint, body []byte) (count int, success int, errs []error)

func WebsocketPushBatchDirect

func WebsocketPushBatchDirect(clientIdList []uint64, body []byte) (count int, success int, errs []error)

func WebsocketPushDirect

func WebsocketPushDirect(clientId uint64, body []byte) (count int, success int, errs []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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