forked from TrueCloudLab/frostfs-api
[#32] bootstrap: Remove gogoproto from typedef
There is a need to remove gogoproto usage from NeoFS API since this plugin is not cross-language. This commit removes usage from NodeInfo message. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4caf9a7258
commit
50d4fcb24a
1 changed files with 3 additions and 10 deletions
|
@ -3,20 +3,13 @@ package bootstrap;
|
||||||
option go_package = "github.com/nspcc-dev/neofs-api-go/bootstrap";
|
option go_package = "github.com/nspcc-dev/neofs-api-go/bootstrap";
|
||||||
option csharp_namespace = "NeoFS.API.Bootstrap";
|
option csharp_namespace = "NeoFS.API.Bootstrap";
|
||||||
|
|
||||||
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
||||||
|
|
||||||
option (gogoproto.stable_marshaler_all) = true;
|
|
||||||
|
|
||||||
option (gogoproto.stringer_all) = false;
|
|
||||||
option (gogoproto.goproto_stringer_all) = false;
|
|
||||||
|
|
||||||
message NodeInfo {
|
message NodeInfo {
|
||||||
// Address is a node [multi-address](https://github.com/multiformats/multiaddr)
|
// Address is a node [multi-address](https://github.com/multiformats/multiaddr)
|
||||||
string Address = 1 [(gogoproto.jsontag) = "address"];
|
string Address = 1;
|
||||||
// PubKey is a compressed public key representation in bytes
|
// PubKey is a compressed public key representation in bytes
|
||||||
bytes PubKey = 2 [(gogoproto.jsontag) = "pubkey,omitempty"];
|
bytes PubKey = 2;
|
||||||
// Options is set of node optional information, such as storage capacity, node location, price and etc
|
// Options is set of node optional information, such as storage capacity, node location, price and etc
|
||||||
repeated string Options = 3 [(gogoproto.jsontag) = "options,omitempty"];
|
repeated string Options = 3;
|
||||||
|
|
||||||
enum State {
|
enum State {
|
||||||
Unknown = 0;
|
Unknown = 0;
|
||||||
|
|
Loading…
Reference in a new issue