Files
gorush/gorush/global.go
Bo-Yi Wu c06e819e08 Support new Apple Token Based Authentication (JWT) (#300)
* Support new Apple Token Based Authentication (JWT)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-25 03:49:23 -05:00

28 lines
647 B
Go

package gorush
import (
"github.com/appleboy/gorush/config"
"github.com/appleboy/gorush/storage"
"github.com/appleboy/go-fcm"
"github.com/sideshow/apns2"
"github.com/sirupsen/logrus"
)
var (
// PushConf is gorush config
PushConf config.ConfYaml
// QueueNotification is chan type
QueueNotification chan PushNotification
// ApnsClient is apns client
ApnsClient *apns2.Client
// FCMClient is apns client
FCMClient *fcm.Client
// LogAccess is log server request log
LogAccess *logrus.Logger
// LogError is log server error log
LogError *logrus.Logger
// StatStorage implements the storage interface
StatStorage storage.Storage
)