push

package
v0.0.0-...-b289748 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Push

type Push struct {
	HandlersNames []string
	// contains filtered or unexported fields
}

func NewPush

func NewPush(cfg config.PushConfig) (*Push, error)

func (*Push) ChannelSub

func (p *Push) ChannelSub(msg *types.ChannelReq)

ChannelSub handles a channel (FCM topic) subscription/unsubscription request.

func (*Push) Push

func (p *Push) Push(msg *types.Receipt)

Push a single message to devices.

func (*Push) Stop

func (p *Push) Stop()

Stop all pushes

Directories

Path Synopsis
Package fcm implements push notification plugin for Google FCM backend.
Package fcm implements push notification plugin for Google FCM backend.
Package stdout is a sample implementation of a push plugin.
Package stdout is a sample implementation of a push plugin.
Package tnpg implements push notification plugin for Tinode Push Gateway.
Package tnpg implements push notification plugin for Tinode Push Gateway.

Jump to

Keyboard shortcuts

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