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

pkg environments moved from pkg

parent 0dd516f1
No related branches found
No related tags found
No related merge requests found
Showing
with 22 additions and 22 deletions
File moved
File moved
File moved
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
package middleware package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/environments -i Environments -t ../../../assets/templates/middleware/access_log.tmpl -o access_logging_middleware.go -l "" //go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/environments -i Environments -t ../../../assets/templates/middleware/access_log.tmpl -o access_logging_middleware.go -l ""
import ( import (
"context" "context"
"time" "time"
"git.perx.ru/perxis/perxis-go/environments"
"git.perx.ru/perxis/perxis-go/pkg/auth" "git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/environments"
"go.uber.org/zap" "go.uber.org/zap"
) )
......
...@@ -4,9 +4,9 @@ import ( ...@@ -4,9 +4,9 @@ import (
"context" "context"
"strings" "strings"
service "git.perx.ru/perxis/perxis-go/environments"
"git.perx.ru/perxis/perxis-go/pkg/cache" "git.perx.ru/perxis/perxis-go/pkg/cache"
"git.perx.ru/perxis/perxis-go/pkg/data" "git.perx.ru/perxis/perxis-go/pkg/data"
service "git.perx.ru/perxis/perxis-go/pkg/environments"
) )
func makeKey(ss ...string) string { func makeKey(ss ...string) string {
......
...@@ -5,9 +5,9 @@ import ( ...@@ -5,9 +5,9 @@ import (
"testing" "testing"
"time" "time"
"git.perx.ru/perxis/perxis-go/environments"
mocksenvironments "git.perx.ru/perxis/perxis-go/environments/mocks"
"git.perx.ru/perxis/perxis-go/pkg/cache" "git.perx.ru/perxis/perxis-go/pkg/cache"
"git.perx.ru/perxis/perxis-go/pkg/environments"
mocksenvironments "git.perx.ru/perxis/perxis-go/pkg/environments/mocks"
"git.perx.ru/perxis/perxis-go/pkg/errors" "git.perx.ru/perxis/perxis-go/pkg/errors"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
package middleware package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/environments -i Environments -t ../../../assets/templates/middleware/error_log -o error_logging_middleware.go -l "" //go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/environments -i Environments -t ../../../assets/templates/middleware/error_log -o error_logging_middleware.go -l ""
import ( import (
"context" "context"
"git.perx.ru/perxis/perxis-go/pkg/environments" "git.perx.ru/perxis/perxis-go/environments"
"go.uber.org/zap" "go.uber.org/zap"
) )
......
...@@ -4,8 +4,8 @@ import ( ...@@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"git.perx.ru/perxis/perxis-go/environments"
"git.perx.ru/perxis/perxis-go/id" "git.perx.ru/perxis/perxis-go/id"
"git.perx.ru/perxis/perxis-go/pkg/environments"
logzap "git.perx.ru/perxis/perxis-go/zap" logzap "git.perx.ru/perxis/perxis-go/zap"
"go.uber.org/zap" "go.uber.org/zap"
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
package middleware package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/environments -i Environments -t ../../../assets/templates/middleware/middleware.tmpl -o middleware.go -l "" //go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/environments -i Environments -t ../../../assets/templates/middleware/middleware.tmpl -o middleware.go -l ""
import ( import (
"git.perx.ru/perxis/perxis-go/pkg/environments" "git.perx.ru/perxis/perxis-go/environments"
"go.uber.org/zap" "go.uber.org/zap"
) )
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
package middleware package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/environments -i Environments -t ../../../assets/templates/middleware/recovery -o recovering_middleware.go -l "" //go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/environments -i Environments -t ../../../assets/templates/middleware/recovery -o recovering_middleware.go -l ""
import ( import (
"context" "context"
"fmt" "fmt"
"git.perx.ru/perxis/perxis-go/pkg/environments" "git.perx.ru/perxis/perxis-go/environments"
"go.uber.org/zap" "go.uber.org/zap"
) )
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
package middleware package middleware
//go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/pkg/environments -i Environments -t ../../../assets/templates/middleware/telemetry_content -o telemetry_middleware.go -l "" //go:generate gowrap gen -p git.perx.ru/perxis/perxis-go/environments -i Environments -t ../../../assets/templates/middleware/telemetry_content -o telemetry_middleware.go -l ""
import ( import (
"context" "context"
"time" "time"
"git.perx.ru/perxis/perxis-go/environments"
oid "git.perx.ru/perxis/perxis-go/id" oid "git.perx.ru/perxis/perxis-go/id"
"git.perx.ru/perxis/perxis-go/pkg/auth" "git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/environments"
"git.perx.ru/perxis/perxis-go/pkg/telemetry/metrics" "git.perx.ru/perxis/perxis-go/pkg/telemetry/metrics"
"go.opentelemetry.io/otel" "go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/attribute"
......
...@@ -5,7 +5,7 @@ package mocks ...@@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
...@@ -5,7 +5,7 @@ package mocks ...@@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
...@@ -5,7 +5,7 @@ package mocks ...@@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
...@@ -5,7 +5,7 @@ package mocks ...@@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
...@@ -5,7 +5,7 @@ package mocks ...@@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
...@@ -5,7 +5,7 @@ package mocks ...@@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
package mocks package mocks
import ( import (
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
...@@ -5,7 +5,7 @@ package mocks ...@@ -5,7 +5,7 @@ package mocks
import ( import (
context "context" context "context"
environments "git.perx.ru/perxis/perxis-go/pkg/environments" environments "git.perx.ru/perxis/perxis-go/environments"
mock "github.com/stretchr/testify/mock" mock "github.com/stretchr/testify/mock"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment