Rename go-micro services
This commit is contained in:
@@ -29,12 +29,12 @@ func DefaultConfig() *config.Config {
|
||||
},
|
||||
GRPC: config.GRPCConfig{
|
||||
Addr: "127.0.0.1:9157",
|
||||
Namespace: "com.owncloud.api",
|
||||
Namespace: "eu.opencloud.api",
|
||||
Protocol: "tcp",
|
||||
},
|
||||
HTTP: config.HTTPConfig{
|
||||
Addr: "127.0.0.1:9158",
|
||||
Namespace: "com.owncloud.web",
|
||||
Namespace: "eu.opencloud.web",
|
||||
Protocol: "tcp",
|
||||
Prefix: "data",
|
||||
CORS: config.CORS{
|
||||
@@ -103,7 +103,7 @@ func DefaultConfig() *config.Config {
|
||||
DBHost: "",
|
||||
DBPort: 3306,
|
||||
DBName: "owncloud",
|
||||
UsersProviderEndpoint: "com.owncloud.api.users",
|
||||
UsersProviderEndpoint: "eu.opencloud.api.users",
|
||||
},
|
||||
S3NG: config.S3NGDriver{
|
||||
Propagator: "sync",
|
||||
@@ -118,7 +118,7 @@ func DefaultConfig() *config.Config {
|
||||
PersonalSpacePathTemplate: "",
|
||||
GeneralSpaceAliasTemplate: "{{.SpaceType}}/{{.SpaceName | replace \" \" \"-\" | lower}}",
|
||||
GeneralSpacePathTemplate: "",
|
||||
PermissionsEndpoint: "com.owncloud.api.settings",
|
||||
PermissionsEndpoint: "eu.opencloud.api.settings",
|
||||
MaxAcquireLockCycles: 20,
|
||||
MaxConcurrency: 5,
|
||||
LockCycleDurationFactor: 30,
|
||||
@@ -133,7 +133,7 @@ func DefaultConfig() *config.Config {
|
||||
PersonalSpacePathTemplate: "",
|
||||
GeneralSpaceAliasTemplate: "{{.SpaceType}}/{{.SpaceName | replace \" \" \"-\" | lower}}",
|
||||
GeneralSpacePathTemplate: "",
|
||||
PermissionsEndpoint: "com.owncloud.api.settings",
|
||||
PermissionsEndpoint: "eu.opencloud.api.settings",
|
||||
MaxAcquireLockCycles: 20,
|
||||
MaxConcurrency: 5,
|
||||
LockCycleDurationFactor: 30,
|
||||
@@ -144,7 +144,7 @@ func DefaultConfig() *config.Config {
|
||||
Root: filepath.Join(defaults.BaseDataPath(), "storage", "users"),
|
||||
PersonalSpacePathTemplate: "users/{{.User.Username}}",
|
||||
GeneralSpacePathTemplate: "projects/{{.SpaceId}}",
|
||||
PermissionsEndpoint: "com.owncloud.api.settings",
|
||||
PermissionsEndpoint: "eu.opencloud.api.settings",
|
||||
AsyncUploads: true,
|
||||
ScanDebounceDelay: 1 * time.Second,
|
||||
},
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
func init() {
|
||||
r := registry.GetRegistry(registry.Inmemory())
|
||||
service := registry.BuildGRPCService("com.owncloud.api.gateway", "", "", "")
|
||||
service := registry.BuildGRPCService("eu.opencloud.api.gateway", "", "", "")
|
||||
service.Nodes = []*mRegistry.Node{{
|
||||
Address: "any",
|
||||
}}
|
||||
|
||||
@@ -48,11 +48,11 @@ var _ = Describe("trash", func() {
|
||||
)
|
||||
|
||||
BeforeEach(func() {
|
||||
pool.RemoveSelector("GatewaySelector" + "com.owncloud.api.gateway")
|
||||
pool.RemoveSelector("GatewaySelector" + "eu.opencloud.api.gateway")
|
||||
gatewayClient = &cs3mocks.GatewayAPIClient{}
|
||||
gatewaySelector = pool.GetSelector[gateway.GatewayAPIClient](
|
||||
"GatewaySelector",
|
||||
"com.owncloud.api.gateway",
|
||||
"eu.opencloud.api.gateway",
|
||||
func(cc grpc.ClientConnInterface) gateway.GatewayAPIClient {
|
||||
return gatewayClient
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user