package
0.23.0
Repository: https://github.com/tinode/chat.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package fcm implements push notification plugin for Google FCM backend.
Package stdout is a sample implementation of a push plugin.
Package tnpg implements push notification plugin for Tinode Push Gateway.

# Functions

ChannelSub handles a channel (FCM topic) subscription/unsubscription request.
Init initializes registered handlers.
Push a single message to devices.
Register a push handler.
Stop all pushes.

# Constants

New message.
Messages read: clear unread count.
New subscription.
MaxPayloadLength is the maximum length of push payload in multibyte characters.

# Structs

ChannelReq is a request to subscribe/unsubscribe device ID(s) to channel(s) (FCM topic).
Payload is content of the push.
Receipt is the push payload with a list of recipients.
Recipient is a user targeted by the push.

# Interfaces

Handler is an interface which must be implemented by handlers.