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
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
Click to show internal directories.
Click to hide internal directories.