Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Send FCM message to FCM server.
Send(notification Notification, data Data, regIds ...string) (Response, error)
}
Client is an interface for FCM server.
type Notification ¶
type Notification struct {
Title string
Body string
Icon string
Sound string
Badge string
Tag string
Color string
ClickAction string
}
Notification is a "notification" section in FCM message
func (*Notification) ToMap ¶
func (n *Notification) ToMap() map[string]interface{}
ToMap coverts to map[string]interface{}
Click to show internal directories.
Click to hide internal directories.