Skip to content
Snippets Groups Projects
Commit 3d4bb0b5 authored by Semyon Krestyaninov's avatar Semyon Krestyaninov :dog2:
Browse files

pkg users moved from pkg

parent 0dd516f1
No related branches found
No related tags found
No related merge requests found
Showing
with 26 additions and 26 deletions
......@@ -14,7 +14,7 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/organizations"
"git.perx.ru/perxis/perxis-go/pkg/roles"
"git.perx.ru/perxis/perxis-go/pkg/spaces"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
)
func Handler(obj any) *id.ObjectId {
......
......@@ -13,7 +13,7 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/organizations"
"git.perx.ru/perxis/perxis-go/pkg/roles"
"git.perx.ru/perxis/perxis-go/pkg/spaces"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
......
......@@ -11,8 +11,8 @@ import (
logmocks "git.perx.ru/perxis/perxis-go/logs/mocks"
"git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/items"
"git.perx.ru/perxis/perxis-go/pkg/users"
usersmocks "git.perx.ru/perxis/perxis-go/pkg/users/mocks"
"git.perx.ru/perxis/perxis-go/users"
usersmocks "git.perx.ru/perxis/perxis-go/users/mocks"
logzap "git.perx.ru/perxis/perxis-go/zap"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
......
......@@ -5,8 +5,8 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/members"
msobserver "git.perx.ru/perxis/perxis-go/pkg/members/observer"
"git.perx.ru/perxis/perxis-go/pkg/organizations"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/pkg/version"
"git.perx.ru/perxis/perxis-go/users"
"google.golang.org/grpc"
)
......
......@@ -9,8 +9,8 @@ import (
membersTransport "git.perx.ru/perxis/perxis-go/pkg/members/transport/grpc"
serviceOrganizations "git.perx.ru/perxis/perxis-go/pkg/organizations/middleware"
organizationsTransport "git.perx.ru/perxis/perxis-go/pkg/organizations/transport/grpc"
serviceUsers "git.perx.ru/perxis/perxis-go/pkg/users/middleware"
usersTransport "git.perx.ru/perxis/perxis-go/pkg/users/transport/grpc"
serviceUsers "git.perx.ru/perxis/perxis-go/users/middleware"
usersTransport "git.perx.ru/perxis/perxis-go/users/transport/grpc"
"go.uber.org/zap"
"google.golang.org/grpc"
)
......
......@@ -9,7 +9,7 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/members"
"git.perx.ru/perxis/perxis-go/pkg/roles"
"git.perx.ru/perxis/perxis-go/pkg/spaces"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
)
type PrincipalFactory struct {
......
......@@ -12,7 +12,7 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/roles"
"git.perx.ru/perxis/perxis-go/pkg/service"
"git.perx.ru/perxis/perxis-go/pkg/spaces"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
)
type UserPrincipal struct {
......
File moved
File moved
......@@ -4,7 +4,7 @@
package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/users -i Users -t ../../../assets/templates/middleware/access_log.tmpl -o access_logging_middleware.go -l ""
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/users -i Users -t ../../../assets/templates/middleware/access_log.tmpl -o access_logging_middleware.go -l ""
import (
"context"
......@@ -12,7 +12,7 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
"go.uber.org/zap"
)
......
......@@ -5,7 +5,7 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/cache"
services "git.perx.ru/perxis/perxis-go/pkg/options"
service "git.perx.ru/perxis/perxis-go/pkg/users"
service "git.perx.ru/perxis/perxis-go/users"
)
func CachingMiddleware(cache cache.Cache) Middleware {
......
......@@ -7,8 +7,8 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/cache"
"git.perx.ru/perxis/perxis-go/pkg/errors"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/pkg/users/mocks"
"git.perx.ru/perxis/perxis-go/users"
"git.perx.ru/perxis/perxis-go/users/mocks"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
......
......@@ -4,13 +4,13 @@
package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/users -i Users -t ../../../assets/templates/middleware/error_log -o error_logging_middleware.go -l ""
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/users -i Users -t ../../../assets/templates/middleware/error_log -o error_logging_middleware.go -l ""
import (
"context"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
"go.uber.org/zap"
)
......
......@@ -5,7 +5,7 @@ import (
"git.perx.ru/perxis/perxis-go/id"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
logzap "git.perx.ru/perxis/perxis-go/zap"
"go.uber.org/zap"
)
......
......@@ -4,10 +4,10 @@
package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/users -i Users -t ../../../assets/templates/middleware/middleware.tmpl -o middleware.go -l ""
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/users -i Users -t ../../../assets/templates/middleware/middleware.tmpl -o middleware.go -l ""
import (
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
"go.uber.org/zap"
)
......
......@@ -4,14 +4,14 @@
package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/users -i Users -t ../../../assets/templates/middleware/recovery -o recovering_middleware.go -l ""
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/users -i Users -t ../../../assets/templates/middleware/recovery -o recovering_middleware.go -l ""
import (
"context"
"fmt"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
"go.uber.org/zap"
)
......
......@@ -4,7 +4,7 @@
package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/users -i Users -t ../../../assets/templates/middleware/telemetry_default -o telemetry_middleware.go -l ""
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/users -i Users -t ../../../assets/templates/middleware/telemetry_default -o telemetry_middleware.go -l ""
import (
"context"
......@@ -14,7 +14,7 @@ import (
"git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/pkg/telemetry/metrics"
"git.perx.ru/perxis/perxis-go/pkg/users"
"git.perx.ru/perxis/perxis-go/users"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
otelmetric "go.opentelemetry.io/otel/metric"
......
......@@ -3,7 +3,7 @@
package mocks
import (
users "git.perx.ru/perxis/perxis-go/pkg/users"
users "git.perx.ru/perxis/perxis-go/users"
mock "github.com/stretchr/testify/mock"
)
......
......@@ -8,7 +8,7 @@ import (
options "git.perx.ru/perxis/perxis-go/pkg/options"
mock "github.com/stretchr/testify/mock"
users "git.perx.ru/perxis/perxis-go/pkg/users"
users "git.perx.ru/perxis/perxis-go/users"
)
// Storage is an autogenerated mock type for the Storage type
......
......@@ -8,7 +8,7 @@ import (
options "git.perx.ru/perxis/perxis-go/pkg/options"
mock "github.com/stretchr/testify/mock"
users "git.perx.ru/perxis/perxis-go/pkg/users"
users "git.perx.ru/perxis/perxis-go/users"
)
// Users is an autogenerated mock type for the Users type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment