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

pkg options moved from pkg

parent 0dd516f1
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 25 deletions
......@@ -3,8 +3,8 @@ package logs
import (
"context"
"git.perx.ru/perxis/perxis-go/options"
errorsgrpc "git.perx.ru/perxis/perxis-go/pkg/errors/grpc"
"git.perx.ru/perxis/perxis-go/pkg/options"
pb "git.perx.ru/perxis/perxis-go/proto/logs"
"google.golang.org/grpc"
)
......
......@@ -10,7 +10,7 @@ import (
"context"
"git.perx.ru/perxis/perxis-go/logs"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/options"
"go.uber.org/zap"
)
......
......@@ -11,8 +11,8 @@ import (
"time"
"git.perx.ru/perxis/perxis-go/logs"
"git.perx.ru/perxis/perxis-go/options"
"git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/options"
"go.uber.org/zap"
)
......
......@@ -11,7 +11,7 @@ import (
"fmt"
"git.perx.ru/perxis/perxis-go/logs"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/options"
"go.uber.org/zap"
)
......
......@@ -12,8 +12,8 @@ import (
oid "git.perx.ru/perxis/perxis-go/id"
"git.perx.ru/perxis/perxis-go/logs"
"git.perx.ru/perxis/perxis-go/options"
"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"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
......
......@@ -6,9 +6,8 @@ import (
context "context"
logs "git.perx.ru/perxis/perxis-go/logs"
"git.perx.ru/perxis/perxis-go/options"
mock "github.com/stretchr/testify/mock"
options "git.perx.ru/perxis/perxis-go/pkg/options"
)
// Service is an autogenerated mock type for the Service type
......
......@@ -6,9 +6,8 @@ import (
context "context"
logs "git.perx.ru/perxis/perxis-go/logs"
"git.perx.ru/perxis/perxis-go/options"
mock "github.com/stretchr/testify/mock"
options "git.perx.ru/perxis/perxis-go/pkg/options"
)
// Storage is an autogenerated mock type for the Storage type
......
......@@ -3,8 +3,8 @@ package logs
import (
"context"
"git.perx.ru/perxis/perxis-go/options"
itemstransportgrpc "git.perx.ru/perxis/perxis-go/pkg/items/transport/grpc"
"git.perx.ru/perxis/perxis-go/pkg/options"
pb "git.perx.ru/perxis/perxis-go/proto/logs"
)
......
......@@ -3,7 +3,7 @@ package logs
import (
"context"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/options"
)
type Storage interface {
......
File moved
......@@ -5,11 +5,10 @@ package mocks
import (
context "context"
"git.perx.ru/perxis/perxis-go/options"
clients "git.perx.ru/perxis/perxis-go/pkg/clients"
mock "github.com/stretchr/testify/mock"
options "git.perx.ru/perxis/perxis-go/pkg/options"
)
// Storage is an autogenerated mock type for the Storage type
......
......@@ -3,7 +3,7 @@ package clients
import (
"context"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/options"
)
type Storage interface {
......
......@@ -5,11 +5,10 @@ package mocks
import (
context "context"
"git.perx.ru/perxis/perxis-go/options"
collaborators "git.perx.ru/perxis/perxis-go/pkg/collaborators"
mock "github.com/stretchr/testify/mock"
options "git.perx.ru/perxis/perxis-go/pkg/options"
)
// Storage is an autogenerated mock type for the Storage type
......
......@@ -3,7 +3,7 @@ package collaborators
import (
"context"
"git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/options"
)
type Storage interface {
......
......@@ -7,12 +7,12 @@ package transportgrpc
import (
"fmt"
services "git.perx.ru/perxis/perxis-go/options"
collections "git.perx.ru/perxis/perxis-go/pkg/collections"
environments "git.perx.ru/perxis/perxis-go/pkg/environments"
"git.perx.ru/perxis/perxis-go/pkg/filter"
items "git.perx.ru/perxis/perxis-go/pkg/items"
locales "git.perx.ru/perxis/perxis-go/pkg/locales"
services "git.perx.ru/perxis/perxis-go/pkg/options"
"git.perx.ru/perxis/perxis-go/pkg/schema"
collectionspb "git.perx.ru/perxis/perxis-go/proto/collections"
"git.perx.ru/perxis/perxis-go/proto/common"
......@@ -265,7 +265,7 @@ func ProtoToPtrItemsFilter(protoFilter *itemspb.Filter) (*items.Filter, error) {
}
func PtrServicesFindOptionsToProto(options *services.FindOptions) (*common.FindOptions, error) {
return services.FindOptionsToPB(options), nil
return options.FindOptionsToPB(options), nil
}
func ProtoToPtrServicesFindOptions(protoOptions *common.FindOptions) (*services.FindOptions, error) {
......
......@@ -10,9 +10,9 @@ import (
"context"
"time"
"git.perx.ru/perxis/perxis-go/options"
"git.perx.ru/perxis/perxis-go/pkg/auth"
"git.perx.ru/perxis/perxis-go/pkg/invitations"
"git.perx.ru/perxis/perxis-go/pkg/options"
"go.uber.org/zap"
)
......
......@@ -3,9 +3,9 @@ package middleware
import (
"context"
services "git.perx.ru/perxis/perxis-go/options"
"git.perx.ru/perxis/perxis-go/pkg/cache"
service "git.perx.ru/perxis/perxis-go/pkg/invitations"
services "git.perx.ru/perxis/perxis-go/pkg/options"
)
func CachingMiddleware(cache cache.Cache) Middleware {
......
......@@ -9,8 +9,8 @@ package middleware
import (
"context"
"git.perx.ru/perxis/perxis-go/options"
"git.perx.ru/perxis/perxis-go/pkg/invitations"
"git.perx.ru/perxis/perxis-go/pkg/options"
"go.uber.org/zap"
)
......
......@@ -5,9 +5,9 @@ import (
"fmt"
"git.perx.ru/perxis/perxis-go/id"
"git.perx.ru/perxis/perxis-go/options"
"git.perx.ru/perxis/perxis-go/pkg/errors"
"git.perx.ru/perxis/perxis-go/pkg/invitations"
"git.perx.ru/perxis/perxis-go/pkg/options"
logzap "git.perx.ru/perxis/perxis-go/zap"
"go.uber.org/zap"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment