Documentation
¶
Index ¶
- Variables
- func ClientCount(uid uint) int
- func ClientRegister(user models.Account, conn *websocket.Conn) uint64
- func ClientUnregister(user models.Account, id uint64)
- func DealDeliveryTask(task any)
- func LinkExpand(target string) (*models.LinkMeta, error)
- func PushAppleNotify(token string, in *proto.NotifyRequest) error
- func PushFirebaseNotify(token string, in *proto.NotifyRequest) error
- func RetrieveLinkMetaFromCache(target string) (models.LinkMeta, error)
- func SaveLinkMetaToCache(target string, meta models.LinkMeta) error
- func SendMail(target string, subject string, content string) error
- func SendMailHTML(target string, subject string, content string) error
- func SetupAPNS() error
- func SetupFirebase() error
- func WebsocketPush(uid uint, body []byte) (count int, success int, errs []error)
- func WebsocketPushBatch(uidList []uint, body []byte) (count int, success int, errs []error)
- func WebsocketPushBatchDirect(clientIdList []uint64, body []byte) (count int, success int, errs []error)
- func WebsocketPushDirect(clientId uint64, body []byte) (count int, success int, errs []error)
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 ClientUnregister ¶
func DealDeliveryTask ¶
func DealDeliveryTask(task any)
func PushAppleNotify ¶
func PushAppleNotify(token string, in *proto.NotifyRequest) error
func PushFirebaseNotify ¶
func PushFirebaseNotify(token string, in *proto.NotifyRequest) error
func SetupFirebase ¶
func SetupFirebase() error
func WebsocketPush ¶
func WebsocketPushBatch ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.