package
Version:
v2.3.84
Opens a new window with list of versions in this module.
Published: Feb 6, 2025
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Data struct {
PushType PushType `json:"push_type,omitempty"`
Topic string `json:"topic,omitempty"`
Message interface{} `json:"message"`
MessageType string `json:"message_type"`
MessageAction string `json:"message_action"`
From *int `json:"-"`
To *int `json:"-"`
}
type Message struct {
Type string `json:"type"`
Action string `json:"action"`
PushType *PushType `json:"push_type,omitempty"`
Topic *Topic `json:"topic,omitempty"`
Message interface{} `json:"message"`
From *int `json:"from,omitempty"`
To *int `json:"to,omitempty"`
}
const (
PushTypeBackground PushType = "background"
PushTypeAlert PushType = "alert"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.