sender

package
v0.0.0-...-5710dc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Cfg data

Functions

func Send

func Send(message Message) error

Send push notification

Types

type Message

type Message struct {
	fcm.NotificationPayload
	Token     string                 `json:"token"`
	Transport string                 `json:"transport"`
	Data      map[string]interface{} `json:"data,omitempty"`
	DataOnly  bool                   `json:"data_only",omitempty"`
}

Message structure

func Parse

func Parse(jsonString []byte) Message

Parse incoming message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL