fcmgo

package module
v0.0.0-...-a872f48 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 5 Imported by: 0

README

fcmgo

Implements the v0 FCM API for sending direct messages.

License

Copyright © 2020 Stojan Dimitrovski. Some rights reserved.

Licensed under the MIT X11 License. See it in LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Authorization string
	Client        *http.Client
}

An FCM client. Just initialize this struct, and you'll be good to go.

func (Client) Send

func (fcm Client) Send(ctx context.Context, msg *DirectMessage) (*Response, error)

type DirectMessage

type DirectMessage struct {
	To   string      `json:"to"`
	Data interface{} `json:"data"`
}

type Response

type Response struct {
	HTTP *http.Response
	Data ResponseData
}

type ResponseData

type ResponseData struct {
}

Jump to

Keyboard shortcuts

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