pusher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.1.0"

Version is the current version of pusher

Functions

This section is empty.

Types

type APNSPusher

type APNSPusher struct {
	AppName           string
	CertificatePath   string
	Config            *viper.Viper
	ConfigFile        string
	IsProduction      bool
	Logger            *logrus.Logger
	MessageHandler    extifaces.MessageHandler
	PendingMessagesWG *sync.WaitGroup
	Queue             extifaces.Queue
	// contains filtered or unexported fields
}

APNSPusher struct for apns pusher

func NewAPNSPusher

func NewAPNSPusher(configFile, certificatePath, appName string, isProduction bool, logger *logrus.Logger) *APNSPusher

NewAPNSPusher for getting a new APNSPusher instance

func (*APNSPusher) Start

func (a *APNSPusher) Start()

Start starts pusher in apns mode

type GCMPusher

type GCMPusher struct {
	AppName        string
	Config         *viper.Viper
	ConfigFile     string
	IsProduction   bool
	Logger         *logrus.Logger
	MessageHandler extifaces.MessageHandler
	Queue          extifaces.Queue
	// contains filtered or unexported fields
}

GCMPusher struct for GCM pusher

func NewGCMPusher

func NewGCMPusher(
	configFile, senderID, apiKey, appName string,
	isProduction bool, logger *logrus.Logger,
	clientOrNil ...interfaces.GCMClient,
) (*GCMPusher, error)

NewGCMPusher for getting a new GCMPusher instance

func (*GCMPusher) Start

func (g *GCMPusher) Start()

Start starts pusher in apns mode

Jump to

Keyboard shortcuts

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