From 8dcc680434cfe798c78dd43b3353ff6cc0b97dd5 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 23 Jun 2017 23:09:45 -0500 Subject: [PATCH] move storage interface to storage folder. (#240) Signed-off-by: Bo-Yi Wu --- gorush/global.go | 6 ++++-- {gorush => storage}/storage.go | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) rename {gorush => storage}/storage.go (95%) diff --git a/gorush/global.go b/gorush/global.go index 5e417b38a..3381988e6 100644 --- a/gorush/global.go +++ b/gorush/global.go @@ -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 ) diff --git a/gorush/storage.go b/storage/storage.go similarity index 95% rename from gorush/storage.go rename to storage/storage.go index 7c820ddb8..c78268c4a 100644 --- a/gorush/storage.go +++ b/storage/storage.go @@ -1,4 +1,4 @@ -package gorush +package storage // Storage interface type Storage interface {