pushmessage

package
v0.0.0-...-e31961d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectID          string
	ServiceAccountID   string
	Bucket             string
	ServiceAccountFile string
	DryRun             bool
}

Config of firebase

type Firebase

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

Firebase backend for pushmessage

func New

func New(ctx context.Context, config *Config) (*Firebase, error)

New firebase push message package

func (*Firebase) Send

func (f *Firebase) Send(ctx context.Context, message *messaging.Message, options *SendOptions) (string, error)

Send notification

type SendOptions

type SendOptions struct {
	DryRun bool
}

SendOptions for firebase client

Jump to

Keyboard shortcuts

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