From e63a48252958ee63c590c35a871b3ee0df2f951a Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Fri, 14 Aug 2020 21:27:31 +0300 Subject: [PATCH] [#48] Add grpc suffix to go_package option To simplify adding more transport level protocols to neofs-api-go in future, we need to separate currently default gRPC. Signed-off-by: Stanislav Bogatyrev --- accounting/service.proto | 2 +- acl/types.proto | 2 +- container/service.proto | 2 +- container/types.proto | 2 +- netmap/types.proto | 2 +- object/service.proto | 2 +- object/types.proto | 2 +- refs/types.proto | 2 +- service/meta.proto | 2 +- service/verify.proto | 2 +- session/service.proto | 2 +- storagegroup/types.proto | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/accounting/service.proto b/accounting/service.proto index 4afbcee..f328831 100644 --- a/accounting/service.proto +++ b/accounting/service.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.accounting; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/accounting;accounting"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/accounting/grpc;accounting"; option csharp_namespace = "NeoFS.API.v2.Accounting"; import "refs/types.proto"; diff --git a/acl/types.proto b/acl/types.proto index ad7d778..edb3649 100644 --- a/acl/types.proto +++ b/acl/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.acl; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/acl;acl"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/acl/grpc;acl"; option csharp_namespace = "NeoFS.API.v2.Acl"; import "refs/types.proto"; diff --git a/container/service.proto b/container/service.proto index c0712ea..b0b7165 100644 --- a/container/service.proto +++ b/container/service.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.container; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/container;container"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/container/grpc;container"; option csharp_namespace = "NeoFS.API.v2.Container"; import "acl/types.proto"; diff --git a/container/types.proto b/container/types.proto index 10e374a..0761bf0 100644 --- a/container/types.proto +++ b/container/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.container; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/container;container"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/container/grpc;container"; option csharp_namespace = "NeoFS.API.v2.Container"; import "netmap/types.proto"; diff --git a/netmap/types.proto b/netmap/types.proto index 1b9c69a..7e1dd42 100644 --- a/netmap/types.proto +++ b/netmap/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.netmap; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/netmap;netmap"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc;netmap"; option csharp_namespace = "NeoFS.API.v2.Netmap"; // Set of rules to select a subset of nodes able to store container's objects diff --git a/object/service.proto b/object/service.proto index 04ecb1f..7bb3248 100644 --- a/object/service.proto +++ b/object/service.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.object; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/object;object"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/object/grpc;object"; option csharp_namespace = "NeoFS.API.v2.Object"; import "object/types.proto"; diff --git a/object/types.proto b/object/types.proto index 05f4571..35a2a07 100644 --- a/object/types.proto +++ b/object/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.object; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/object;object"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/object/grpc;object"; option csharp_namespace = "NeoFS.API.v2.Object"; import "refs/types.proto"; diff --git a/refs/types.proto b/refs/types.proto index 1ffb033..f181a78 100644 --- a/refs/types.proto +++ b/refs/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.refs; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/refs;refs"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc;refs"; option csharp_namespace = "NeoFS.API.v2.Refs"; // Address of object (container id + object id) diff --git a/service/meta.proto b/service/meta.proto index 5cfe6d1..ddf8d64 100644 --- a/service/meta.proto +++ b/service/meta.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.service; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/service;service"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/service/grpc;service"; option csharp_namespace = "NeoFS.API.v2.Service"; import "acl/types.proto"; diff --git a/service/verify.proto b/service/verify.proto index ecfab78..af4c526 100644 --- a/service/verify.proto +++ b/service/verify.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.service; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/service;service"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/service/grpc;service"; option csharp_namespace = "NeoFS.API.v2.Service"; // Signature of something in NeoFS diff --git a/session/service.proto b/session/service.proto index 94281a7..3c26447 100644 --- a/session/service.proto +++ b/session/service.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.session; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/session;session"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/session/grpc;session"; option csharp_namespace = "NeoFS.API.v2.Session"; import "refs/types.proto"; diff --git a/storagegroup/types.proto b/storagegroup/types.proto index 94cefc3..196a867 100644 --- a/storagegroup/types.proto +++ b/storagegroup/types.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package neo.fs.v2.storagegroup; -option go_package = "github.com/nspcc-dev/neofs-api-go/v2/storagegroup;storagegroup"; +option go_package = "github.com/nspcc-dev/neofs-api-go/v2/storagegroup/grpc;storagegroup"; option csharp_namespace = "NeoFS.API.v2.StorageGroup"; import "refs/types.proto";