refactor: imports

This commit is contained in:
l3uddz
2022-04-01 20:42:05 +01:00
parent a73b07a041
commit 19a5e73c19
40 changed files with 91 additions and 53 deletions

3
cache/cache.go vendored
View File

@@ -3,11 +3,12 @@ package cache
import (
"context"
"fmt"
"time"
"github.com/dgraph-io/badger/v3"
"github.com/l3uddz/nabarr/logger"
"github.com/lefelys/state"
"github.com/rs/zerolog"
"time"
)
type Client struct {

1
cache/delete.go vendored
View File

@@ -2,6 +2,7 @@ package cache
import (
"fmt"
"github.com/dgraph-io/badger/v3"
)

View File

@@ -1,8 +1,9 @@
package cache
import (
"github.com/rs/zerolog"
"testing"
"github.com/rs/zerolog"
)
func TestClient_Delete(t *testing.T) {

1
cache/get.go vendored
View File

@@ -2,6 +2,7 @@ package cache
import (
"fmt"
"github.com/dgraph-io/badger/v3"
)

3
cache/get_test.go vendored
View File

@@ -1,10 +1,11 @@
package cache
import (
"github.com/rs/zerolog"
"reflect"
"testing"
"time"
"github.com/rs/zerolog"
)
func TestClient_Get(t *testing.T) {

3
cache/put.go vendored
View File

@@ -2,8 +2,9 @@ package cache
import (
"fmt"
"github.com/dgraph-io/badger/v3"
"time"
"github.com/dgraph-io/badger/v3"
)
func (c *Client) Put(bucket string, key string, val []byte, ttl time.Duration) error {

3
cache/put_test.go vendored
View File

@@ -1,10 +1,11 @@
package cache
import (
"github.com/rs/zerolog"
"reflect"
"testing"
"time"
"github.com/rs/zerolog"
)
func TestClient_Put(t *testing.T) {

3
cache/test.go vendored
View File

@@ -1,8 +1,9 @@
package cache
import (
"github.com/dgraph-io/badger/v3"
"testing"
"github.com/dgraph-io/badger/v3"
)
func newDb(t *testing.T) *badger.DB {