Skip to content
Snippets Groups Projects
Commit 46afe20f authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 938391f9
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,8 @@ package collections
import (
"time"
// todo fix after pkg and schema will be added
"git.perx.ru/perxis/perxis/pkg/permission"
"git.perx.ru/perxis/perxis/schema"
"git.perx.ru/perxis/perxis-go/pkg/permission"
"git.perx.ru/perxis/perxis-go/pkg/schema"
)
// Config
......
......@@ -5,11 +5,11 @@ package mocks
import (
context "context"
collections "git.perx.ru/perxis/perxis/services/collections"
collections "git.perx.ru/perxis/perxis-go/pkg/collections"
mock "github.com/stretchr/testify/mock"
schema "git.perx.ru/perxis/perxis/schema"
schema "git.perx.ru/perxis/perxis-go/pkg/schema"
)
// Collections is an autogenerated mock type for the Collections type
......
......@@ -3,7 +3,7 @@
package mocks
import (
collections "git.perx.ru/perxis/perxis/services/collections"
collections "git.perx.ru/perxis/perxis-go/pkg/collections"
mock "github.com/stretchr/testify/mock"
)
......
......@@ -5,7 +5,7 @@ package mocks
import (
context "context"
collections "git.perx.ru/perxis/perxis/services/collections"
collections "git.perx.ru/perxis/perxis-go/pkg/collections"
mock "github.com/stretchr/testify/mock"
)
......
package collections
//go:generate gowrap gen -i Collections -t ../../templates/middleware/middleware -o service/middleware.go
//go:generate gowrap gen -i Collections -t ../../templates/middleware/error_log -o service/error_logging_middleware.go
//go:generate gowrap gen -i Collections -t ../../templates/middleware/access_log -o service/logging_middleware.go
//go:generate gowrap gen -i Collections -t ../../templates/middleware/recovery -o service/recovering_middleware.go
//go:generate gowrap gen -i Collections -t ../../templates/middleware/telemetry -o service/telemetry_middleware.go
import (
"context"
"git.perx.ru/perxis/perxis/schema"
"git.perx.ru/perxis/perxis-go/pkg/schema"
)
// @microgen grpc
// @protobuf git.perx.ru/perxis/perxis/proto/collections
// @protobuf git.perx.ru/perxis/perxis-go/proto/collections
// @grpc-addr content.collections.Collections
type Collections interface {
Create(ctx context.Context, collection *Collection) (created *Collection, err error)
......
......@@ -5,8 +5,8 @@ package transport
import (
"context"
"errors"
schema "git.perx.ru/perxis/perxis/schema"
collections "git.perx.ru/perxis/perxis/services/collections"
collections "git.perx.ru/perxis/perxis-go/pkg/collections"
schema "git.perx.ru/perxis/perxis-go/pkg/schema"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
......
......@@ -3,8 +3,8 @@
package transport
import (
schema "git.perx.ru/perxis/perxis/schema"
collections "git.perx.ru/perxis/perxis/services/collections"
collections "git.perx.ru/perxis/perxis-go/pkg/collections"
schema "git.perx.ru/perxis/perxis-go/pkg/schema"
)
type (
......
......@@ -4,7 +4,7 @@ package transport
import (
"context"
collections "git.perx.ru/perxis/perxis/services/collections"
collections "git.perx.ru/perxis/perxis-go/pkg/collections"
endpoint "github.com/go-kit/kit/endpoint"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment