gorush/gorush/global.go

25 lines
563 B
Go

package gorush
import (
"crypto/tls"
"github.com/Sirupsen/logrus"
apns "github.com/sideshow/apns2"
)
var (
// PushConf is gorush config
PushConf 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
// RushStatus is notification status
RushStatus StatusApp
)