2016-04-13 07:22:04 +00:00
|
|
|
package gorush
|
2016-03-26 05:59:56 +00:00
|
|
|
|
2016-03-26 06:26:07 +00:00
|
|
|
import (
|
|
|
|
"crypto/tls"
|
2017-01-19 09:08:12 +00:00
|
|
|
|
2016-05-03 01:56:59 +00:00
|
|
|
"github.com/appleboy/gorush/config"
|
2017-06-24 04:09:45 +00:00
|
|
|
"github.com/appleboy/gorush/storage"
|
|
|
|
|
2016-03-26 15:42:22 +00:00
|
|
|
apns "github.com/sideshow/apns2"
|
2017-06-24 18:23:24 +00:00
|
|
|
"github.com/sirupsen/logrus"
|
2016-03-26 06:26:07 +00:00
|
|
|
)
|
|
|
|
|
2016-03-26 05:59:56 +00:00
|
|
|
var (
|
2016-04-13 06:59:28 +00:00
|
|
|
// PushConf is gorush config
|
2016-05-02 11:42:21 +00:00
|
|
|
PushConf config.ConfYaml
|
2016-04-14 12:34:23 +00:00
|
|
|
// QueueNotification is chan type
|
|
|
|
QueueNotification chan PushNotification
|
2016-04-13 06:59:28 +00:00
|
|
|
// CertificatePemIos is ios certificate file
|
2016-03-26 06:26:07 +00:00
|
|
|
CertificatePemIos tls.Certificate
|
2016-04-13 06:59:28 +00:00
|
|
|
// ApnsClient is apns client
|
|
|
|
ApnsClient *apns.Client
|
|
|
|
// LogAccess is log server request log
|
|
|
|
LogAccess *logrus.Logger
|
|
|
|
// LogError is log server error log
|
2016-04-15 10:06:16 +00:00
|
|
|
LogError *logrus.Logger
|
2016-05-02 09:03:08 +00:00
|
|
|
// StatStorage implements the storage interface
|
2017-06-24 04:09:45 +00:00
|
|
|
StatStorage storage.Storage
|
2016-03-26 05:59:56 +00:00
|
|
|
)
|