Skip to content
Snippets Groups Projects
Commit 10aa1040 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Merge branch 'feature/PRXS-1005-RenameSpace' into 'feature/1004-AddPublicEntities'

Переименован пакет space в spaces

See merge request perxis/perxis-go!15
parents 1f57fd0f bced2272
No related branches found
No related tags found
No related merge requests found
Showing with 34 additions and 34 deletions
......@@ -5,7 +5,7 @@ package mocks
import (
context "context"
space "git.perx.ru/perxis/perxis-go/pkg/space"
spaces "git.perx.ru/perxis/perxis-go/pkg/spaces"
mock "github.com/stretchr/testify/mock"
)
......@@ -15,23 +15,23 @@ type Spaces struct {
}
// Create provides a mock function with given fields: ctx, _a1
func (_m *Spaces) Create(ctx context.Context, _a1 *space.Space) (*space.Space, error) {
func (_m *Spaces) Create(ctx context.Context, _a1 *spaces.Space) (*spaces.Space, error) {
ret := _m.Called(ctx, _a1)
var r0 *space.Space
var r0 *spaces.Space
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *space.Space) (*space.Space, error)); ok {
if rf, ok := ret.Get(0).(func(context.Context, *spaces.Space) (*spaces.Space, error)); ok {
return rf(ctx, _a1)
}
if rf, ok := ret.Get(0).(func(context.Context, *space.Space) *space.Space); ok {
if rf, ok := ret.Get(0).(func(context.Context, *spaces.Space) *spaces.Space); ok {
r0 = rf(ctx, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*space.Space)
r0 = ret.Get(0).(*spaces.Space)
}
}
if rf, ok := ret.Get(1).(func(context.Context, *space.Space) error); ok {
if rf, ok := ret.Get(1).(func(context.Context, *spaces.Space) error); ok {
r1 = rf(ctx, _a1)
} else {
r1 = ret.Error(1)
......@@ -55,19 +55,19 @@ func (_m *Spaces) Delete(ctx context.Context, spaceId string) error {
}
// Get provides a mock function with given fields: ctx, spaceId
func (_m *Spaces) Get(ctx context.Context, spaceId string) (*space.Space, error) {
func (_m *Spaces) Get(ctx context.Context, spaceId string) (*spaces.Space, error) {
ret := _m.Called(ctx, spaceId)
var r0 *space.Space
var r0 *spaces.Space
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, string) (*space.Space, error)); ok {
if rf, ok := ret.Get(0).(func(context.Context, string) (*spaces.Space, error)); ok {
return rf(ctx, spaceId)
}
if rf, ok := ret.Get(0).(func(context.Context, string) *space.Space); ok {
if rf, ok := ret.Get(0).(func(context.Context, string) *spaces.Space); ok {
r0 = rf(ctx, spaceId)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*space.Space)
r0 = ret.Get(0).(*spaces.Space)
}
}
......@@ -81,19 +81,19 @@ func (_m *Spaces) Get(ctx context.Context, spaceId string) (*space.Space, error)
}
// List provides a mock function with given fields: ctx, orgId
func (_m *Spaces) List(ctx context.Context, orgId string) ([]*space.Space, error) {
func (_m *Spaces) List(ctx context.Context, orgId string) ([]*spaces.Space, error) {
ret := _m.Called(ctx, orgId)
var r0 []*space.Space
var r0 []*spaces.Space
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, string) ([]*space.Space, error)); ok {
if rf, ok := ret.Get(0).(func(context.Context, string) ([]*spaces.Space, error)); ok {
return rf(ctx, orgId)
}
if rf, ok := ret.Get(0).(func(context.Context, string) []*space.Space); ok {
if rf, ok := ret.Get(0).(func(context.Context, string) []*spaces.Space); ok {
r0 = rf(ctx, orgId)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]*space.Space)
r0 = ret.Get(0).([]*spaces.Space)
}
}
......@@ -107,11 +107,11 @@ func (_m *Spaces) List(ctx context.Context, orgId string) ([]*space.Space, error
}
// Update provides a mock function with given fields: ctx, _a1
func (_m *Spaces) Update(ctx context.Context, _a1 *space.Space) error {
func (_m *Spaces) Update(ctx context.Context, _a1 *spaces.Space) error {
ret := _m.Called(ctx, _a1)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *space.Space) error); ok {
if rf, ok := ret.Get(0).(func(context.Context, *spaces.Space) error); ok {
r0 = rf(ctx, _a1)
} else {
r0 = ret.Error(0)
......@@ -121,11 +121,11 @@ func (_m *Spaces) Update(ctx context.Context, _a1 *space.Space) error {
}
// UpdateConfig provides a mock function with given fields: ctx, spaceId, config
func (_m *Spaces) UpdateConfig(ctx context.Context, spaceId string, config *space.Config) error {
func (_m *Spaces) UpdateConfig(ctx context.Context, spaceId string, config *spaces.Config) error {
ret := _m.Called(ctx, spaceId, config)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, string, *space.Config) error); ok {
if rf, ok := ret.Get(0).(func(context.Context, string, *spaces.Config) error); ok {
r0 = rf(ctx, spaceId, config)
} else {
r0 = ret.Error(0)
......
package space
package spaces
import (
"context"
......
package space
package spaces
type State int
......
......@@ -5,7 +5,7 @@ package transport
import (
"context"
spaces "git.perx.ru/perxis/perxis-go/pkg/space"
spaces "git.perx.ru/perxis/perxis-go/pkg/spaces"
)
func (set EndpointsSet) Create(arg0 context.Context, arg1 *spaces.Space) (res0 *spaces.Space, res1 error) {
......
......@@ -2,7 +2,7 @@
package transport
import spaces "git.perx.ru/perxis/perxis-go/pkg/space"
import spaces "git.perx.ru/perxis/perxis-go/pkg/spaces"
type (
CreateRequest struct {
......
......@@ -4,7 +4,7 @@ package transportgrpc
import (
grpcerr "git.perx.ru/perxis/perxis-go/pkg/errors/grpc"
transport "git.perx.ru/perxis/perxis-go/pkg/space/transport"
transport "git.perx.ru/perxis/perxis-go/pkg/spaces/transport"
grpckit "github.com/go-kit/kit/transport/grpc"
grpc "google.golang.org/grpc"
)
......
......@@ -3,7 +3,7 @@
package transportgrpc
import (
transport "git.perx.ru/perxis/perxis-go/pkg/space/transport"
transport "git.perx.ru/perxis/perxis-go/pkg/spaces/transport"
pb "git.perx.ru/perxis/perxis-go/proto/spaces"
grpckit "github.com/go-kit/kit/transport/grpc"
empty "github.com/golang/protobuf/ptypes/empty"
......
......@@ -7,7 +7,7 @@ import (
"context"
"errors"
transport "git.perx.ru/perxis/perxis-go/pkg/space/transport"
transport "git.perx.ru/perxis/perxis-go/pkg/spaces/transport"
pb "git.perx.ru/perxis/perxis-go/proto/spaces"
empty "github.com/golang/protobuf/ptypes/empty"
)
......
......@@ -5,7 +5,7 @@
package transportgrpc
import (
service "git.perx.ru/perxis/perxis-go/pkg/space"
service "git.perx.ru/perxis/perxis-go/pkg/spaces"
pb "git.perx.ru/perxis/perxis-go/proto/spaces"
)
......
......@@ -2,13 +2,13 @@ package transportgrpc
import (
grpcerr "git.perx.ru/perxis/perxis-go/pkg/errors/grpc"
"git.perx.ru/perxis/perxis-go/pkg/space"
"git.perx.ru/perxis/perxis-go/pkg/space/transport"
"git.perx.ru/perxis/perxis-go/pkg/spaces"
"git.perx.ru/perxis/perxis-go/pkg/spaces/transport"
pb "git.perx.ru/perxis/perxis-go/proto/spaces"
grpckit "github.com/go-kit/kit/transport/grpc"
)
func NewServer(svc space.Spaces, opts ...grpckit.ServerOption) pb.SpacesServer {
func NewServer(svc spaces.Spaces, opts ...grpckit.ServerOption) pb.SpacesServer {
eps := transport.Endpoints(svc)
eps = transport.EndpointsSet{
CreateEndpoint: grpcerr.ServerMiddleware(eps.CreateEndpoint),
......
......@@ -4,7 +4,7 @@
package transportgrpc
import (
transport "git.perx.ru/perxis/perxis-go/pkg/space/transport"
transport "git.perx.ru/perxis/perxis-go/pkg/spaces/transport"
pb "git.perx.ru/perxis/perxis-go/proto/spaces"
grpc "github.com/go-kit/kit/transport/grpc"
empty "github.com/golang/protobuf/ptypes/empty"
......
......@@ -5,7 +5,7 @@ package transport
import (
"context"
spaces "git.perx.ru/perxis/perxis-go/pkg/space"
spaces "git.perx.ru/perxis/perxis-go/pkg/spaces"
endpoint "github.com/go-kit/kit/endpoint"
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment