MSP-8438 Use isp-kit/errors

This commit is contained in:
Синельник Тимур Романович committed 2026-08-28 13:27:24 +03:00
1 parent 1a1f764f75
commit 72f2d37920
34 files changed
+33 -34

No files matched your search

+1 -1
View File
@@ -8,10 +8,10 @@ import (
"isp-gate-service/conf" "isp-gate-service/conf"
"isp-gate-service/routes" "isp-gate-service/routes"
"github.com/pkg/errors"
"github.com/txix-open/isp-kit/app" "github.com/txix-open/isp-kit/app"
"github.com/txix-open/isp-kit/bootstrap" "github.com/txix-open/isp-kit/bootstrap"
"github.com/txix-open/isp-kit/cluster" "github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/grpc/client" "github.com/txix-open/isp-kit/grpc/client"
"github.com/txix-open/isp-kit/http" "github.com/txix-open/isp-kit/http"
"github.com/txix-open/isp-kit/lb" "github.com/txix-open/isp-kit/lb"
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"isp-gate-service/service" "isp-gate-service/service"
mux2 "github.com/gorilla/mux" mux2 "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/grpc/client" "github.com/txix-open/isp-kit/grpc/client"
"github.com/txix-open/isp-kit/lb" "github.com/txix-open/isp-kit/lb"
"github.com/txix-open/isp-kit/log" "github.com/txix-open/isp-kit/log"
+1 -1
View File
@@ -1,7 +1,7 @@
package domain package domain
import ( import (
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
var ( var (
+1 -1
View File
@@ -1,6 +1,6 @@
package domain package domain
import "github.com/pkg/errors" import "github.com/txix-open/isp-kit/errors"
var ( var (
ErrUserAuthSettingNotFound = errors.New("user auth setting not found") ErrUserAuthSettingNotFound = errors.New("user auth setting not found")
-1
View File
@@ -6,7 +6,6 @@ require (
github.com/google/uuid v1.6.0 github.com/google/uuid v1.6.0
github.com/gorilla/mux v1.8.1 github.com/gorilla/mux v1.8.1
github.com/gorilla/websocket v1.5.3 github.com/gorilla/websocket v1.5.3
github.com/pkg/errors v0.9.1
github.com/redis/go-redis/v9 v9.18.0 github.com/redis/go-redis/v9 v9.18.0
github.com/stretchr/testify v1.11.1 github.com/stretchr/testify v1.11.1
github.com/tomakado/websocketproxy v0.1.0 github.com/tomakado/websocketproxy v0.1.0
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
const ( const (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context" "context"
"net/http" "net/http"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
) )
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
const ( const (
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/log" "github.com/txix-open/isp-kit/log"
) )
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context" "context"
"net/http" "net/http"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
) )
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"isp-gate-service/request" "isp-gate-service/request"
"net/http" "net/http"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/log" "github.com/txix-open/isp-kit/log"
) )
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"isp-gate-service/helpers" "isp-gate-service/helpers"
"isp-gate-service/request" "isp-gate-service/request"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/http/endpoint/buffer" "github.com/txix-open/isp-kit/http/endpoint/buffer"
"github.com/txix-open/isp-kit/log" "github.com/txix-open/isp-kit/log"
) )
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"isp-gate-service/domain" "isp-gate-service/domain"
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/log" "github.com/txix-open/isp-kit/log"
) )
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/grpc" "github.com/txix-open/isp-kit/grpc"
"github.com/txix-open/isp-kit/grpc/client" "github.com/txix-open/isp-kit/grpc/client"
"github.com/txix-open/isp-kit/grpc/isp" "github.com/txix-open/isp-kit/grpc/isp"
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/grpc" "github.com/txix-open/isp-kit/grpc"
"github.com/txix-open/isp-kit/requestid" "github.com/txix-open/isp-kit/requestid"
) )
+1 -1
View File
@@ -7,8 +7,8 @@ import (
"time" "time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/pkg/errors"
"github.com/tomakado/websocketproxy" "github.com/tomakado/websocketproxy"
"github.com/txix-open/isp-kit/errors"
"isp-gate-service/httperrors" "isp-gate-service/httperrors"
"isp-gate-service/request" "isp-gate-service/request"
) )
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/grpc/client" "github.com/txix-open/isp-kit/grpc/client"
) )
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"isp-gate-service/domain" "isp-gate-service/domain"
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/json" "github.com/txix-open/isp-kit/json"
) )
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context" "context"
"time" "time"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/grpc/client" "github.com/txix-open/isp-kit/grpc/client"
"isp-gate-service/entity" "isp-gate-service/entity"
) )
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/grpc/client" "github.com/txix-open/isp-kit/grpc/client"
) )
+1 -1
View File
@@ -7,8 +7,8 @@ import (
"isp-gate-service/domain" "isp-gate-service/domain"
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors"
"github.com/redis/go-redis/v9" "github.com/redis/go-redis/v9"
"github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/json" "github.com/txix-open/isp-kit/json"
) )
+1 -1
View File
@@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/pkg/errors"
"github.com/redis/go-redis/v9" "github.com/redis/go-redis/v9"
"github.com/txix-open/isp-kit/errors"
) )
type RedisAuthzCache struct { type RedisAuthzCache struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/http/httpcli" "github.com/txix-open/isp-kit/http/httpcli"
"github.com/txix-open/isp-kit/http/httpclix" "github.com/txix-open/isp-kit/http/httpclix"
"github.com/txix-open/isp-kit/lb" "github.com/txix-open/isp-kit/lb"
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"isp-gate-service/domain" "isp-gate-service/domain"
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/json" "github.com/txix-open/isp-kit/json"
) )
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
var ( var (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/julienschmidt/httprouter" "github.com/julienschmidt/httprouter"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"github.com/txix-open/isp-kit/cluster" "github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/log" "github.com/txix-open/isp-kit/log"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"isp-gate-service/domain" "isp-gate-service/domain"
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
type AdminAuth interface { type AdminAuth interface {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"isp-gate-service/domain" "isp-gate-service/domain"
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
type AuthenticationCache interface { type AuthenticationCache interface {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"isp-gate-service/entity" "isp-gate-service/entity"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
type AuthorizationCache interface { type AuthorizationCache interface {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"isp-gate-service/conf" "isp-gate-service/conf"
) )
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
"isp-gate-service/conf" "isp-gate-service/conf"
"isp-gate-service/domain" "isp-gate-service/domain"
"isp-gate-service/entity" "isp-gate-service/entity"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
type CookieProvider struct { type CookieProvider struct {
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/pkg/errors" "github.com/txix-open/isp-kit/errors"
) )
type UserAuthenticationCache interface { type UserAuthenticationCache interface {