chat: github.com/tinode/chat/server/push/tnpg Index | Files

package tnpg

import "github.com/tinode/chat/server/push/tnpg"

Package tnpg implements push notification plugin for Tinode Push Gateway.

Index

Package Files

push_tnpg.go

type Handler Uses

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

Handler represents state of TNPG push client.

func (Handler) Init Uses

func (Handler) Init(jsonconf string) error

Init initializes the handler

func (Handler) IsReady Uses

func (Handler) IsReady() bool

IsReady checks if the handler is initialized.

func (Handler) Push Uses

func (Handler) Push() chan<- *push.Receipt

Push returns a channel that the server will use to send messages to. If the adapter blocks, the message will be dropped.

func (Handler) Stop Uses

func (Handler) Stop()

Stop terminates the handler's worker and stops sending pushes.

Package tnpg imports 11 packages (graph) and is imported by 2 packages. Updated 2020-07-13. Refresh now. Tools for package owners.