MSP-5223 sort imports
This commit is contained in:
1 parent
9d299beaf6
commit
7a426b647b
18 files changed
+34
-17
No files matched your search
+3
-2
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
@@ -1,8 +1,9 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"isp-config-service/entity"
|
||||
"time"
|
||||
|
||||
"isp-config-service/entity"
|
||||
)
|
||||
|
||||
type Variable struct {
|
||||
|
||||
+2
-1
@@ -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 {
|
||||
|
||||
@@ -2,6 +2,7 @@ package middlewares
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/txix-open/etp/v4"
|
||||
|
||||
"github.com/txix-open/etp/v4/msg"
|
||||
|
||||
@@ -3,6 +3,7 @@ package repository
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/Masterminds/squirrel"
|
||||
"github.com/pkg/errors"
|
||||
"isp-config-service/entity"
|
||||
|
||||
@@ -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
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -3,6 +3,7 @@ package backend
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/txix-open/isp-kit/log"
|
||||
)
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -2,6 +2,7 @@ package subscription
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/txix-open/etp/v4"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
@@ -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 = `
|
||||
|
||||
Reference in new issue
Block a user