move storage interface to storage folder. (#240)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2017-06-23 23:09:45 -05:00
committed by GitHub
parent c1b9c19506
commit 8dcc680434
2 changed files with 5 additions and 3 deletions

View File

@@ -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
)

View File

@@ -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
}