push

package
v0.0.0-...-f82e362 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendAllConfig

type SendAllConfig struct {
	Tokens []string `json:"tokens"`
	Title  string   `json:"title"`
	Body   string   `json:"body"`
	Image  string   `json:"image"`
}

type SendConfig

type SendConfig struct {
	Token string `json:"token"`
	Title string `json:"title"`
	Body  string `json:"body"`
	Image string `json:"image"`
}

type Service

type Service interface {
	Send(ctx context.Context, cnf SendConfig) error
	SendAll(ctx context.Context, cnf SendAllConfig) error
}

func New

func New(cnf config.Firebase) Service

Jump to

Keyboard shortcuts

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