MSP-5223 sort imports

This commit is contained in:
Кузнецов Иван Александрович committed 2025-04-11 13:36:48 +03:00
1 parent 9d299beaf6
commit 7a426b647b
18 files changed
+34 -17

No files matched your search

+3 -2
View File
@@ -4,6 +4,9 @@ import (
"context"
"database/sql"
"fmt"
"os"
"time"
"github.com/pressly/goose/v3"
"github.com/txix-open/isp-kit/config"
"github.com/txix-open/isp-kit/dbx"
@@ -12,8 +15,6 @@ import (
"github.com/txix-open/isp-kit/log"
"github.com/txix-open/isp-kit/validator"
"isp-config-service/service/rqlite/goose_store"
"os"
"time"
"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
+1
View File
@@ -3,6 +3,7 @@ package api
import (
"context"
"github.com/pkg/errors"
"github.com/txix-open/isp-kit/grpc/apierrors"
_ "github.com/txix-open/isp-kit/grpc/apierrors"
+1 -1
View File
@@ -2,9 +2,9 @@ package controller
import (
"context"
"github.com/txix-open/etp/v4"
"github.com/pkg/errors"
"github.com/txix-open/etp/v4"
"github.com/txix-open/etp/v4/msg"
"github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/json"
+2 -1
View File
@@ -1,8 +1,9 @@
package domain
import (
"isp-config-service/entity"
"time"
"isp-config-service/entity"
)
type Variable struct {
+2 -1
View File
@@ -1,12 +1,13 @@
package helpers
import (
"net"
"github.com/pkg/errors"
"github.com/txix-open/etp/v4"
"github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/log"
"isp-config-service/entity"
"net"
)
func ModuleName(conn *etp.Conn) string {
+1
View File
@@ -2,6 +2,7 @@ package middlewares
import (
"context"
"github.com/txix-open/etp/v4"
"github.com/txix-open/etp/v4/msg"
+1
View File
@@ -3,6 +3,7 @@ package repository
import (
"context"
"fmt"
"github.com/Masterminds/squirrel"
"github.com/pkg/errors"
"isp-config-service/entity"
+2 -1
View File
@@ -4,12 +4,13 @@ import (
"context"
"database/sql"
"fmt"
"strings"
"github.com/Masterminds/squirrel"
"github.com/pkg/errors"
"isp-config-service/entity"
"isp-config-service/middlewares/sql_metrics"
"isp-config-service/service/rqlite/db"
"strings"
)
type Variable struct {
+2 -1
View File
@@ -1,9 +1,10 @@
package routes
import (
"net/http"
"github.com/txix-open/etp/v4"
"isp-config-service/conf"
"net/http"
"github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/grpc"
+1
View File
@@ -3,6 +3,7 @@ package backend
import (
"context"
"fmt"
"github.com/pkg/errors"
"github.com/txix-open/etp/v4"
"github.com/txix-open/isp-kit/cluster"
+1
View File
@@ -3,6 +3,7 @@ package backend
import (
"context"
"fmt"
"github.com/pkg/errors"
"github.com/txix-open/isp-kit/log"
)
+2 -1
View File
@@ -2,10 +2,11 @@ package module
import (
"context"
"github.com/txix-open/etp/v4"
"strings"
"time"
"github.com/txix-open/etp/v4"
"github.com/pkg/errors"
"github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/log"
+2 -1
View File
@@ -4,6 +4,8 @@ import (
"context"
"crypto/sha256"
"encoding/hex"
"strings"
"github.com/google/uuid"
"github.com/pkg/errors"
"github.com/txix-open/etp/v4"
@@ -14,7 +16,6 @@ import (
"isp-config-service/entity"
"isp-config-service/entity/xtypes"
"isp-config-service/helpers"
"strings"
)
const (
+1
View File
@@ -2,6 +2,7 @@ package rqlite
import (
"bytes"
"github.com/pkg/errors"
"github.com/rqlite/rqlite/v8/auth"
"github.com/txix-open/isp-kit/json"
+5 -4
View File
@@ -7,10 +7,6 @@ import (
"crypto/tls"
"encoding/json"
"fmt"
"github.com/pkg/errors"
"github.com/rqlite/rqlite-disco-clients/dns"
"github.com/rqlite/rqlite-disco-clients/dnssrv"
"github.com/txix-open/isp-kit/config"
"log"
"net"
"os"
@@ -20,6 +16,11 @@ import (
"strings"
"time"
"github.com/pkg/errors"
"github.com/rqlite/rqlite-disco-clients/dns"
"github.com/rqlite/rqlite-disco-clients/dnssrv"
"github.com/txix-open/isp-kit/config"
"github.com/rqlite/rqlite/v8/auth"
"github.com/rqlite/rqlite/v8/cluster"
"github.com/rqlite/rqlite/v8/cmd"
+2 -1
View File
@@ -4,9 +4,10 @@ import (
"context"
"database/sql"
"fmt"
"time"
"github.com/rqlite/rqlite/v8/auth"
"github.com/txix-open/isp-kit/http/httpcli"
"time"
"github.com/pkg/errors"
_ "github.com/rqlite/gorqlite/stdlib"
+1
View File
@@ -2,6 +2,7 @@ package subscription
import (
"context"
"github.com/txix-open/etp/v4"
"github.com/pkg/errors"
+4 -3
View File
@@ -1,15 +1,16 @@
package tests_test
import (
"strconv"
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/grpc/client"
"github.com/txix-open/isp-kit/json"
"github.com/txix-open/isp-kit/test/fake"
"isp-config-service/domain"
"strconv"
"testing"
"time"
)
const defaultRemoteConfigsWithVariables = `