Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FCM ¶
type FCM struct { FcmSubscribe func(string) (interface{}, error) // contains filtered or unexported fields }
func NewFCM ¶
func NewFCM(clientID string, proxyName string, fcmServerBindURL string, FcmSubscribe func(string) (interface{}, error), notifications chan<- notification.PrinterNotification) (*FCM, error)
func (*FCM) ConnectToFcm ¶
func (f *FCM) ConnectToFcm(fcmNotifications chan<- notification.PrinterNotification, iidToken string, dead chan<- struct{}, quit chan<- struct{}) error
Fcm notification listener
func (*FCM) GetTokenWithRetry ¶
type FCMMessage ¶
type FCMMessage []struct { From string `json:"from"` Category string `json:"category"` CollapseKey string `json:"collapse_key"` Data struct { Notification string `json:"notification"` Subtype string `json:"subtype"` } `json:"data"` MessageID string `json:"message_id"` TimeToLive int `json:"time_to_live"` }
Click to show internal directories.
Click to hide internal directories.