gorush/gorush/global.go

29 lines
665 B
Go
Raw Normal View History

package gorush
import (
"crypto/tls"
2017-01-19 09:08:12 +00:00
"github.com/appleboy/gorush/config"
"github.com/appleboy/gorush/storage"
apns "github.com/sideshow/apns2"
"github.com/sirupsen/logrus"
)
var (
// PushConf is gorush config
PushConf config.ConfYaml
// QueueNotification is chan type
QueueNotification chan PushNotification
// CertificatePemIos is ios certificate file
CertificatePemIos tls.Certificate
// ApnsClient is apns client
ApnsClient *apns.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
)