Refactor kafka to pure Go (franz-go), fix DBC stubs, update Dockerfile

This commit is contained in:
Chris Rai
2026-01-31 00:05:47 -05:00
parent fbb820d7b3
commit b5bec57dfa
776 changed files with 18945 additions and 2052 deletions

View File

@@ -6,7 +6,7 @@ import (
"strings"
"sync"
"fiskerinc.com/modules/logger"
"github.com/fiskerinc/cloud-services/pkg/logger"
"github.com/gomodule/redigo/redis"
"github.com/pkg/errors"
)

View File

@@ -3,8 +3,8 @@ package redis
import (
"testing"
m "fiskerinc.com/modules/common"
"fiskerinc.com/modules/testhelper"
m "github.com/fiskerinc/cloud-services/pkg/common"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/gomodule/redigo/redis"
)

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
"fiskerinc.com/modules/logger"
"github.com/fiskerinc/cloud-services/pkg/logger"
"github.com/google/uuid"
)

View File

@@ -5,7 +5,7 @@ import (
"strconv"
"time"
mock_redis "fiskerinc.com/modules/redis/mock"
mock_redis "github.com/fiskerinc/cloud-services/pkg/redis/mock"
"github.com/golang/mock/gomock"
"github.com/gomodule/redigo/redis"

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"time"
"fiskerinc.com/modules/logger"
"fiskerinc.com/modules/utils/envtool"
"github.com/fiskerinc/cloud-services/pkg/logger"
"github.com/fiskerinc/cloud-services/pkg/utils/envtool"
"github.com/gomodule/redigo/redis"
"github.com/pkg/errors"

View File

@@ -3,7 +3,7 @@ package redis
import (
"testing"
"fiskerinc.com/modules/testhelper"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
)
func TestRedisGetPool(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"context"
"sync"
"fiskerinc.com/modules/logger"
"github.com/fiskerinc/cloud-services/pkg/logger"
"github.com/gomodule/redigo/redis"
"github.com/pkg/errors"
)

View File

@@ -4,7 +4,7 @@ import (
"context"
"testing"
"fiskerinc.com/modules/testhelper"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
)
func TestInitPubsub(t *testing.T) {

View File

@@ -9,8 +9,8 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog"
"fiskerinc.com/modules/logger"
"fiskerinc.com/modules/scheduler"
"github.com/fiskerinc/cloud-services/pkg/logger"
"github.com/fiskerinc/cloud-services/pkg/scheduler"
)
const (

View File

@@ -8,7 +8,7 @@ import (
"testing"
"time"
"fiskerinc.com/modules/testhelper"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/pkg/errors"
)

View File

@@ -3,7 +3,7 @@ package redisutils
import (
"time"
"fiskerinc.com/modules/redis"
"github.com/fiskerinc/cloud-services/pkg/redis"
"github.com/pkg/errors"
)

View File

@@ -1,7 +1,7 @@
package redisutils
import (
"fiskerinc.com/modules/redis"
"github.com/fiskerinc/cloud-services/pkg/redis"
"time"
)

View File

@@ -5,8 +5,8 @@ import (
"testing"
"time"
"fiskerinc.com/modules/redis/redisutils"
"fiskerinc.com/modules/redis/tester"
"github.com/fiskerinc/cloud-services/pkg/redis/redisutils"
"github.com/fiskerinc/cloud-services/pkg/redis/tester"
"github.com/stretchr/testify/assert"
)

View File

@@ -1,7 +1,7 @@
package redisutils
import (
re "fiskerinc.com/modules/redis"
re "github.com/fiskerinc/cloud-services/pkg/redis"
"github.com/gomodule/redigo/redis"
"github.com/pkg/errors"
)

View File

@@ -3,7 +3,7 @@ package redis
import (
"testing"
"fiskerinc.com/modules/testhelper"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
)
func TestInitSet(t *testing.T) {

View File

@@ -7,8 +7,8 @@ import (
"strings"
"sync"
"fiskerinc.com/modules/common"
"fiskerinc.com/modules/redis"
"github.com/fiskerinc/cloud-services/pkg/common"
"github.com/fiskerinc/cloud-services/pkg/redis"
"github.com/pkg/errors"
)

View File

@@ -3,7 +3,7 @@ package tester
import (
"sync"
"fiskerinc.com/modules/redis"
"github.com/fiskerinc/cloud-services/pkg/redis"
)
func NewMockClientPool(args ...interface{}) redis.ClientPoolInterface {

View File

@@ -3,8 +3,8 @@ package tester
import (
"testing"
"fiskerinc.com/modules/common"
"fiskerinc.com/modules/utils/elptr"
"github.com/fiskerinc/cloud-services/pkg/common"
"github.com/fiskerinc/cloud-services/pkg/utils/elptr"
"github.com/stretchr/testify/assert"
)

View File

@@ -1,6 +1,6 @@
package tester
import "fiskerinc.com/modules/cache"
import "github.com/fiskerinc/cloud-services/pkg/cache"
type MockVehiclesCache struct{}

View File

@@ -5,8 +5,8 @@ import (
"regexp"
"testing"
"fiskerinc.com/modules/common"
"fiskerinc.com/modules/testhelper"
"github.com/fiskerinc/cloud-services/pkg/common"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
)
type ExpiringCacheResult struct {