firebase

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

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

Go to latest
Published: Sep 11, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Send message to mobile devices through fcm

Index

Constants

View Source
const (
	SbjBitcoinAndroid  = "Bitcoin-Android"
	SbjEthereumAndroid = "Ethereum-Android"

	MsgTitleEthereum = "Ethereum Confirmation"
	MsgTitleBitcoin  = "Ethereum Confirmation"
)

Variables

This section is empty.

Functions

func PublishFirebase

func PublishFirebase(ec *nats.EncodedConn, subject string, symbol shared.Symbol,
	msgTitle string, deviceID string, nickname string, msg string, value string)

Publish a message to Firebase ids

func PushMessage

func PushMessage(msg *Message)

func SubscribeToChannel

func SubscribeToChannel(ec *nats.EncodedConn, subject string)

Types

type Message

type Message struct {
	DeviceID string
	Nickname string
	Message  string
	Symbol   shared.Symbol
	Title    string
	Value    string
}

Jump to

Keyboard shortcuts

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