From 6d312fdd691f95073b44f04d6234a2c3363e6a94 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 24 Jun 2017 12:08:22 +0800 Subject: [PATCH] move storage interface to storage folder. 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 {