forked from TrueCloudLab/frostfs-api-go
[#418] netmap: Support NetmapService.NetmapSnapshot
RPC
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f3e1f8ae7a
commit
cf868188ef
36 changed files with 1139 additions and 197 deletions
4
accounting/grpc/service.pb.go
generated
4
accounting/grpc/service.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: accounting/grpc/service.proto
|
// source: accounting/grpc/service.proto
|
||||||
|
|
||||||
package accounting
|
package accounting
|
||||||
|
|
2
accounting/grpc/service_grpc.pb.go
generated
2
accounting/grpc/service_grpc.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.2.0
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
// - protoc v3.21.5
|
// - protoc v3.21.6
|
||||||
// source: accounting/grpc/service.proto
|
// source: accounting/grpc/service.proto
|
||||||
|
|
||||||
package accounting
|
package accounting
|
||||||
|
|
4
accounting/grpc/types.pb.go
generated
4
accounting/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: accounting/grpc/types.proto
|
// source: accounting/grpc/types.proto
|
||||||
|
|
||||||
package accounting
|
package accounting
|
||||||
|
|
6
acl/grpc/types.pb.go
generated
6
acl/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: acl/grpc/types.proto
|
// source: acl/grpc/types.proto
|
||||||
|
|
||||||
package acl
|
package acl
|
||||||
|
@ -556,7 +556,7 @@ func (x *BearerToken) GetSignature() *grpc.Signature {
|
||||||
// - $Object:homomorphicHash \
|
// - $Object:homomorphicHash \
|
||||||
// homomorphic_hash
|
// homomorphic_hash
|
||||||
//
|
//
|
||||||
// Please note, that if request or response does not have object's headers or
|
// Please note, that if request or response does not have object's headers of
|
||||||
// full object (Range, RangeHash, Search, Delete), it will not be possible to
|
// full object (Range, RangeHash, Search, Delete), it will not be possible to
|
||||||
// filter by object header fields or user attributes. From the well-known list
|
// filter by object header fields or user attributes. From the well-known list
|
||||||
// only `$Object:objectID` and `$Object:containerID` will be available, as
|
// only `$Object:objectID` and `$Object:containerID` will be available, as
|
||||||
|
|
4
audit/grpc/types.pb.go
generated
4
audit/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: audit/grpc/types.proto
|
// source: audit/grpc/types.proto
|
||||||
|
|
||||||
package audit
|
package audit
|
||||||
|
|
4
container/grpc/service.pb.go
generated
4
container/grpc/service.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: container/grpc/service.proto
|
// source: container/grpc/service.proto
|
||||||
|
|
||||||
package container
|
package container
|
||||||
|
|
10
container/grpc/service_grpc.pb.go
generated
10
container/grpc/service_grpc.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.2.0
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
// - protoc v3.21.5
|
// - protoc v3.21.6
|
||||||
// source: container/grpc/service.proto
|
// source: container/grpc/service.proto
|
||||||
|
|
||||||
package container
|
package container
|
||||||
|
@ -75,7 +75,9 @@ type ContainerServiceClient interface {
|
||||||
// container eACL has been successfully read;
|
// container eACL has been successfully read;
|
||||||
// - Common failures (SECTION_FAILURE_COMMON);
|
// - Common failures (SECTION_FAILURE_COMMON);
|
||||||
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
|
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
|
||||||
// container not found.
|
// container not found;
|
||||||
|
// - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
|
||||||
|
// eACL table not found.
|
||||||
GetExtendedACL(ctx context.Context, in *GetExtendedACLRequest, opts ...grpc.CallOption) (*GetExtendedACLResponse, error)
|
GetExtendedACL(ctx context.Context, in *GetExtendedACLRequest, opts ...grpc.CallOption) (*GetExtendedACLResponse, error)
|
||||||
// Announces the space values used by the container for P2P synchronization.
|
// Announces the space values used by the container for P2P synchronization.
|
||||||
//
|
//
|
||||||
|
@ -214,7 +216,9 @@ type ContainerServiceServer interface {
|
||||||
// container eACL has been successfully read;
|
// container eACL has been successfully read;
|
||||||
// - Common failures (SECTION_FAILURE_COMMON);
|
// - Common failures (SECTION_FAILURE_COMMON);
|
||||||
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
|
// - **CONTAINER_NOT_FOUND** (3072, SECTION_CONTAINER): \
|
||||||
// container not found.
|
// container not found;
|
||||||
|
// - **EACL_NOT_FOUND** (3073, SECTION_CONTAINER): \
|
||||||
|
// eACL table not found.
|
||||||
GetExtendedACL(context.Context, *GetExtendedACLRequest) (*GetExtendedACLResponse, error)
|
GetExtendedACL(context.Context, *GetExtendedACLRequest) (*GetExtendedACLResponse, error)
|
||||||
// Announces the space values used by the container for P2P synchronization.
|
// Announces the space values used by the container for P2P synchronization.
|
||||||
//
|
//
|
||||||
|
|
4
container/grpc/types.pb.go
generated
4
container/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: container/grpc/types.proto
|
// source: container/grpc/types.proto
|
||||||
|
|
||||||
package container
|
package container
|
||||||
|
|
4
lock/grpc/types.pb.go
generated
4
lock/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: lock/grpc/types.proto
|
// source: lock/grpc/types.proto
|
||||||
|
|
||||||
package lock
|
package lock
|
||||||
|
|
|
@ -754,3 +754,181 @@ func (l *NetworkInfoResponse) FromGRPCMessage(m grpc.Message) error {
|
||||||
|
|
||||||
return l.ResponseHeaders.FromMessage(v)
|
return l.ResponseHeaders.FromMessage(v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *NetMap) ToGRPCMessage() grpc.Message {
|
||||||
|
var m *netmap.Netmap
|
||||||
|
|
||||||
|
if x != nil {
|
||||||
|
m = new(netmap.Netmap)
|
||||||
|
|
||||||
|
m.SetEpoch(x.epoch)
|
||||||
|
|
||||||
|
if x.nodes != nil {
|
||||||
|
nodes := make([]*netmap.NodeInfo, len(x.nodes))
|
||||||
|
|
||||||
|
for i := range x.nodes {
|
||||||
|
nodes[i] = x.nodes[i].ToGRPCMessage().(*netmap.NodeInfo)
|
||||||
|
}
|
||||||
|
|
||||||
|
m.SetNodes(nodes)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetMap) FromGRPCMessage(m grpc.Message) error {
|
||||||
|
v, ok := m.(*netmap.Netmap)
|
||||||
|
if !ok {
|
||||||
|
return message.NewUnexpectedMessageType(m, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
|
||||||
|
nodes := v.GetNodes()
|
||||||
|
if nodes == nil {
|
||||||
|
x.nodes = nil
|
||||||
|
} else {
|
||||||
|
x.nodes = make([]NodeInfo, len(nodes))
|
||||||
|
|
||||||
|
for i := range nodes {
|
||||||
|
err = x.nodes[i].FromGRPCMessage(nodes[i])
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
x.epoch = v.GetEpoch()
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequestBody) ToGRPCMessage() grpc.Message {
|
||||||
|
var m *netmap.NetmapSnapshotRequest_Body
|
||||||
|
|
||||||
|
if x != nil {
|
||||||
|
m = new(netmap.NetmapSnapshotRequest_Body)
|
||||||
|
}
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequestBody) FromGRPCMessage(m grpc.Message) error {
|
||||||
|
v, ok := m.(*netmap.NetmapSnapshotRequest_Body)
|
||||||
|
if !ok {
|
||||||
|
return message.NewUnexpectedMessageType(m, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequest) ToGRPCMessage() grpc.Message {
|
||||||
|
var m *netmap.NetmapSnapshotRequest
|
||||||
|
|
||||||
|
if x != nil {
|
||||||
|
m = new(netmap.NetmapSnapshotRequest)
|
||||||
|
|
||||||
|
m.SetBody(x.body.ToGRPCMessage().(*netmap.NetmapSnapshotRequest_Body))
|
||||||
|
x.RequestHeaders.ToMessage(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequest) FromGRPCMessage(m grpc.Message) error {
|
||||||
|
v, ok := m.(*netmap.NetmapSnapshotRequest)
|
||||||
|
if !ok {
|
||||||
|
return message.NewUnexpectedMessageType(m, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
|
||||||
|
body := v.GetBody()
|
||||||
|
if body == nil {
|
||||||
|
x.body = nil
|
||||||
|
} else {
|
||||||
|
if x.body == nil {
|
||||||
|
x.body = new(SnapshotRequestBody)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = x.body.FromGRPCMessage(body)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return x.RequestHeaders.FromMessage(v)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotResponseBody) ToGRPCMessage() grpc.Message {
|
||||||
|
var m *netmap.NetmapSnapshotResponse_Body
|
||||||
|
|
||||||
|
if x != nil {
|
||||||
|
m = new(netmap.NetmapSnapshotResponse_Body)
|
||||||
|
|
||||||
|
m.SetNetmap(x.netMap.ToGRPCMessage().(*netmap.Netmap))
|
||||||
|
}
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotResponseBody) FromGRPCMessage(m grpc.Message) error {
|
||||||
|
v, ok := m.(*netmap.NetmapSnapshotResponse_Body)
|
||||||
|
if !ok {
|
||||||
|
return message.NewUnexpectedMessageType(m, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
|
||||||
|
netMap := v.GetNetmap()
|
||||||
|
if netMap == nil {
|
||||||
|
x.netMap = nil
|
||||||
|
} else {
|
||||||
|
if x.netMap == nil {
|
||||||
|
x.netMap = new(NetMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = x.netMap.FromGRPCMessage(netMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotResponse) ToGRPCMessage() grpc.Message {
|
||||||
|
var m *netmap.NetmapSnapshotResponse
|
||||||
|
|
||||||
|
if x != nil {
|
||||||
|
m = new(netmap.NetmapSnapshotResponse)
|
||||||
|
|
||||||
|
m.SetBody(x.body.ToGRPCMessage().(*netmap.NetmapSnapshotResponse_Body))
|
||||||
|
x.ResponseHeaders.ToMessage(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotResponse) FromGRPCMessage(m grpc.Message) error {
|
||||||
|
v, ok := m.(*netmap.NetmapSnapshotResponse)
|
||||||
|
if !ok {
|
||||||
|
return message.NewUnexpectedMessageType(m, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
|
||||||
|
body := v.GetBody()
|
||||||
|
if body == nil {
|
||||||
|
x.body = nil
|
||||||
|
} else {
|
||||||
|
if x.body == nil {
|
||||||
|
x.body = new(SnapshotResponseBody)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = x.body.FromGRPCMessage(body)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return x.ResponseHeaders.FromMessage(v)
|
||||||
|
}
|
||||||
|
|
|
@ -79,3 +79,38 @@ func (x *NetworkInfoResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
||||||
func (x *NetworkInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
func (x *NetworkInfoResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
||||||
x.VerifyHeader = v
|
x.VerifyHeader = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetBody sets body of the request.
|
||||||
|
func (x *NetmapSnapshotRequest) SetBody(v *NetmapSnapshotRequest_Body) {
|
||||||
|
x.Body = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetMetaHeader sets meta header of the request.
|
||||||
|
func (x *NetmapSnapshotRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
||||||
|
x.MetaHeader = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetVerifyHeader sets verification header of the request.
|
||||||
|
func (x *NetmapSnapshotRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
||||||
|
x.VerifyHeader = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetNetmap sets current Netmap.
|
||||||
|
func (x *NetmapSnapshotResponse_Body) SetNetmap(v *Netmap) {
|
||||||
|
x.Netmap = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetBody sets body of the response.
|
||||||
|
func (x *NetmapSnapshotResponse) SetBody(v *NetmapSnapshotResponse_Body) {
|
||||||
|
x.Body = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetMetaHeader sets meta header of the response.
|
||||||
|
func (x *NetmapSnapshotResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
||||||
|
x.MetaHeader = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetVerifyHeader sets verification header of the response.
|
||||||
|
func (x *NetmapSnapshotResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
||||||
|
x.VerifyHeader = v
|
||||||
|
}
|
||||||
|
|
471
netmap/grpc/service.pb.go
generated
471
netmap/grpc/service.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: netmap/grpc/service.proto
|
// source: netmap/grpc/service.proto
|
||||||
|
|
||||||
package netmap
|
package netmap
|
||||||
|
@ -303,6 +303,146 @@ func (x *NetworkInfoResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get netmap snapshot request
|
||||||
|
type NetmapSnapshotRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Body of get netmap snapshot request message.
|
||||||
|
Body *NetmapSnapshotRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
|
||||||
|
// Carries request meta information. Header data is used only to regulate
|
||||||
|
// message transport and does not affect request execution.
|
||||||
|
MetaHeader *grpc.RequestMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
|
||||||
|
// Carries request verification information. This header is used to
|
||||||
|
// authenticate the nodes of the message route and check the correctness of
|
||||||
|
// transmission.
|
||||||
|
VerifyHeader *grpc.RequestVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest) Reset() {
|
||||||
|
*x = NetmapSnapshotRequest{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*NetmapSnapshotRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[4]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use NetmapSnapshotRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*NetmapSnapshotRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_netmap_grpc_service_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest) GetBody() *NetmapSnapshotRequest_Body {
|
||||||
|
if x != nil {
|
||||||
|
return x.Body
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest) GetMetaHeader() *grpc.RequestMetaHeader {
|
||||||
|
if x != nil {
|
||||||
|
return x.MetaHeader
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest) GetVerifyHeader() *grpc.RequestVerificationHeader {
|
||||||
|
if x != nil {
|
||||||
|
return x.VerifyHeader
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Response with current netmap snapshot
|
||||||
|
type NetmapSnapshotResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Body of get netmap snapshot response message.
|
||||||
|
Body *NetmapSnapshotResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
|
||||||
|
// Carries response meta information. Header data is used only to regulate
|
||||||
|
// message transport and does not affect response execution.
|
||||||
|
MetaHeader *grpc.ResponseMetaHeader `protobuf:"bytes,2,opt,name=meta_header,json=metaHeader,proto3" json:"meta_header,omitempty"`
|
||||||
|
// Carries response verification information. This header is used to
|
||||||
|
// authenticate the nodes of the message route and check the correctness of
|
||||||
|
// transmission.
|
||||||
|
VerifyHeader *grpc.ResponseVerificationHeader `protobuf:"bytes,3,opt,name=verify_header,json=verifyHeader,proto3" json:"verify_header,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse) Reset() {
|
||||||
|
*x = NetmapSnapshotResponse{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*NetmapSnapshotResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[5]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use NetmapSnapshotResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*NetmapSnapshotResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_netmap_grpc_service_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse) GetBody() *NetmapSnapshotResponse_Body {
|
||||||
|
if x != nil {
|
||||||
|
return x.Body
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse) GetMetaHeader() *grpc.ResponseMetaHeader {
|
||||||
|
if x != nil {
|
||||||
|
return x.MetaHeader
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse) GetVerifyHeader() *grpc.ResponseVerificationHeader {
|
||||||
|
if x != nil {
|
||||||
|
return x.VerifyHeader
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// LocalNodeInfo request body is empty.
|
// LocalNodeInfo request body is empty.
|
||||||
type LocalNodeInfoRequest_Body struct {
|
type LocalNodeInfoRequest_Body struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
|
@ -313,7 +453,7 @@ type LocalNodeInfoRequest_Body struct {
|
||||||
func (x *LocalNodeInfoRequest_Body) Reset() {
|
func (x *LocalNodeInfoRequest_Body) Reset() {
|
||||||
*x = LocalNodeInfoRequest_Body{}
|
*x = LocalNodeInfoRequest_Body{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[4]
|
mi := &file_netmap_grpc_service_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -326,7 +466,7 @@ func (x *LocalNodeInfoRequest_Body) String() string {
|
||||||
func (*LocalNodeInfoRequest_Body) ProtoMessage() {}
|
func (*LocalNodeInfoRequest_Body) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LocalNodeInfoRequest_Body) ProtoReflect() protoreflect.Message {
|
func (x *LocalNodeInfoRequest_Body) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[4]
|
mi := &file_netmap_grpc_service_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -357,7 +497,7 @@ type LocalNodeInfoResponse_Body struct {
|
||||||
func (x *LocalNodeInfoResponse_Body) Reset() {
|
func (x *LocalNodeInfoResponse_Body) Reset() {
|
||||||
*x = LocalNodeInfoResponse_Body{}
|
*x = LocalNodeInfoResponse_Body{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[5]
|
mi := &file_netmap_grpc_service_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -370,7 +510,7 @@ func (x *LocalNodeInfoResponse_Body) String() string {
|
||||||
func (*LocalNodeInfoResponse_Body) ProtoMessage() {}
|
func (*LocalNodeInfoResponse_Body) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *LocalNodeInfoResponse_Body) ProtoReflect() protoreflect.Message {
|
func (x *LocalNodeInfoResponse_Body) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[5]
|
mi := &file_netmap_grpc_service_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -410,7 +550,7 @@ type NetworkInfoRequest_Body struct {
|
||||||
func (x *NetworkInfoRequest_Body) Reset() {
|
func (x *NetworkInfoRequest_Body) Reset() {
|
||||||
*x = NetworkInfoRequest_Body{}
|
*x = NetworkInfoRequest_Body{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[6]
|
mi := &file_netmap_grpc_service_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -423,7 +563,7 @@ func (x *NetworkInfoRequest_Body) String() string {
|
||||||
func (*NetworkInfoRequest_Body) ProtoMessage() {}
|
func (*NetworkInfoRequest_Body) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *NetworkInfoRequest_Body) ProtoReflect() protoreflect.Message {
|
func (x *NetworkInfoRequest_Body) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[6]
|
mi := &file_netmap_grpc_service_proto_msgTypes[8]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -452,7 +592,7 @@ type NetworkInfoResponse_Body struct {
|
||||||
func (x *NetworkInfoResponse_Body) Reset() {
|
func (x *NetworkInfoResponse_Body) Reset() {
|
||||||
*x = NetworkInfoResponse_Body{}
|
*x = NetworkInfoResponse_Body{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[7]
|
mi := &file_netmap_grpc_service_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -465,7 +605,7 @@ func (x *NetworkInfoResponse_Body) String() string {
|
||||||
func (*NetworkInfoResponse_Body) ProtoMessage() {}
|
func (*NetworkInfoResponse_Body) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *NetworkInfoResponse_Body) ProtoReflect() protoreflect.Message {
|
func (x *NetworkInfoResponse_Body) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_service_proto_msgTypes[7]
|
mi := &file_netmap_grpc_service_proto_msgTypes[9]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -488,6 +628,94 @@ func (x *NetworkInfoResponse_Body) GetNetworkInfo() *NetworkInfo {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get netmap snapshot request body.
|
||||||
|
type NetmapSnapshotRequest_Body struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest_Body) Reset() {
|
||||||
|
*x = NetmapSnapshotRequest_Body{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[10]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest_Body) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*NetmapSnapshotRequest_Body) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotRequest_Body) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[10]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use NetmapSnapshotRequest_Body.ProtoReflect.Descriptor instead.
|
||||||
|
func (*NetmapSnapshotRequest_Body) Descriptor() ([]byte, []int) {
|
||||||
|
return file_netmap_grpc_service_proto_rawDescGZIP(), []int{4, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get netmap snapshot response body
|
||||||
|
type NetmapSnapshotResponse_Body struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Structure of the requested network map.
|
||||||
|
Netmap *Netmap `protobuf:"bytes,1,opt,name=netmap,proto3" json:"netmap,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse_Body) Reset() {
|
||||||
|
*x = NetmapSnapshotResponse_Body{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[11]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse_Body) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*NetmapSnapshotResponse_Body) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse_Body) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_netmap_grpc_service_proto_msgTypes[11]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use NetmapSnapshotResponse_Body.ProtoReflect.Descriptor instead.
|
||||||
|
func (*NetmapSnapshotResponse_Body) Descriptor() ([]byte, []int) {
|
||||||
|
return file_netmap_grpc_service_proto_rawDescGZIP(), []int{5, 0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetmapSnapshotResponse_Body) GetNetmap() *Netmap {
|
||||||
|
if x != nil {
|
||||||
|
return x.Netmap
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var File_netmap_grpc_service_proto protoreflect.FileDescriptor
|
var File_netmap_grpc_service_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_netmap_grpc_service_proto_rawDesc = []byte{
|
var file_netmap_grpc_service_proto_rawDesc = []byte{
|
||||||
|
@ -572,26 +800,67 @@ var file_netmap_grpc_service_proto_rawDesc = []byte{
|
||||||
0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6e, 0x65, 0x6f, 0x2e,
|
0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6e, 0x65, 0x6f, 0x2e,
|
||||||
0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74,
|
0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74,
|
||||||
0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
|
0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
|
||||||
0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x32, 0xcd, 0x01, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70,
|
0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xfb, 0x01, 0x0a, 0x15, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70,
|
||||||
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x4c, 0x6f, 0x63, 0x61, 0x6c,
|
0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||||||
0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
|
0x40, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e,
|
||||||
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4c, 0x6f, 0x63, 0x61,
|
0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70,
|
||||||
0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52,
|
||||||
0x1a, 0x27, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74,
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64,
|
||||||
0x6d, 0x61, 0x70, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66,
|
0x79, 0x12, 0x45, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x4e, 0x65, 0x74,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
|
||||||
0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
|
0x76, 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77,
|
0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x6d, 0x65,
|
||||||
0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25,
|
0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x69,
|
||||||
0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61,
|
0x66, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73,
|
0x2c, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73,
|
||||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x56, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
|
0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66,
|
||||||
0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x73, 0x70, 0x63, 0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6e, 0x65,
|
0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x76,
|
||||||
0x6f, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65,
|
0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x06, 0x0a, 0x04, 0x42,
|
||||||
0x74, 0x6d, 0x61, 0x70, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70,
|
0x6f, 0x64, 0x79, 0x22, 0xb1, 0x02, 0x0a, 0x16, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x53, 0x6e,
|
||||||
0xaa, 0x02, 0x1a, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61,
|
0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41,
|
||||||
0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x62, 0x06, 0x70,
|
0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6e,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e,
|
||||||
|
0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65,
|
||||||
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64,
|
||||||
|
0x79, 0x12, 0x46, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e,
|
||||||
|
0x76, 0x32, 0x2e, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||||||
|
0x6e, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x6d,
|
||||||
|
0x65, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x52, 0x0a, 0x0d, 0x76, 0x65, 0x72,
|
||||||
|
0x69, 0x66, 0x79, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
|
||||||
|
0x32, 0x2d, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x73, 0x65, 0x73,
|
||||||
|
0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x65, 0x72,
|
||||||
|
0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
|
||||||
|
0x0c, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x38, 0x0a,
|
||||||
|
0x04, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x30, 0x0a, 0x06, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x18,
|
||||||
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76,
|
||||||
|
0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x52,
|
||||||
|
0x06, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x32, 0xb2, 0x02, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x6d,
|
||||||
|
0x61, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x60, 0x0a, 0x0d, 0x4c, 0x6f, 0x63,
|
||||||
|
0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x6e, 0x65, 0x6f,
|
||||||
|
0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4c, 0x6f,
|
||||||
|
0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e,
|
||||||
|
0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49,
|
||||||
|
0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0b, 0x4e,
|
||||||
|
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x2e, 0x6e, 0x65, 0x6f,
|
||||||
|
0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65,
|
||||||
|
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||||
|
0x1a, 0x25, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74,
|
||||||
|
0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||||||
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0e, 0x4e, 0x65, 0x74, 0x6d, 0x61,
|
||||||
|
0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x27, 0x2e, 0x6e, 0x65, 0x6f, 0x2e,
|
||||||
|
0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74,
|
||||||
|
0x6d, 0x61, 0x70, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x73, 0x74, 0x1a, 0x28, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e,
|
||||||
|
0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x53, 0x6e, 0x61, 0x70,
|
||||||
|
0x73, 0x68, 0x6f, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x56, 0x5a, 0x37,
|
||||||
|
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x73, 0x70, 0x63, 0x63,
|
||||||
|
0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67,
|
||||||
|
0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f, 0x67, 0x72, 0x70, 0x63,
|
||||||
|
0x3b, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0xaa, 0x02, 0x1a, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69,
|
||||||
|
0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x4e, 0x65,
|
||||||
|
0x74, 0x6d, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -606,49 +875,63 @@ func file_netmap_grpc_service_proto_rawDescGZIP() []byte {
|
||||||
return file_netmap_grpc_service_proto_rawDescData
|
return file_netmap_grpc_service_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_netmap_grpc_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
var file_netmap_grpc_service_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||||
var file_netmap_grpc_service_proto_goTypes = []interface{}{
|
var file_netmap_grpc_service_proto_goTypes = []interface{}{
|
||||||
(*LocalNodeInfoRequest)(nil), // 0: neo.fs.v2.netmap.LocalNodeInfoRequest
|
(*LocalNodeInfoRequest)(nil), // 0: neo.fs.v2.netmap.LocalNodeInfoRequest
|
||||||
(*LocalNodeInfoResponse)(nil), // 1: neo.fs.v2.netmap.LocalNodeInfoResponse
|
(*LocalNodeInfoResponse)(nil), // 1: neo.fs.v2.netmap.LocalNodeInfoResponse
|
||||||
(*NetworkInfoRequest)(nil), // 2: neo.fs.v2.netmap.NetworkInfoRequest
|
(*NetworkInfoRequest)(nil), // 2: neo.fs.v2.netmap.NetworkInfoRequest
|
||||||
(*NetworkInfoResponse)(nil), // 3: neo.fs.v2.netmap.NetworkInfoResponse
|
(*NetworkInfoResponse)(nil), // 3: neo.fs.v2.netmap.NetworkInfoResponse
|
||||||
(*LocalNodeInfoRequest_Body)(nil), // 4: neo.fs.v2.netmap.LocalNodeInfoRequest.Body
|
(*NetmapSnapshotRequest)(nil), // 4: neo.fs.v2.netmap.NetmapSnapshotRequest
|
||||||
(*LocalNodeInfoResponse_Body)(nil), // 5: neo.fs.v2.netmap.LocalNodeInfoResponse.Body
|
(*NetmapSnapshotResponse)(nil), // 5: neo.fs.v2.netmap.NetmapSnapshotResponse
|
||||||
(*NetworkInfoRequest_Body)(nil), // 6: neo.fs.v2.netmap.NetworkInfoRequest.Body
|
(*LocalNodeInfoRequest_Body)(nil), // 6: neo.fs.v2.netmap.LocalNodeInfoRequest.Body
|
||||||
(*NetworkInfoResponse_Body)(nil), // 7: neo.fs.v2.netmap.NetworkInfoResponse.Body
|
(*LocalNodeInfoResponse_Body)(nil), // 7: neo.fs.v2.netmap.LocalNodeInfoResponse.Body
|
||||||
(*grpc.RequestMetaHeader)(nil), // 8: neo.fs.v2.session.RequestMetaHeader
|
(*NetworkInfoRequest_Body)(nil), // 8: neo.fs.v2.netmap.NetworkInfoRequest.Body
|
||||||
(*grpc.RequestVerificationHeader)(nil), // 9: neo.fs.v2.session.RequestVerificationHeader
|
(*NetworkInfoResponse_Body)(nil), // 9: neo.fs.v2.netmap.NetworkInfoResponse.Body
|
||||||
(*grpc.ResponseMetaHeader)(nil), // 10: neo.fs.v2.session.ResponseMetaHeader
|
(*NetmapSnapshotRequest_Body)(nil), // 10: neo.fs.v2.netmap.NetmapSnapshotRequest.Body
|
||||||
(*grpc.ResponseVerificationHeader)(nil), // 11: neo.fs.v2.session.ResponseVerificationHeader
|
(*NetmapSnapshotResponse_Body)(nil), // 11: neo.fs.v2.netmap.NetmapSnapshotResponse.Body
|
||||||
(*grpc1.Version)(nil), // 12: neo.fs.v2.refs.Version
|
(*grpc.RequestMetaHeader)(nil), // 12: neo.fs.v2.session.RequestMetaHeader
|
||||||
(*NodeInfo)(nil), // 13: neo.fs.v2.netmap.NodeInfo
|
(*grpc.RequestVerificationHeader)(nil), // 13: neo.fs.v2.session.RequestVerificationHeader
|
||||||
(*NetworkInfo)(nil), // 14: neo.fs.v2.netmap.NetworkInfo
|
(*grpc.ResponseMetaHeader)(nil), // 14: neo.fs.v2.session.ResponseMetaHeader
|
||||||
|
(*grpc.ResponseVerificationHeader)(nil), // 15: neo.fs.v2.session.ResponseVerificationHeader
|
||||||
|
(*grpc1.Version)(nil), // 16: neo.fs.v2.refs.Version
|
||||||
|
(*NodeInfo)(nil), // 17: neo.fs.v2.netmap.NodeInfo
|
||||||
|
(*NetworkInfo)(nil), // 18: neo.fs.v2.netmap.NetworkInfo
|
||||||
|
(*Netmap)(nil), // 19: neo.fs.v2.netmap.Netmap
|
||||||
}
|
}
|
||||||
var file_netmap_grpc_service_proto_depIdxs = []int32{
|
var file_netmap_grpc_service_proto_depIdxs = []int32{
|
||||||
4, // 0: neo.fs.v2.netmap.LocalNodeInfoRequest.body:type_name -> neo.fs.v2.netmap.LocalNodeInfoRequest.Body
|
6, // 0: neo.fs.v2.netmap.LocalNodeInfoRequest.body:type_name -> neo.fs.v2.netmap.LocalNodeInfoRequest.Body
|
||||||
8, // 1: neo.fs.v2.netmap.LocalNodeInfoRequest.meta_header:type_name -> neo.fs.v2.session.RequestMetaHeader
|
12, // 1: neo.fs.v2.netmap.LocalNodeInfoRequest.meta_header:type_name -> neo.fs.v2.session.RequestMetaHeader
|
||||||
9, // 2: neo.fs.v2.netmap.LocalNodeInfoRequest.verify_header:type_name -> neo.fs.v2.session.RequestVerificationHeader
|
13, // 2: neo.fs.v2.netmap.LocalNodeInfoRequest.verify_header:type_name -> neo.fs.v2.session.RequestVerificationHeader
|
||||||
5, // 3: neo.fs.v2.netmap.LocalNodeInfoResponse.body:type_name -> neo.fs.v2.netmap.LocalNodeInfoResponse.Body
|
7, // 3: neo.fs.v2.netmap.LocalNodeInfoResponse.body:type_name -> neo.fs.v2.netmap.LocalNodeInfoResponse.Body
|
||||||
10, // 4: neo.fs.v2.netmap.LocalNodeInfoResponse.meta_header:type_name -> neo.fs.v2.session.ResponseMetaHeader
|
14, // 4: neo.fs.v2.netmap.LocalNodeInfoResponse.meta_header:type_name -> neo.fs.v2.session.ResponseMetaHeader
|
||||||
11, // 5: neo.fs.v2.netmap.LocalNodeInfoResponse.verify_header:type_name -> neo.fs.v2.session.ResponseVerificationHeader
|
15, // 5: neo.fs.v2.netmap.LocalNodeInfoResponse.verify_header:type_name -> neo.fs.v2.session.ResponseVerificationHeader
|
||||||
6, // 6: neo.fs.v2.netmap.NetworkInfoRequest.body:type_name -> neo.fs.v2.netmap.NetworkInfoRequest.Body
|
8, // 6: neo.fs.v2.netmap.NetworkInfoRequest.body:type_name -> neo.fs.v2.netmap.NetworkInfoRequest.Body
|
||||||
8, // 7: neo.fs.v2.netmap.NetworkInfoRequest.meta_header:type_name -> neo.fs.v2.session.RequestMetaHeader
|
12, // 7: neo.fs.v2.netmap.NetworkInfoRequest.meta_header:type_name -> neo.fs.v2.session.RequestMetaHeader
|
||||||
9, // 8: neo.fs.v2.netmap.NetworkInfoRequest.verify_header:type_name -> neo.fs.v2.session.RequestVerificationHeader
|
13, // 8: neo.fs.v2.netmap.NetworkInfoRequest.verify_header:type_name -> neo.fs.v2.session.RequestVerificationHeader
|
||||||
7, // 9: neo.fs.v2.netmap.NetworkInfoResponse.body:type_name -> neo.fs.v2.netmap.NetworkInfoResponse.Body
|
9, // 9: neo.fs.v2.netmap.NetworkInfoResponse.body:type_name -> neo.fs.v2.netmap.NetworkInfoResponse.Body
|
||||||
10, // 10: neo.fs.v2.netmap.NetworkInfoResponse.meta_header:type_name -> neo.fs.v2.session.ResponseMetaHeader
|
14, // 10: neo.fs.v2.netmap.NetworkInfoResponse.meta_header:type_name -> neo.fs.v2.session.ResponseMetaHeader
|
||||||
11, // 11: neo.fs.v2.netmap.NetworkInfoResponse.verify_header:type_name -> neo.fs.v2.session.ResponseVerificationHeader
|
15, // 11: neo.fs.v2.netmap.NetworkInfoResponse.verify_header:type_name -> neo.fs.v2.session.ResponseVerificationHeader
|
||||||
12, // 12: neo.fs.v2.netmap.LocalNodeInfoResponse.Body.version:type_name -> neo.fs.v2.refs.Version
|
10, // 12: neo.fs.v2.netmap.NetmapSnapshotRequest.body:type_name -> neo.fs.v2.netmap.NetmapSnapshotRequest.Body
|
||||||
13, // 13: neo.fs.v2.netmap.LocalNodeInfoResponse.Body.node_info:type_name -> neo.fs.v2.netmap.NodeInfo
|
12, // 13: neo.fs.v2.netmap.NetmapSnapshotRequest.meta_header:type_name -> neo.fs.v2.session.RequestMetaHeader
|
||||||
14, // 14: neo.fs.v2.netmap.NetworkInfoResponse.Body.network_info:type_name -> neo.fs.v2.netmap.NetworkInfo
|
13, // 14: neo.fs.v2.netmap.NetmapSnapshotRequest.verify_header:type_name -> neo.fs.v2.session.RequestVerificationHeader
|
||||||
0, // 15: neo.fs.v2.netmap.NetmapService.LocalNodeInfo:input_type -> neo.fs.v2.netmap.LocalNodeInfoRequest
|
11, // 15: neo.fs.v2.netmap.NetmapSnapshotResponse.body:type_name -> neo.fs.v2.netmap.NetmapSnapshotResponse.Body
|
||||||
2, // 16: neo.fs.v2.netmap.NetmapService.NetworkInfo:input_type -> neo.fs.v2.netmap.NetworkInfoRequest
|
14, // 16: neo.fs.v2.netmap.NetmapSnapshotResponse.meta_header:type_name -> neo.fs.v2.session.ResponseMetaHeader
|
||||||
1, // 17: neo.fs.v2.netmap.NetmapService.LocalNodeInfo:output_type -> neo.fs.v2.netmap.LocalNodeInfoResponse
|
15, // 17: neo.fs.v2.netmap.NetmapSnapshotResponse.verify_header:type_name -> neo.fs.v2.session.ResponseVerificationHeader
|
||||||
3, // 18: neo.fs.v2.netmap.NetmapService.NetworkInfo:output_type -> neo.fs.v2.netmap.NetworkInfoResponse
|
16, // 18: neo.fs.v2.netmap.LocalNodeInfoResponse.Body.version:type_name -> neo.fs.v2.refs.Version
|
||||||
17, // [17:19] is the sub-list for method output_type
|
17, // 19: neo.fs.v2.netmap.LocalNodeInfoResponse.Body.node_info:type_name -> neo.fs.v2.netmap.NodeInfo
|
||||||
15, // [15:17] is the sub-list for method input_type
|
18, // 20: neo.fs.v2.netmap.NetworkInfoResponse.Body.network_info:type_name -> neo.fs.v2.netmap.NetworkInfo
|
||||||
15, // [15:15] is the sub-list for extension type_name
|
19, // 21: neo.fs.v2.netmap.NetmapSnapshotResponse.Body.netmap:type_name -> neo.fs.v2.netmap.Netmap
|
||||||
15, // [15:15] is the sub-list for extension extendee
|
0, // 22: neo.fs.v2.netmap.NetmapService.LocalNodeInfo:input_type -> neo.fs.v2.netmap.LocalNodeInfoRequest
|
||||||
0, // [0:15] is the sub-list for field type_name
|
2, // 23: neo.fs.v2.netmap.NetmapService.NetworkInfo:input_type -> neo.fs.v2.netmap.NetworkInfoRequest
|
||||||
|
4, // 24: neo.fs.v2.netmap.NetmapService.NetmapSnapshot:input_type -> neo.fs.v2.netmap.NetmapSnapshotRequest
|
||||||
|
1, // 25: neo.fs.v2.netmap.NetmapService.LocalNodeInfo:output_type -> neo.fs.v2.netmap.LocalNodeInfoResponse
|
||||||
|
3, // 26: neo.fs.v2.netmap.NetmapService.NetworkInfo:output_type -> neo.fs.v2.netmap.NetworkInfoResponse
|
||||||
|
5, // 27: neo.fs.v2.netmap.NetmapService.NetmapSnapshot:output_type -> neo.fs.v2.netmap.NetmapSnapshotResponse
|
||||||
|
25, // [25:28] is the sub-list for method output_type
|
||||||
|
22, // [22:25] is the sub-list for method input_type
|
||||||
|
22, // [22:22] is the sub-list for extension type_name
|
||||||
|
22, // [22:22] is the sub-list for extension extendee
|
||||||
|
0, // [0:22] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_netmap_grpc_service_proto_init() }
|
func init() { file_netmap_grpc_service_proto_init() }
|
||||||
|
@ -707,7 +990,7 @@ func file_netmap_grpc_service_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*LocalNodeInfoRequest_Body); i {
|
switch v := v.(*NetmapSnapshotRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -719,7 +1002,7 @@ func file_netmap_grpc_service_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*LocalNodeInfoResponse_Body); i {
|
switch v := v.(*NetmapSnapshotResponse); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -731,7 +1014,7 @@ func file_netmap_grpc_service_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*NetworkInfoRequest_Body); i {
|
switch v := v.(*LocalNodeInfoRequest_Body); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -743,6 +1026,30 @@ func file_netmap_grpc_service_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*LocalNodeInfoResponse_Body); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_netmap_grpc_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*NetworkInfoRequest_Body); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_netmap_grpc_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*NetworkInfoResponse_Body); i {
|
switch v := v.(*NetworkInfoResponse_Body); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
|
@ -754,6 +1061,30 @@ func file_netmap_grpc_service_proto_init() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_netmap_grpc_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*NetmapSnapshotRequest_Body); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_netmap_grpc_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*NetmapSnapshotResponse_Body); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
|
@ -761,7 +1092,7 @@ func file_netmap_grpc_service_proto_init() {
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_netmap_grpc_service_proto_rawDesc,
|
RawDescriptor: file_netmap_grpc_service_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 8,
|
NumMessages: 12,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
|
|
50
netmap/grpc/service_grpc.pb.go
generated
50
netmap/grpc/service_grpc.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.2.0
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
// - protoc v3.21.5
|
// - protoc v3.21.6
|
||||||
// source: netmap/grpc/service.proto
|
// source: netmap/grpc/service.proto
|
||||||
|
|
||||||
package netmap
|
package netmap
|
||||||
|
@ -40,6 +40,13 @@ type NetmapServiceClient interface {
|
||||||
// information about the current network state has been successfully read;
|
// information about the current network state has been successfully read;
|
||||||
// - Common failures (SECTION_FAILURE_COMMON).
|
// - Common failures (SECTION_FAILURE_COMMON).
|
||||||
NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfoResponse, error)
|
NetworkInfo(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfoResponse, error)
|
||||||
|
// Returns network map snapshot of the current NeoFS epoch.
|
||||||
|
//
|
||||||
|
// Statuses:
|
||||||
|
// - **OK** (0, SECTION_SUCCESS):
|
||||||
|
// information about the current network map has been successfully read;
|
||||||
|
// - Common failures (SECTION_FAILURE_COMMON).
|
||||||
|
NetmapSnapshot(ctx context.Context, in *NetmapSnapshotRequest, opts ...grpc.CallOption) (*NetmapSnapshotResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type netmapServiceClient struct {
|
type netmapServiceClient struct {
|
||||||
|
@ -68,6 +75,15 @@ func (c *netmapServiceClient) NetworkInfo(ctx context.Context, in *NetworkInfoRe
|
||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *netmapServiceClient) NetmapSnapshot(ctx context.Context, in *NetmapSnapshotRequest, opts ...grpc.CallOption) (*NetmapSnapshotResponse, error) {
|
||||||
|
out := new(NetmapSnapshotResponse)
|
||||||
|
err := c.cc.Invoke(ctx, "/neo.fs.v2.netmap.NetmapService/NetmapSnapshot", in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
// NetmapServiceServer is the server API for NetmapService service.
|
// NetmapServiceServer is the server API for NetmapService service.
|
||||||
// All implementations should embed UnimplementedNetmapServiceServer
|
// All implementations should embed UnimplementedNetmapServiceServer
|
||||||
// for forward compatibility
|
// for forward compatibility
|
||||||
|
@ -90,6 +106,13 @@ type NetmapServiceServer interface {
|
||||||
// information about the current network state has been successfully read;
|
// information about the current network state has been successfully read;
|
||||||
// - Common failures (SECTION_FAILURE_COMMON).
|
// - Common failures (SECTION_FAILURE_COMMON).
|
||||||
NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error)
|
NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error)
|
||||||
|
// Returns network map snapshot of the current NeoFS epoch.
|
||||||
|
//
|
||||||
|
// Statuses:
|
||||||
|
// - **OK** (0, SECTION_SUCCESS):
|
||||||
|
// information about the current network map has been successfully read;
|
||||||
|
// - Common failures (SECTION_FAILURE_COMMON).
|
||||||
|
NetmapSnapshot(context.Context, *NetmapSnapshotRequest) (*NetmapSnapshotResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnimplementedNetmapServiceServer should be embedded to have forward compatible implementations.
|
// UnimplementedNetmapServiceServer should be embedded to have forward compatible implementations.
|
||||||
|
@ -102,6 +125,9 @@ func (UnimplementedNetmapServiceServer) LocalNodeInfo(context.Context, *LocalNod
|
||||||
func (UnimplementedNetmapServiceServer) NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error) {
|
func (UnimplementedNetmapServiceServer) NetworkInfo(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method NetworkInfo not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method NetworkInfo not implemented")
|
||||||
}
|
}
|
||||||
|
func (UnimplementedNetmapServiceServer) NetmapSnapshot(context.Context, *NetmapSnapshotRequest) (*NetmapSnapshotResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method NetmapSnapshot not implemented")
|
||||||
|
}
|
||||||
|
|
||||||
// UnsafeNetmapServiceServer may be embedded to opt out of forward compatibility for this service.
|
// UnsafeNetmapServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||||
// Use of this interface is not recommended, as added methods to NetmapServiceServer will
|
// Use of this interface is not recommended, as added methods to NetmapServiceServer will
|
||||||
|
@ -150,6 +176,24 @@ func _NetmapService_NetworkInfo_Handler(srv interface{}, ctx context.Context, de
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _NetmapService_NetmapSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(NetmapSnapshotRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(NetmapServiceServer).NetmapSnapshot(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: "/neo.fs.v2.netmap.NetmapService/NetmapSnapshot",
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(NetmapServiceServer).NetmapSnapshot(ctx, req.(*NetmapSnapshotRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
// NetmapService_ServiceDesc is the grpc.ServiceDesc for NetmapService service.
|
// NetmapService_ServiceDesc is the grpc.ServiceDesc for NetmapService service.
|
||||||
// It's only intended for direct use with grpc.RegisterService,
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
// and not to be introspected or modified (even as a copy)
|
// and not to be introspected or modified (even as a copy)
|
||||||
|
@ -165,6 +209,10 @@ var NetmapService_ServiceDesc = grpc.ServiceDesc{
|
||||||
MethodName: "NetworkInfo",
|
MethodName: "NetworkInfo",
|
||||||
Handler: _NetmapService_NetworkInfo_Handler,
|
Handler: _NetmapService_NetworkInfo_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "NetmapSnapshot",
|
||||||
|
Handler: _NetmapService_NetmapSnapshot_Handler,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Streams: []grpc.StreamDesc{},
|
Streams: []grpc.StreamDesc{},
|
||||||
Metadata: "netmap/grpc/service.proto",
|
Metadata: "netmap/grpc/service.proto",
|
||||||
|
|
|
@ -202,3 +202,13 @@ func (x *NetworkConfig_Parameter) SetValue(v []byte) {
|
||||||
func (x *NetworkConfig) SetParameters(v []*NetworkConfig_Parameter) {
|
func (x *NetworkConfig) SetParameters(v []*NetworkConfig_Parameter) {
|
||||||
x.Parameters = v
|
x.Parameters = v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetEpoch sets revision number of the Netmap.
|
||||||
|
func (x *Netmap) SetEpoch(v uint64) {
|
||||||
|
x.Epoch = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetNodes sets nodes presented in the Netmap.
|
||||||
|
func (x *Netmap) SetNodes(v []*NodeInfo) {
|
||||||
|
x.Nodes = v
|
||||||
|
}
|
||||||
|
|
216
netmap/grpc/types.pb.go
generated
216
netmap/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: netmap/grpc/types.proto
|
// source: netmap/grpc/types.proto
|
||||||
|
|
||||||
package netmap
|
package netmap
|
||||||
|
@ -615,6 +615,64 @@ func (x *NodeInfo) GetState() NodeInfo_State {
|
||||||
return NodeInfo_UNSPECIFIED
|
return NodeInfo_UNSPECIFIED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Network map structure
|
||||||
|
type Netmap struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
// Network map revision number.
|
||||||
|
Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
|
||||||
|
// Nodes presented in network.
|
||||||
|
Nodes []*NodeInfo `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Netmap) Reset() {
|
||||||
|
*x = Netmap{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_netmap_grpc_types_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Netmap) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*Netmap) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *Netmap) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_netmap_grpc_types_proto_msgTypes[5]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use Netmap.ProtoReflect.Descriptor instead.
|
||||||
|
func (*Netmap) Descriptor() ([]byte, []int) {
|
||||||
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Netmap) GetEpoch() uint64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Epoch
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Netmap) GetNodes() []*NodeInfo {
|
||||||
|
if x != nil {
|
||||||
|
return x.Nodes
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// NeoFS network configuration
|
// NeoFS network configuration
|
||||||
type NetworkConfig struct {
|
type NetworkConfig struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
|
@ -628,7 +686,7 @@ type NetworkConfig struct {
|
||||||
func (x *NetworkConfig) Reset() {
|
func (x *NetworkConfig) Reset() {
|
||||||
*x = NetworkConfig{}
|
*x = NetworkConfig{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[5]
|
mi := &file_netmap_grpc_types_proto_msgTypes[6]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -641,7 +699,7 @@ func (x *NetworkConfig) String() string {
|
||||||
func (*NetworkConfig) ProtoMessage() {}
|
func (*NetworkConfig) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *NetworkConfig) ProtoReflect() protoreflect.Message {
|
func (x *NetworkConfig) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[5]
|
mi := &file_netmap_grpc_types_proto_msgTypes[6]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -654,7 +712,7 @@ func (x *NetworkConfig) ProtoReflect() protoreflect.Message {
|
||||||
|
|
||||||
// Deprecated: Use NetworkConfig.ProtoReflect.Descriptor instead.
|
// Deprecated: Use NetworkConfig.ProtoReflect.Descriptor instead.
|
||||||
func (*NetworkConfig) Descriptor() ([]byte, []int) {
|
func (*NetworkConfig) Descriptor() ([]byte, []int) {
|
||||||
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{5}
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *NetworkConfig) GetParameters() []*NetworkConfig_Parameter {
|
func (x *NetworkConfig) GetParameters() []*NetworkConfig_Parameter {
|
||||||
|
@ -683,7 +741,7 @@ type NetworkInfo struct {
|
||||||
func (x *NetworkInfo) Reset() {
|
func (x *NetworkInfo) Reset() {
|
||||||
*x = NetworkInfo{}
|
*x = NetworkInfo{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[6]
|
mi := &file_netmap_grpc_types_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -696,7 +754,7 @@ func (x *NetworkInfo) String() string {
|
||||||
func (*NetworkInfo) ProtoMessage() {}
|
func (*NetworkInfo) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *NetworkInfo) ProtoReflect() protoreflect.Message {
|
func (x *NetworkInfo) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[6]
|
mi := &file_netmap_grpc_types_proto_msgTypes[7]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -709,7 +767,7 @@ func (x *NetworkInfo) ProtoReflect() protoreflect.Message {
|
||||||
|
|
||||||
// Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.
|
// Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.
|
||||||
func (*NetworkInfo) Descriptor() ([]byte, []int) {
|
func (*NetworkInfo) Descriptor() ([]byte, []int) {
|
||||||
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{6}
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *NetworkInfo) GetCurrentEpoch() uint64 {
|
func (x *NetworkInfo) GetCurrentEpoch() uint64 {
|
||||||
|
@ -827,7 +885,7 @@ type NodeInfo_Attribute struct {
|
||||||
func (x *NodeInfo_Attribute) Reset() {
|
func (x *NodeInfo_Attribute) Reset() {
|
||||||
*x = NodeInfo_Attribute{}
|
*x = NodeInfo_Attribute{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[7]
|
mi := &file_netmap_grpc_types_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -840,7 +898,7 @@ func (x *NodeInfo_Attribute) String() string {
|
||||||
func (*NodeInfo_Attribute) ProtoMessage() {}
|
func (*NodeInfo_Attribute) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *NodeInfo_Attribute) ProtoReflect() protoreflect.Message {
|
func (x *NodeInfo_Attribute) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[7]
|
mi := &file_netmap_grpc_types_proto_msgTypes[8]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -892,7 +950,7 @@ type NetworkConfig_Parameter struct {
|
||||||
func (x *NetworkConfig_Parameter) Reset() {
|
func (x *NetworkConfig_Parameter) Reset() {
|
||||||
*x = NetworkConfig_Parameter{}
|
*x = NetworkConfig_Parameter{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[8]
|
mi := &file_netmap_grpc_types_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
|
@ -905,7 +963,7 @@ func (x *NetworkConfig_Parameter) String() string {
|
||||||
func (*NetworkConfig_Parameter) ProtoMessage() {}
|
func (*NetworkConfig_Parameter) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *NetworkConfig_Parameter) ProtoReflect() protoreflect.Message {
|
func (x *NetworkConfig_Parameter) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_netmap_grpc_types_proto_msgTypes[8]
|
mi := &file_netmap_grpc_types_proto_msgTypes[9]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
@ -918,7 +976,7 @@ func (x *NetworkConfig_Parameter) ProtoReflect() protoreflect.Message {
|
||||||
|
|
||||||
// Deprecated: Use NetworkConfig_Parameter.ProtoReflect.Descriptor instead.
|
// Deprecated: Use NetworkConfig_Parameter.ProtoReflect.Descriptor instead.
|
||||||
func (*NetworkConfig_Parameter) Descriptor() ([]byte, []int) {
|
func (*NetworkConfig_Parameter) Descriptor() ([]byte, []int) {
|
||||||
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{5, 0}
|
return file_netmap_grpc_types_proto_rawDescGZIP(), []int{6, 0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *NetworkConfig_Parameter) GetKey() []byte {
|
func (x *NetworkConfig_Parameter) GetKey() []byte {
|
||||||
|
@ -1006,44 +1064,50 @@ var file_netmap_grpc_types_proto_rawDesc = []byte{
|
||||||
0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
|
0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
|
||||||
0x0a, 0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4f,
|
0x0a, 0x0a, 0x06, 0x4f, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4f,
|
||||||
0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x41, 0x49, 0x4e,
|
0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x41, 0x49, 0x4e,
|
||||||
0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x22, 0x8f, 0x01, 0x0a, 0x0d, 0x4e, 0x65,
|
0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x10, 0x03, 0x22, 0x50, 0x0a, 0x06, 0x4e, 0x65, 0x74,
|
||||||
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0a, 0x70,
|
0x6d, 0x61, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
0x28, 0x04, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x30, 0x0a, 0x05, 0x6e, 0x6f, 0x64,
|
||||||
0x29, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d,
|
0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66,
|
||||||
|
0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x6f, 0x64, 0x65,
|
||||||
|
0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x8f, 0x01, 0x0a, 0x0d,
|
||||||
|
0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a,
|
||||||
|
0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
|
||||||
|
0x0b, 0x32, 0x29, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65,
|
||||||
|
0x74, 0x6d, 0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66,
|
||||||
|
0x69, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61,
|
||||||
|
0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x33, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61,
|
||||||
|
0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xbf, 0x01,
|
||||||
|
0x0a, 0x0b, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a,
|
||||||
|
0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f,
|
||||||
|
0x63, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6e, 0x75, 0x6d, 0x62,
|
||||||
|
0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4e,
|
||||||
|
0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f,
|
||||||
|
0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x73, 0x50,
|
||||||
|
0x65, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f,
|
||||||
|
0x72, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x1f, 0x2e, 0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d,
|
||||||
0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
0x61, 0x70, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
|
||||||
0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61,
|
0x52, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2a,
|
||||||
0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x33, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65,
|
0x67, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x15,
|
||||||
0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
|
0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
|
||||||
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x45, 0x51, 0x10, 0x01, 0x12,
|
||||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xbf, 0x01, 0x0a, 0x0b,
|
0x06, 0x0a, 0x02, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x54, 0x10, 0x03, 0x12,
|
||||||
0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, 0x63,
|
0x06, 0x0a, 0x02, 0x47, 0x45, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x54, 0x10, 0x05, 0x12,
|
||||||
0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01,
|
0x06, 0x0a, 0x02, 0x4c, 0x45, 0x10, 0x06, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 0x10, 0x07, 0x12,
|
||||||
0x28, 0x04, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x70, 0x6f, 0x63, 0x68,
|
0x07, 0x0a, 0x03, 0x41, 0x4e, 0x44, 0x10, 0x08, 0x2a, 0x38, 0x0a, 0x06, 0x43, 0x6c, 0x61, 0x75,
|
||||||
0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
|
0x73, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x4e, 0x75, 0x6d,
|
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x41,
|
||||||
0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x62, 0x6c,
|
0x4d, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x54, 0x49, 0x4e, 0x43, 0x54,
|
||||||
0x6f, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x73, 0x50, 0x65, 0x72,
|
0x10, 0x02, 0x42, 0x56, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
|
||||||
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x46, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
0x2f, 0x6e, 0x73, 0x70, 0x63, 0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
|
||||||
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
|
0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65, 0x74, 0x6d, 0x61,
|
||||||
0x6e, 0x65, 0x6f, 0x2e, 0x66, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70,
|
0x70, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0xaa, 0x02, 0x1a,
|
||||||
0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d,
|
0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e,
|
||||||
0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2a, 0x67, 0x0a,
|
0x41, 0x50, 0x49, 0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x50,
|
0x6f, 0x33,
|
||||||
0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
|
|
||||||
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x45, 0x51, 0x10, 0x01, 0x12, 0x06, 0x0a,
|
|
||||||
0x02, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x47, 0x54, 0x10, 0x03, 0x12, 0x06, 0x0a,
|
|
||||||
0x02, 0x47, 0x45, 0x10, 0x04, 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x54, 0x10, 0x05, 0x12, 0x06, 0x0a,
|
|
||||||
0x02, 0x4c, 0x45, 0x10, 0x06, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 0x10, 0x07, 0x12, 0x07, 0x0a,
|
|
||||||
0x03, 0x41, 0x4e, 0x44, 0x10, 0x08, 0x2a, 0x38, 0x0a, 0x06, 0x43, 0x6c, 0x61, 0x75, 0x73, 0x65,
|
|
||||||
0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x41, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
|
|
||||||
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x41, 0x4d, 0x45,
|
|
||||||
0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x54, 0x49, 0x4e, 0x43, 0x54, 0x10, 0x02,
|
|
||||||
0x42, 0x56, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e,
|
|
||||||
0x73, 0x70, 0x63, 0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x2d, 0x61,
|
|
||||||
0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x2f,
|
|
||||||
0x67, 0x72, 0x70, 0x63, 0x3b, 0x6e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0xaa, 0x02, 0x1a, 0x4e, 0x65,
|
|
||||||
0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50,
|
|
||||||
0x49, 0x2e, 0x4e, 0x65, 0x74, 0x6d, 0x61, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -1059,7 +1123,7 @@ func file_netmap_grpc_types_proto_rawDescGZIP() []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_netmap_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
var file_netmap_grpc_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
||||||
var file_netmap_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
var file_netmap_grpc_types_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||||
var file_netmap_grpc_types_proto_goTypes = []interface{}{
|
var file_netmap_grpc_types_proto_goTypes = []interface{}{
|
||||||
(Operation)(0), // 0: neo.fs.v2.netmap.Operation
|
(Operation)(0), // 0: neo.fs.v2.netmap.Operation
|
||||||
(Clause)(0), // 1: neo.fs.v2.netmap.Clause
|
(Clause)(0), // 1: neo.fs.v2.netmap.Clause
|
||||||
|
@ -1069,11 +1133,12 @@ var file_netmap_grpc_types_proto_goTypes = []interface{}{
|
||||||
(*Replica)(nil), // 5: neo.fs.v2.netmap.Replica
|
(*Replica)(nil), // 5: neo.fs.v2.netmap.Replica
|
||||||
(*PlacementPolicy)(nil), // 6: neo.fs.v2.netmap.PlacementPolicy
|
(*PlacementPolicy)(nil), // 6: neo.fs.v2.netmap.PlacementPolicy
|
||||||
(*NodeInfo)(nil), // 7: neo.fs.v2.netmap.NodeInfo
|
(*NodeInfo)(nil), // 7: neo.fs.v2.netmap.NodeInfo
|
||||||
(*NetworkConfig)(nil), // 8: neo.fs.v2.netmap.NetworkConfig
|
(*Netmap)(nil), // 8: neo.fs.v2.netmap.Netmap
|
||||||
(*NetworkInfo)(nil), // 9: neo.fs.v2.netmap.NetworkInfo
|
(*NetworkConfig)(nil), // 9: neo.fs.v2.netmap.NetworkConfig
|
||||||
(*NodeInfo_Attribute)(nil), // 10: neo.fs.v2.netmap.NodeInfo.Attribute
|
(*NetworkInfo)(nil), // 10: neo.fs.v2.netmap.NetworkInfo
|
||||||
(*NetworkConfig_Parameter)(nil), // 11: neo.fs.v2.netmap.NetworkConfig.Parameter
|
(*NodeInfo_Attribute)(nil), // 11: neo.fs.v2.netmap.NodeInfo.Attribute
|
||||||
(*grpc.SubnetID)(nil), // 12: neo.fs.v2.refs.SubnetID
|
(*NetworkConfig_Parameter)(nil), // 12: neo.fs.v2.netmap.NetworkConfig.Parameter
|
||||||
|
(*grpc.SubnetID)(nil), // 13: neo.fs.v2.refs.SubnetID
|
||||||
}
|
}
|
||||||
var file_netmap_grpc_types_proto_depIdxs = []int32{
|
var file_netmap_grpc_types_proto_depIdxs = []int32{
|
||||||
0, // 0: neo.fs.v2.netmap.Filter.op:type_name -> neo.fs.v2.netmap.Operation
|
0, // 0: neo.fs.v2.netmap.Filter.op:type_name -> neo.fs.v2.netmap.Operation
|
||||||
|
@ -1082,16 +1147,17 @@ var file_netmap_grpc_types_proto_depIdxs = []int32{
|
||||||
5, // 3: neo.fs.v2.netmap.PlacementPolicy.replicas:type_name -> neo.fs.v2.netmap.Replica
|
5, // 3: neo.fs.v2.netmap.PlacementPolicy.replicas:type_name -> neo.fs.v2.netmap.Replica
|
||||||
4, // 4: neo.fs.v2.netmap.PlacementPolicy.selectors:type_name -> neo.fs.v2.netmap.Selector
|
4, // 4: neo.fs.v2.netmap.PlacementPolicy.selectors:type_name -> neo.fs.v2.netmap.Selector
|
||||||
3, // 5: neo.fs.v2.netmap.PlacementPolicy.filters:type_name -> neo.fs.v2.netmap.Filter
|
3, // 5: neo.fs.v2.netmap.PlacementPolicy.filters:type_name -> neo.fs.v2.netmap.Filter
|
||||||
12, // 6: neo.fs.v2.netmap.PlacementPolicy.subnet_id:type_name -> neo.fs.v2.refs.SubnetID
|
13, // 6: neo.fs.v2.netmap.PlacementPolicy.subnet_id:type_name -> neo.fs.v2.refs.SubnetID
|
||||||
10, // 7: neo.fs.v2.netmap.NodeInfo.attributes:type_name -> neo.fs.v2.netmap.NodeInfo.Attribute
|
11, // 7: neo.fs.v2.netmap.NodeInfo.attributes:type_name -> neo.fs.v2.netmap.NodeInfo.Attribute
|
||||||
2, // 8: neo.fs.v2.netmap.NodeInfo.state:type_name -> neo.fs.v2.netmap.NodeInfo.State
|
2, // 8: neo.fs.v2.netmap.NodeInfo.state:type_name -> neo.fs.v2.netmap.NodeInfo.State
|
||||||
11, // 9: neo.fs.v2.netmap.NetworkConfig.parameters:type_name -> neo.fs.v2.netmap.NetworkConfig.Parameter
|
7, // 9: neo.fs.v2.netmap.Netmap.nodes:type_name -> neo.fs.v2.netmap.NodeInfo
|
||||||
8, // 10: neo.fs.v2.netmap.NetworkInfo.network_config:type_name -> neo.fs.v2.netmap.NetworkConfig
|
12, // 10: neo.fs.v2.netmap.NetworkConfig.parameters:type_name -> neo.fs.v2.netmap.NetworkConfig.Parameter
|
||||||
11, // [11:11] is the sub-list for method output_type
|
9, // 11: neo.fs.v2.netmap.NetworkInfo.network_config:type_name -> neo.fs.v2.netmap.NetworkConfig
|
||||||
11, // [11:11] is the sub-list for method input_type
|
12, // [12:12] is the sub-list for method output_type
|
||||||
11, // [11:11] is the sub-list for extension type_name
|
12, // [12:12] is the sub-list for method input_type
|
||||||
11, // [11:11] is the sub-list for extension extendee
|
12, // [12:12] is the sub-list for extension type_name
|
||||||
0, // [0:11] is the sub-list for field type_name
|
12, // [12:12] is the sub-list for extension extendee
|
||||||
|
0, // [0:12] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_netmap_grpc_types_proto_init() }
|
func init() { file_netmap_grpc_types_proto_init() }
|
||||||
|
@ -1161,7 +1227,7 @@ func file_netmap_grpc_types_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*NetworkConfig); i {
|
switch v := v.(*Netmap); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -1173,7 +1239,7 @@ func file_netmap_grpc_types_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*NetworkInfo); i {
|
switch v := v.(*NetworkConfig); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -1185,7 +1251,7 @@ func file_netmap_grpc_types_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*NodeInfo_Attribute); i {
|
switch v := v.(*NetworkInfo); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -1197,6 +1263,18 @@ func file_netmap_grpc_types_proto_init() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_netmap_grpc_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
file_netmap_grpc_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*NodeInfo_Attribute); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_netmap_grpc_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*NetworkConfig_Parameter); i {
|
switch v := v.(*NetworkConfig_Parameter); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
|
@ -1215,7 +1293,7 @@ func file_netmap_grpc_types_proto_init() {
|
||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_netmap_grpc_types_proto_rawDesc,
|
RawDescriptor: file_netmap_grpc_types_proto_rawDesc,
|
||||||
NumEnums: 3,
|
NumEnums: 3,
|
||||||
NumMessages: 9,
|
NumMessages: 10,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|
|
@ -481,3 +481,74 @@ func (i *NetworkInfoResponseBody) StableSize() (size int) {
|
||||||
func (i *NetworkInfoResponseBody) Unmarshal(data []byte) error {
|
func (i *NetworkInfoResponseBody) Unmarshal(data []byte) error {
|
||||||
return message.Unmarshal(i, data, new(netmap.NetworkInfoResponse_Body))
|
return message.Unmarshal(i, data, new(netmap.NetworkInfoResponse_Body))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
_ = iota
|
||||||
|
fNumNetMapEpoch
|
||||||
|
fNumNetMapNodes
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x *NetMap) StableMarshal(buf []byte) []byte {
|
||||||
|
if x == nil {
|
||||||
|
return []byte{}
|
||||||
|
}
|
||||||
|
|
||||||
|
if buf == nil {
|
||||||
|
buf = make([]byte, x.StableSize())
|
||||||
|
}
|
||||||
|
|
||||||
|
offset := protoutil.UInt64Marshal(fNumNetMapEpoch, buf, x.epoch)
|
||||||
|
|
||||||
|
for i := range x.nodes {
|
||||||
|
offset += protoutil.NestedStructureMarshal(fNumNetMapNodes, buf[offset:], &x.nodes[i])
|
||||||
|
}
|
||||||
|
|
||||||
|
return buf
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *NetMap) StableSize() (size int) {
|
||||||
|
if x != nil {
|
||||||
|
size = protoutil.UInt64Size(fNumNetMapEpoch, x.epoch)
|
||||||
|
|
||||||
|
for i := range x.nodes {
|
||||||
|
size += protoutil.NestedStructureSize(fNumNetMapNodes, &x.nodes[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequestBody) StableMarshal([]byte) []byte {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequestBody) StableSize() int {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
_ = iota
|
||||||
|
fNumSnapshotResponseBodyNetMap
|
||||||
|
)
|
||||||
|
|
||||||
|
func (x *SnapshotResponseBody) StableMarshal(buf []byte) []byte {
|
||||||
|
if x == nil {
|
||||||
|
return []byte{}
|
||||||
|
}
|
||||||
|
|
||||||
|
if buf == nil {
|
||||||
|
buf = make([]byte, x.StableSize())
|
||||||
|
}
|
||||||
|
|
||||||
|
protoutil.NestedStructureMarshal(fNumSnapshotResponseBodyNetMap, buf, x.netMap)
|
||||||
|
|
||||||
|
return buf
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotResponseBody) StableSize() (size int) {
|
||||||
|
if x != nil {
|
||||||
|
size = protoutil.NestedStructureSize(fNumSnapshotResponseBodyNetMap, x.netMap)
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -23,5 +23,10 @@ func TestMessageConvert(t *testing.T) {
|
||||||
func(empty bool) message.Message { return netmaptest.GenerateNetworkInfo(empty) },
|
func(empty bool) message.Message { return netmaptest.GenerateNetworkInfo(empty) },
|
||||||
func(empty bool) message.Message { return netmaptest.GenerateNetworkInfoRequest(empty) },
|
func(empty bool) message.Message { return netmaptest.GenerateNetworkInfoRequest(empty) },
|
||||||
func(empty bool) message.Message { return netmaptest.GenerateNetworkInfoResponseBody(empty) },
|
func(empty bool) message.Message { return netmaptest.GenerateNetworkInfoResponseBody(empty) },
|
||||||
|
func(empty bool) message.Message { return netmaptest.GenerateNetMap(empty) },
|
||||||
|
func(empty bool) message.Message { return netmaptest.GenerateSnapshotRequestBody(empty) },
|
||||||
|
func(empty bool) message.Message { return netmaptest.GenerateSnapshotRequest(empty) },
|
||||||
|
func(empty bool) message.Message { return netmaptest.GenerateSnapshotResponseBody(empty) },
|
||||||
|
func(empty bool) message.Message { return netmaptest.GenerateSnapshotResponse(empty) },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -267,3 +267,57 @@ func GenerateNetworkInfoResponse(empty bool) *netmap.NetworkInfoResponse {
|
||||||
|
|
||||||
return m
|
return m
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GenerateNetMap(empty bool) *netmap.NetMap {
|
||||||
|
m := new(netmap.NetMap)
|
||||||
|
|
||||||
|
if !empty {
|
||||||
|
m.SetEpoch(987)
|
||||||
|
m.SetNodes([]netmap.NodeInfo{
|
||||||
|
*GenerateNodeInfo(false),
|
||||||
|
*GenerateNodeInfo(false),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func GenerateSnapshotRequestBody(_ bool) *netmap.SnapshotRequestBody {
|
||||||
|
return new(netmap.SnapshotRequestBody)
|
||||||
|
}
|
||||||
|
|
||||||
|
func GenerateSnapshotRequest(empty bool) *netmap.SnapshotRequest {
|
||||||
|
m := new(netmap.SnapshotRequest)
|
||||||
|
|
||||||
|
if !empty {
|
||||||
|
m.SetBody(GenerateSnapshotRequestBody(false))
|
||||||
|
}
|
||||||
|
|
||||||
|
m.SetMetaHeader(sessiontest.GenerateRequestMetaHeader(empty))
|
||||||
|
m.SetVerificationHeader(sessiontest.GenerateRequestVerificationHeader(empty))
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func GenerateSnapshotResponseBody(empty bool) *netmap.SnapshotResponseBody {
|
||||||
|
m := new(netmap.SnapshotResponseBody)
|
||||||
|
|
||||||
|
if !empty {
|
||||||
|
m.SetNetMap(GenerateNetMap(false))
|
||||||
|
}
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func GenerateSnapshotResponse(empty bool) *netmap.SnapshotResponse {
|
||||||
|
m := new(netmap.SnapshotResponse)
|
||||||
|
|
||||||
|
if !empty {
|
||||||
|
m.SetBody(GenerateSnapshotResponseBody(false))
|
||||||
|
}
|
||||||
|
|
||||||
|
m.SetMetaHeader(sessiontest.GenerateResponseMetaHeader(empty))
|
||||||
|
m.SetVerificationHeader(sessiontest.GenerateResponseVerificationHeader(empty))
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
|
@ -650,3 +650,98 @@ func (l *NetworkInfoResponse) GetBody() *NetworkInfoResponseBody {
|
||||||
func (l *NetworkInfoResponse) SetBody(body *NetworkInfoResponseBody) {
|
func (l *NetworkInfoResponse) SetBody(body *NetworkInfoResponseBody) {
|
||||||
l.body = body
|
l.body = body
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NetMap represents structure of NeoFS network map.
|
||||||
|
type NetMap struct {
|
||||||
|
epoch uint64
|
||||||
|
|
||||||
|
nodes []NodeInfo
|
||||||
|
}
|
||||||
|
|
||||||
|
// Epoch returns revision number of the NetMap.
|
||||||
|
func (x *NetMap) Epoch() uint64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.epoch
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetEpoch sets revision number of the NetMap.
|
||||||
|
func (x *NetMap) SetEpoch(v uint64) {
|
||||||
|
x.epoch = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nodes returns nodes presented in the NetMap.
|
||||||
|
func (x *NetMap) Nodes() []NodeInfo {
|
||||||
|
if x != nil {
|
||||||
|
return x.nodes
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetNodes sets nodes presented in the NetMap.
|
||||||
|
func (x *NetMap) SetNodes(v []NodeInfo) {
|
||||||
|
x.nodes = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SnapshotRequestBody represents structure of Snapshot request body.
|
||||||
|
type SnapshotRequestBody struct{}
|
||||||
|
|
||||||
|
// SnapshotRequest represents structure of Snapshot request.
|
||||||
|
type SnapshotRequest struct {
|
||||||
|
body *SnapshotRequestBody
|
||||||
|
|
||||||
|
session.RequestHeaders
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequest) GetBody() *SnapshotRequestBody {
|
||||||
|
if x != nil {
|
||||||
|
return x.body
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotRequest) SetBody(body *SnapshotRequestBody) {
|
||||||
|
x.body = body
|
||||||
|
}
|
||||||
|
|
||||||
|
// SnapshotResponseBody represents structure of Snapshot response body.
|
||||||
|
type SnapshotResponseBody struct {
|
||||||
|
netMap *NetMap
|
||||||
|
}
|
||||||
|
|
||||||
|
// NetMap returns current NetMap.
|
||||||
|
func (x *SnapshotResponseBody) NetMap() *NetMap {
|
||||||
|
if x != nil {
|
||||||
|
return x.netMap
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetNetMap sets current NetMap.
|
||||||
|
func (x *SnapshotResponseBody) SetNetMap(netMap *NetMap) {
|
||||||
|
x.netMap = netMap
|
||||||
|
}
|
||||||
|
|
||||||
|
// SnapshotResponse represents structure of Snapshot response.
|
||||||
|
type SnapshotResponse struct {
|
||||||
|
body *SnapshotResponseBody
|
||||||
|
|
||||||
|
session.ResponseHeaders
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotResponse) GetBody() *SnapshotResponseBody {
|
||||||
|
if x != nil {
|
||||||
|
return x.body
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SnapshotResponse) SetBody(body *SnapshotResponseBody) {
|
||||||
|
x.body = body
|
||||||
|
}
|
||||||
|
|
4
object/grpc/service.pb.go
generated
4
object/grpc/service.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: object/grpc/service.proto
|
// source: object/grpc/service.proto
|
||||||
|
|
||||||
package object
|
package object
|
||||||
|
|
2
object/grpc/service_grpc.pb.go
generated
2
object/grpc/service_grpc.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.2.0
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
// - protoc v3.21.5
|
// - protoc v3.21.6
|
||||||
// source: object/grpc/service.proto
|
// source: object/grpc/service.proto
|
||||||
|
|
||||||
package object
|
package object
|
||||||
|
|
11
object/grpc/types.pb.go
generated
11
object/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: object/grpc/types.proto
|
// source: object/grpc/types.proto
|
||||||
|
|
||||||
package object
|
package object
|
||||||
|
@ -577,6 +577,13 @@ func (x *SplitInfo) GetLink() *grpc.ObjectID {
|
||||||
// Human-friendly name
|
// Human-friendly name
|
||||||
// - FileName \
|
// - FileName \
|
||||||
// File name to be associated with the object on saving
|
// File name to be associated with the object on saving
|
||||||
|
// - FilePath \
|
||||||
|
// Full path to be associated with the object on saving. Should start with a
|
||||||
|
// '/' and use '/' as a delimiting symbol. Trailing '/' should be
|
||||||
|
// interpreted as a virtual directory marker. If an object has conflicting
|
||||||
|
// FilePath and FileName, FilePath should have higher priority, because it
|
||||||
|
// is used to construct the directory tree. FilePath with trailing '/' and
|
||||||
|
// non-empty FileName attribute should not be used together.
|
||||||
// - Timestamp \
|
// - Timestamp \
|
||||||
// User-defined local time of object creation in Unix Timestamp format
|
// User-defined local time of object creation in Unix Timestamp format
|
||||||
// - Content-Type \
|
// - Content-Type \
|
||||||
|
|
4
refs/grpc/types.pb.go
generated
4
refs/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: refs/grpc/types.proto
|
// source: refs/grpc/types.proto
|
||||||
|
|
||||||
package refs
|
package refs
|
||||||
|
|
4
reputation/grpc/service.pb.go
generated
4
reputation/grpc/service.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: reputation/grpc/service.proto
|
// source: reputation/grpc/service.proto
|
||||||
|
|
||||||
package reputation
|
package reputation
|
||||||
|
|
2
reputation/grpc/service_grpc.pb.go
generated
2
reputation/grpc/service_grpc.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.2.0
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
// - protoc v3.21.5
|
// - protoc v3.21.6
|
||||||
// source: reputation/grpc/service.proto
|
// source: reputation/grpc/service.proto
|
||||||
|
|
||||||
package reputation
|
package reputation
|
||||||
|
|
4
reputation/grpc/types.pb.go
generated
4
reputation/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: reputation/grpc/types.proto
|
// source: reputation/grpc/types.proto
|
||||||
|
|
||||||
package reputation
|
package reputation
|
||||||
|
|
|
@ -11,6 +11,7 @@ const serviceNetmap = serviceNamePrefix + "netmap.NetmapService"
|
||||||
const (
|
const (
|
||||||
rpcNetmapNodeInfo = "LocalNodeInfo"
|
rpcNetmapNodeInfo = "LocalNodeInfo"
|
||||||
rpcNetmapNetInfo = "NetworkInfo"
|
rpcNetmapNetInfo = "NetworkInfo"
|
||||||
|
rpcNetmapSnapshot = "NetmapSnapshot"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LocalNodeInfo executes NetmapService.LocalNodeInfo RPC.
|
// LocalNodeInfo executes NetmapService.LocalNodeInfo RPC.
|
||||||
|
@ -44,3 +45,19 @@ func NetworkInfo(
|
||||||
|
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NetMapSnapshot executes NetmapService.NetmapSnapshot RPC.
|
||||||
|
func NetMapSnapshot(
|
||||||
|
cli *client.Client,
|
||||||
|
req *netmap.SnapshotRequest,
|
||||||
|
opts ...client.CallOption,
|
||||||
|
) (*netmap.SnapshotResponse, error) {
|
||||||
|
resp := new(netmap.SnapshotResponse)
|
||||||
|
|
||||||
|
err := client.SendUnary(cli, common.CallMethodInfoUnary(serviceNetmap, rpcNetmapSnapshot), req, resp, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return resp, nil
|
||||||
|
}
|
||||||
|
|
4
session/grpc/service.pb.go
generated
4
session/grpc/service.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: session/grpc/service.proto
|
// source: session/grpc/service.proto
|
||||||
|
|
||||||
package session
|
package session
|
||||||
|
|
2
session/grpc/service_grpc.pb.go
generated
2
session/grpc/service_grpc.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// - protoc-gen-go-grpc v1.2.0
|
// - protoc-gen-go-grpc v1.2.0
|
||||||
// - protoc v3.21.5
|
// - protoc v3.21.6
|
||||||
// source: session/grpc/service.proto
|
// source: session/grpc/service.proto
|
||||||
|
|
||||||
package session
|
package session
|
||||||
|
|
4
session/grpc/types.pb.go
generated
4
session/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: session/grpc/types.proto
|
// source: session/grpc/types.proto
|
||||||
|
|
||||||
package session
|
package session
|
||||||
|
|
|
@ -375,6 +375,10 @@ func serviceMessageBody(req interface{}) stableMarshaler {
|
||||||
return v.GetBody()
|
return v.GetBody()
|
||||||
case *netmap.NetworkInfoResponse:
|
case *netmap.NetworkInfoResponse:
|
||||||
return v.GetBody()
|
return v.GetBody()
|
||||||
|
case *netmap.SnapshotRequest:
|
||||||
|
return v.GetBody()
|
||||||
|
case *netmap.SnapshotResponse:
|
||||||
|
return v.GetBody()
|
||||||
|
|
||||||
/* Reputation */
|
/* Reputation */
|
||||||
case *reputation.AnnounceLocalTrustRequest:
|
case *reputation.AnnounceLocalTrustRequest:
|
||||||
|
|
31
status/grpc/types.pb.go
generated
31
status/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: status/grpc/types.proto
|
// source: status/grpc/types.proto
|
||||||
|
|
||||||
package status
|
package status
|
||||||
|
@ -263,15 +263,19 @@ type Container int32
|
||||||
const (
|
const (
|
||||||
// [**3072**] Container not found.
|
// [**3072**] Container not found.
|
||||||
Container_CONTAINER_NOT_FOUND Container = 0
|
Container_CONTAINER_NOT_FOUND Container = 0
|
||||||
|
// [**3073**] eACL table not found.
|
||||||
|
Container_EACL_NOT_FOUND Container = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
// Enum value maps for Container.
|
// Enum value maps for Container.
|
||||||
var (
|
var (
|
||||||
Container_name = map[int32]string{
|
Container_name = map[int32]string{
|
||||||
0: "CONTAINER_NOT_FOUND",
|
0: "CONTAINER_NOT_FOUND",
|
||||||
|
1: "EACL_NOT_FOUND",
|
||||||
}
|
}
|
||||||
Container_value = map[string]int32{
|
Container_value = map[string]int32{
|
||||||
"CONTAINER_NOT_FOUND": 0,
|
"CONTAINER_NOT_FOUND": 0,
|
||||||
|
"EACL_NOT_FOUND": 1,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -547,19 +551,20 @@ var file_status_grpc_types_proto_rawDesc = []byte{
|
||||||
0x4c, 0x41, 0x52, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16,
|
0x4c, 0x41, 0x52, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x03, 0x12, 0x1a, 0x0a, 0x16,
|
||||||
0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x52,
|
0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x52,
|
||||||
0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55, 0x54, 0x5f,
|
0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x55, 0x54, 0x5f,
|
||||||
0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x24, 0x0a, 0x09, 0x43, 0x6f,
|
0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x05, 0x2a, 0x38, 0x0a, 0x09, 0x43, 0x6f,
|
||||||
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x54, 0x41,
|
0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4e, 0x54, 0x41,
|
||||||
0x49, 0x4e, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x00,
|
0x49, 0x4e, 0x45, 0x52, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x00,
|
||||||
0x2a, 0x31, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x0a, 0x0f, 0x54,
|
0x12, 0x12, 0x0a, 0x0e, 0x45, 0x41, 0x43, 0x4c, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55,
|
||||||
0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x00,
|
0x4e, 0x44, 0x10, 0x01, 0x2a, 0x31, 0x0a, 0x07, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
|
||||||
0x12, 0x11, 0x0a, 0x0d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45,
|
0x13, 0x0a, 0x0f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55,
|
||||||
0x44, 0x10, 0x01, 0x42, 0x56, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
|
0x4e, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x45, 0x58,
|
||||||
0x6d, 0x2f, 0x6e, 0x73, 0x70, 0x63, 0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x6e, 0x65, 0x6f, 0x66,
|
0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x01, 0x42, 0x56, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75,
|
||||||
0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x74,
|
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6e, 0x73, 0x70, 0x63, 0x63, 0x2d, 0x64, 0x65, 0x76, 0x2f,
|
||||||
0x75, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0xaa, 0x02,
|
0x6e, 0x65, 0x6f, 0x66, 0x73, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x32, 0x2f,
|
||||||
0x1a, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
|
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3b, 0x73, 0x74, 0x61, 0x74,
|
||||||
0x2e, 0x41, 0x50, 0x49, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
0x75, 0x73, 0xaa, 0x02, 0x1a, 0x4e, 0x65, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x6f,
|
||||||
0x74, 0x6f, 0x33,
|
0x72, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x50, 0x49, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x62,
|
||||||
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
4
storagegroup/grpc/types.pb.go
generated
4
storagegroup/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: storagegroup/grpc/types.proto
|
// source: storagegroup/grpc/types.proto
|
||||||
|
|
||||||
package storagegroup
|
package storagegroup
|
||||||
|
|
4
subnet/grpc/types.pb.go
generated
4
subnet/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: subnet/grpc/types.proto
|
// source: subnet/grpc/types.proto
|
||||||
|
|
||||||
package subnet
|
package subnet
|
||||||
|
|
4
tombstone/grpc/types.pb.go
generated
4
tombstone/grpc/types.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: tombstone/grpc/types.proto
|
// source: tombstone/grpc/types.proto
|
||||||
|
|
||||||
package tombstone
|
package tombstone
|
||||||
|
|
4
util/proto/test/test.pb.go
generated
4
util/proto/test/test.pb.go
generated
|
@ -1,7 +1,7 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.27.1
|
// protoc-gen-go v1.28.0
|
||||||
// protoc v3.21.5
|
// protoc v3.21.6
|
||||||
// source: util/proto/test/test.proto
|
// source: util/proto/test/test.proto
|
||||||
|
|
||||||
package test
|
package test
|
||||||
|
|
Loading…
Add table
Reference in a new issue