move storage interface to storage folder. (#240)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -3,8 +3,10 @@ package gorush
|
||||
import (
|
||||
"crypto/tls"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/appleboy/gorush/config"
|
||||
"github.com/appleboy/gorush/storage"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
apns "github.com/sideshow/apns2"
|
||||
)
|
||||
|
||||
@@ -22,5 +24,5 @@ var (
|
||||
// LogError is log server error log
|
||||
LogError *logrus.Logger
|
||||
// StatStorage implements the storage interface
|
||||
StatStorage Storage
|
||||
StatStorage storage.Storage
|
||||
)
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
package gorush
|
||||
|
||||
// Storage interface
|
||||
type Storage interface {
|
||||
Init() error
|
||||
Reset()
|
||||
AddTotalCount(int64)
|
||||
AddIosSuccess(int64)
|
||||
AddIosError(int64)
|
||||
AddAndroidSuccess(int64)
|
||||
AddAndroidError(int64)
|
||||
GetTotalCount() int64
|
||||
GetIosSuccess() int64
|
||||
GetIosError() int64
|
||||
GetAndroidSuccess() int64
|
||||
GetAndroidError() int64
|
||||
}
|
||||
Reference in New Issue
Block a user