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

@@ -3,8 +3,8 @@ package validator_test
import (
"testing"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
)
type TestCANID struct {

View File

@@ -3,7 +3,7 @@ package validator
import (
"regexp"
"fiskerinc.com/modules/logger"
"github.com/fiskerinc/cloud-services/pkg/logger"
"github.com/go-playground/validator/v10"
"github.com/pkg/errors"
)

View File

@@ -3,8 +3,8 @@ package validator_test
import (
"testing"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
)
type TestCertSerial struct {

View File

@@ -1,7 +1,7 @@
package validator
import (
"fiskerinc.com/modules/common"
"github.com/fiskerinc/cloud-services/pkg/common"
"github.com/go-playground/validator/v10"
)

View File

@@ -3,8 +3,8 @@ package validator_test
import (
"testing"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
)
type TestECU struct {

View File

@@ -3,7 +3,7 @@ package validator_test
import (
"testing"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/validator"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"

View File

@@ -3,8 +3,8 @@ package validator_test
import (
"testing"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
)
type TestFleet struct {

View File

@@ -3,8 +3,8 @@ package validator_test
import (
"testing"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
)
type TestPageQueryOptions struct {

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"testing"
"fiskerinc.com/modules/common"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/common"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
v "github.com/go-playground/validator/v10"
)

View File

@@ -6,7 +6,7 @@ import (
"github.com/go-playground/validator/v10"
"github.com/pkg/errors"
"fiskerinc.com/modules/vindecoder"
"github.com/fiskerinc/cloud-services/pkg/vindecoder"
)
func validateVIN(fl validator.FieldLevel) bool {

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"testing"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
)
func TestValidateVinCheckDigit(t *testing.T) {

View File

@@ -3,8 +3,8 @@ package validator_test
import (
"testing"
"fiskerinc.com/modules/testhelper"
"fiskerinc.com/modules/validator"
"github.com/fiskerinc/cloud-services/pkg/testhelper"
"github.com/fiskerinc/cloud-services/pkg/validator"
)
type TestCar struct {