refactor: update import path.

This commit is contained in:
Bo-Yi Wu 2017-01-19 17:08:12 +08:00
parent a669070ffb
commit a7b969dcf3
13 changed files with 34 additions and 21 deletions

View File

@ -2,6 +2,7 @@ package gorush
import (
"crypto/tls"
"github.com/Sirupsen/logrus"
"github.com/appleboy/gorush/config"
apns "github.com/sideshow/apns2"

View File

@ -1,10 +1,11 @@
package gorush
import (
"testing"
"github.com/Sirupsen/logrus"
"github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
"testing"
)
func TestSetLogLevel(t *testing.T) {

View File

@ -3,14 +3,15 @@ package gorush
import (
"errors"
"fmt"
"github.com/google/go-gcm"
apns "github.com/sideshow/apns2"
"github.com/sideshow/apns2/certificate"
"github.com/sideshow/apns2/payload"
"net/http"
"net/url"
"path/filepath"
"time"
"github.com/google/go-gcm"
apns "github.com/sideshow/apns2"
"github.com/sideshow/apns2/certificate"
"github.com/sideshow/apns2/payload"
)
// D provide string array

View File

@ -2,15 +2,16 @@ package gorush
import (
"encoding/json"
"log"
"os"
"testing"
"time"
"github.com/appleboy/gorush/config"
"github.com/buger/jsonparser"
"github.com/google/go-gcm"
"github.com/sideshow/apns2"
"github.com/stretchr/testify/assert"
"log"
"os"
"testing"
"time"
)
func TestDisabledAndroidIosConf(t *testing.T) {

View File

@ -2,8 +2,9 @@ package gorush
import (
"fmt"
"github.com/gin-gonic/gin"
"runtime"
"github.com/gin-gonic/gin"
)
var version string

View File

@ -1,9 +1,10 @@
package boltdb
import (
"testing"
c "github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
"testing"
)
func TestBoltDBEngine(t *testing.T) {

View File

@ -2,9 +2,10 @@ package buntdb
import (
"fmt"
"strconv"
"github.com/appleboy/gorush/config"
"github.com/tidwall/buntdb"
"strconv"
)
// Stat variable for redis

View File

@ -1,10 +1,11 @@
package buntdb
import (
c "github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
"os"
"testing"
c "github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
)
func TestBuntDBEngine(t *testing.T) {

View File

@ -2,9 +2,10 @@ package leveldb
import (
"fmt"
"strconv"
"github.com/appleboy/gorush/config"
"github.com/syndtr/goleveldb/leveldb"
"strconv"
)
// Stat variable for redis

View File

@ -1,10 +1,11 @@
package leveldb
import (
c "github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
"os"
"testing"
c "github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
)
func TestLevelDBEngine(t *testing.T) {

View File

@ -1,8 +1,9 @@
package memory
import (
"github.com/stretchr/testify/assert"
"testing"
"github.com/stretchr/testify/assert"
)
func TestMemoryEngine(t *testing.T) {

View File

@ -1,10 +1,11 @@
package redis
import (
"github.com/appleboy/gorush/config"
"gopkg.in/redis.v5"
"log"
"strconv"
"github.com/appleboy/gorush/config"
"gopkg.in/redis.v5"
)
// Stat variable for redis

View File

@ -1,9 +1,10 @@
package redis
import (
"testing"
c "github.com/appleboy/gorush/config"
"github.com/stretchr/testify/assert"
"testing"
)
func TestRedisServerError(t *testing.T) {