Rename module

This commit is contained in:
2022-01-13 09:10:36 +01:00
parent ae21fd8a11
commit bd7e36e98b
15 changed files with 28 additions and 28 deletions

View File

@@ -10,12 +10,12 @@ import (
gossh "golang.org/x/crypto/ssh"
"github.uio.no/torjus/apiary/config"
"git.t-juice.club/torjus/apiary/config"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/models"
sshlib "github.com/gliderlabs/ssh"
"github.com/google/uuid"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"github.uio.no/torjus/apiary/models"
"go.uber.org/zap"
)

View File

@@ -1,6 +1,6 @@
package store
import "github.uio.no/torjus/apiary/models"
import "git.t-juice.club/torjus/apiary/models"
type CachingStore struct {
backend LoginAttemptStore

View File

@@ -3,7 +3,7 @@ package store_test
import (
"testing"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
)
func TestCacheStore(t *testing.T) {

View File

@@ -6,7 +6,7 @@ import (
"strings"
"sync"
"github.uio.no/torjus/apiary/models"
"git.t-juice.club/torjus/apiary/models"
)
type MemoryStore struct {

View File

@@ -3,7 +3,7 @@ package store_test
import (
"testing"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
)
func TestMemoryStore(t *testing.T) {

View File

@@ -4,8 +4,8 @@ import (
"context"
"time"
"git.t-juice.club/torjus/apiary/models"
"github.com/prometheus/client_golang/prometheus"
"github.uio.no/torjus/apiary/models"
)
const tickDuration = 5 * time.Second

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"net"
"git.t-juice.club/torjus/apiary/models"
_ "github.com/jackc/pgx/v4/stdlib"
"github.uio.no/torjus/apiary/models"
)
const DBSchema = `

View File

@@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
)
func TestPostgresStore(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package store
import (
"errors"
"github.uio.no/torjus/apiary/models"
"git.t-juice.club/torjus/apiary/models"
)
var ErrStoreUnhealthy = errors.New("store is unhealthy")

View File

@@ -6,9 +6,9 @@ import (
"testing"
"time"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/models"
"github.com/google/uuid"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"github.uio.no/torjus/apiary/models"
)
func testLoginAttemptStore(s store.LoginAttemptStore, t *testing.T) {