Documentation
¶
Overview ¶
Package push adapts the long-lived FCM connection to Ring's account-scoped API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRegistrationTransport ¶
func NewRegistrationTransport(next http.RoundTripper) http.RoundTripper
NewRegistrationTransport applies the compatibility rules required by Ring's FCM registration before handing a request to the supplied transport.
Types ¶
type Event ¶
type Event struct {
Kind Kind
Token string
Credentials json.RawMessage
Data json.RawMessage
Err error
}
func TranslateEvent ¶
func TranslateEvent(raw pushreceiver.Event) (Event, bool)
TranslateEvent maps third-party receiver events into this package's event shape.
Click to show internal directories.
Click to hide internal directories.