firebase

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddData

func AddData(key string, data interface{}, cf Config) (*firestore.DocumentRef, error)

func GetDecodedFireBaseKey

func GetDecodedFireBaseKey(key string) ([]byte, error)

func Initialize

func Initialize(key string) (*firebase.App, error)

func SendSingleNotification

func SendSingleNotification(key string, messaging *messaging.Message) error

Send Push notifications to a single device

Types

type Config

type Config struct {
	ParentCollection    string
	ParentDocument      string
	SubParentCollection string
	Collection          string
	DocName             string
}

Jump to

Keyboard shortcuts

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