fcm

package
v0.0.0-...-91e7bcc Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents http client that manages JSON payload.

func New

func New(apiKey string) (*Client, error)

New starts a daemon fcm channel that receives and post payload data.

func (*Client) Forward

func (c *Client) Forward(topicID, msgID, address, text string) error

func (*Client) Ping

func (c *Client) Ping(topicID string) error

func (*Client) Send

func (c *Client) Send(topic string, data map[string]interface{}) error

type Config

type Config struct {
	APIKey string
}

Config represents FCM config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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