google

package
v0.0.0-...-8fbe7d1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromBytes

func ConfigFromBytes(bytes []byte) (*jwt.Config, string, error)

ConfigFromBytes read configuration from bytes

func ConfigFromFile

func ConfigFromFile(path string) (*jwt.Config, string, error)

ConfigFromFile read configuration from a file

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a FCM client

func New

func New(conf *jwt.Config, projectID string) *Client

New creates a new FCM Client

func (*Client) Send

func (c *Client) Send(m *messaging.Message) (string, int, error)

Send makes a request to FCM and returns the message ID

Jump to

Keyboard shortcuts

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