refactor: update import path.
This commit is contained in:
@@ -2,6 +2,7 @@ package gorush
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/appleboy/gorush/config"
|
"github.com/appleboy/gorush/config"
|
||||||
apns "github.com/sideshow/apns2"
|
apns "github.com/sideshow/apns2"
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
package gorush
|
package gorush
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/appleboy/gorush/config"
|
"github.com/appleboy/gorush/config"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"testing"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetLogLevel(t *testing.T) {
|
func TestSetLogLevel(t *testing.T) {
|
||||||
|
|||||||
@@ -3,14 +3,15 @@ package gorush
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/google/go-gcm"
|
|
||||||
apns "github.com/sideshow/apns2"
|
|
||||||
"github.com/sideshow/apns2/certificate"
|
|
||||||
"github.com/sideshow/apns2/payload"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"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
|
// D provide string array
|
||||||
|
|||||||
@@ -2,15 +2,16 @@ package gorush
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/appleboy/gorush/config"
|
"github.com/appleboy/gorush/config"
|
||||||
"github.com/buger/jsonparser"
|
"github.com/buger/jsonparser"
|
||||||
"github.com/google/go-gcm"
|
"github.com/google/go-gcm"
|
||||||
"github.com/sideshow/apns2"
|
"github.com/sideshow/apns2"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"log"
|
|
||||||
"os"
|
|
||||||
"testing"
|
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDisabledAndroidIosConf(t *testing.T) {
|
func TestDisabledAndroidIosConf(t *testing.T) {
|
||||||
|
|||||||
@@ -2,8 +2,9 @@ package gorush
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string
|
var version string
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
package boltdb
|
package boltdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
c "github.com/appleboy/gorush/config"
|
c "github.com/appleboy/gorush/config"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"testing"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBoltDBEngine(t *testing.T) {
|
func TestBoltDBEngine(t *testing.T) {
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ package buntdb
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/appleboy/gorush/config"
|
"github.com/appleboy/gorush/config"
|
||||||
"github.com/tidwall/buntdb"
|
"github.com/tidwall/buntdb"
|
||||||
"strconv"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Stat variable for redis
|
// Stat variable for redis
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
package buntdb
|
package buntdb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
c "github.com/appleboy/gorush/config"
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
c "github.com/appleboy/gorush/config"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBuntDBEngine(t *testing.T) {
|
func TestBuntDBEngine(t *testing.T) {
|
||||||
|
|||||||
@@ -2,9 +2,10 @@ package leveldb
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/appleboy/gorush/config"
|
"github.com/appleboy/gorush/config"
|
||||||
"github.com/syndtr/goleveldb/leveldb"
|
"github.com/syndtr/goleveldb/leveldb"
|
||||||
"strconv"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Stat variable for redis
|
// Stat variable for redis
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
package leveldb
|
package leveldb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
c "github.com/appleboy/gorush/config"
|
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
c "github.com/appleboy/gorush/config"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLevelDBEngine(t *testing.T) {
|
func TestLevelDBEngine(t *testing.T) {
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
package memory
|
package memory
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMemoryEngine(t *testing.T) {
|
func TestMemoryEngine(t *testing.T) {
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
package redis
|
package redis
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/appleboy/gorush/config"
|
|
||||||
"gopkg.in/redis.v5"
|
|
||||||
"log"
|
"log"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/appleboy/gorush/config"
|
||||||
|
"gopkg.in/redis.v5"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Stat variable for redis
|
// Stat variable for redis
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
package redis
|
package redis
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
c "github.com/appleboy/gorush/config"
|
c "github.com/appleboy/gorush/config"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"testing"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRedisServerError(t *testing.T) {
|
func TestRedisServerError(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user