2018-11-29 18:39:27 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
|
// source: node.proto
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
|
|
|
import _ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
|
|
|
// NodeType is an enum of possible node types
|
|
|
|
type NodeType int32
|
|
|
|
|
|
|
|
const (
|
2019-01-02 18:47:34 +00:00
|
|
|
NodeType_INVALID NodeType = 0
|
|
|
|
NodeType_SATELLITE NodeType = 1
|
|
|
|
NodeType_STORAGE NodeType = 2
|
|
|
|
NodeType_UPLINK NodeType = 3
|
2019-01-09 15:59:51 +00:00
|
|
|
NodeType_BOOTSTRAP NodeType = 4
|
2018-11-29 18:39:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var NodeType_name = map[int32]string{
|
2019-01-02 18:47:34 +00:00
|
|
|
0: "INVALID",
|
|
|
|
1: "SATELLITE",
|
|
|
|
2: "STORAGE",
|
|
|
|
3: "UPLINK",
|
2019-01-09 15:59:51 +00:00
|
|
|
4: "BOOTSTRAP",
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
var NodeType_value = map[string]int32{
|
2019-01-02 18:47:34 +00:00
|
|
|
"INVALID": 0,
|
|
|
|
"SATELLITE": 1,
|
|
|
|
"STORAGE": 2,
|
|
|
|
"UPLINK": 3,
|
2019-01-09 15:59:51 +00:00
|
|
|
"BOOTSTRAP": 4,
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x NodeType) String() string {
|
|
|
|
return proto.EnumName(NodeType_name, int32(x))
|
|
|
|
}
|
|
|
|
func (NodeType) EnumDescriptor() ([]byte, []int) {
|
2019-02-25 18:41:51 +00:00
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{0}
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NodeTransport is an enum of possible transports for the overlay network
|
|
|
|
type NodeTransport int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
NodeTransport_TCP_TLS_GRPC NodeTransport = 0
|
|
|
|
)
|
|
|
|
|
|
|
|
var NodeTransport_name = map[int32]string{
|
|
|
|
0: "TCP_TLS_GRPC",
|
|
|
|
}
|
|
|
|
var NodeTransport_value = map[string]int32{
|
|
|
|
"TCP_TLS_GRPC": 0,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x NodeTransport) String() string {
|
|
|
|
return proto.EnumName(NodeTransport_name, int32(x))
|
|
|
|
}
|
|
|
|
func (NodeTransport) EnumDescriptor() ([]byte, []int) {
|
2019-02-25 18:41:51 +00:00
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{1}
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
|
2018-12-04 20:18:26 +00:00
|
|
|
// TODO move statdb.Update() stuff out of here
|
2018-11-29 18:39:27 +00:00
|
|
|
// Node represents a node in the overlay network
|
|
|
|
// Node is info for a updating a single storagenode, used in the Update rpc calls
|
|
|
|
type Node struct {
|
|
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
2019-01-28 22:53:37 +00:00
|
|
|
Address *NodeAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
2018-11-29 18:39:27 +00:00
|
|
|
Type NodeType `protobuf:"varint,3,opt,name=type,proto3,enum=node.NodeType" json:"type,omitempty"`
|
2019-01-28 22:53:37 +00:00
|
|
|
Restrictions *NodeRestrictions `protobuf:"bytes,4,opt,name=restrictions,proto3" json:"restrictions,omitempty"`
|
|
|
|
Reputation *NodeStats `protobuf:"bytes,5,opt,name=reputation,proto3" json:"reputation,omitempty"`
|
|
|
|
Metadata *NodeMetadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
|
|
LatencyList []int64 `protobuf:"varint,7,rep,packed,name=latency_list,json=latencyList,proto3" json:"latency_list,omitempty"`
|
2018-12-04 20:18:26 +00:00
|
|
|
AuditSuccess bool `protobuf:"varint,8,opt,name=audit_success,json=auditSuccess,proto3" json:"audit_success,omitempty"`
|
|
|
|
IsUp bool `protobuf:"varint,9,opt,name=is_up,json=isUp,proto3" json:"is_up,omitempty"`
|
|
|
|
UpdateLatency bool `protobuf:"varint,10,opt,name=update_latency,json=updateLatency,proto3" json:"update_latency,omitempty"`
|
|
|
|
UpdateAuditSuccess bool `protobuf:"varint,11,opt,name=update_audit_success,json=updateAuditSuccess,proto3" json:"update_audit_success,omitempty"`
|
|
|
|
UpdateUptime bool `protobuf:"varint,12,opt,name=update_uptime,json=updateUptime,proto3" json:"update_uptime,omitempty"`
|
2018-11-29 18:39:27 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) Reset() { *m = Node{} }
|
|
|
|
func (m *Node) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Node) ProtoMessage() {}
|
|
|
|
func (*Node) Descriptor() ([]byte, []int) {
|
2019-02-25 18:41:51 +00:00
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{0}
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
func (m *Node) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Node.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Node.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *Node) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Node.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *Node) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Node.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Node) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Node.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Node proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Node) GetAddress() *NodeAddress {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetType() NodeType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
2019-01-02 18:47:34 +00:00
|
|
|
return NodeType_INVALID
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetRestrictions() *NodeRestrictions {
|
|
|
|
if m != nil {
|
|
|
|
return m.Restrictions
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-12-04 20:18:26 +00:00
|
|
|
func (m *Node) GetReputation() *NodeStats {
|
|
|
|
if m != nil {
|
|
|
|
return m.Reputation
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-11-29 18:39:27 +00:00
|
|
|
func (m *Node) GetMetadata() *NodeMetadata {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetLatencyList() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.LatencyList
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetAuditSuccess() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuditSuccess
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetIsUp() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.IsUp
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetUpdateLatency() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.UpdateLatency
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetUpdateAuditSuccess() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.UpdateAuditSuccess
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetUpdateUptime() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.UpdateUptime
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
// NodeAddress contains the information needed to communicate with a node on the network
|
|
|
|
type NodeAddress struct {
|
|
|
|
Transport NodeTransport `protobuf:"varint,1,opt,name=transport,proto3,enum=node.NodeTransport" json:"transport,omitempty"`
|
|
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeAddress) Reset() { *m = NodeAddress{} }
|
|
|
|
func (m *NodeAddress) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeAddress) ProtoMessage() {}
|
|
|
|
func (*NodeAddress) Descriptor() ([]byte, []int) {
|
2019-02-25 18:41:51 +00:00
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{1}
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
func (m *NodeAddress) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeAddress.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeAddress.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *NodeAddress) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeAddress.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *NodeAddress) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeAddress.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeAddress) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeAddress.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeAddress proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeAddress) GetTransport() NodeTransport {
|
|
|
|
if m != nil {
|
|
|
|
return m.Transport
|
|
|
|
}
|
|
|
|
return NodeTransport_TCP_TLS_GRPC
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeAddress) GetAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-12-03 13:23:12 +00:00
|
|
|
// NodeStats is the reputation characteristics of a node
|
2018-11-29 18:39:27 +00:00
|
|
|
type NodeStats struct {
|
|
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
|
|
|
Latency_90 int64 `protobuf:"varint,2,opt,name=latency_90,json=latency90,proto3" json:"latency_90,omitempty"`
|
|
|
|
AuditSuccessRatio float64 `protobuf:"fixed64,3,opt,name=audit_success_ratio,json=auditSuccessRatio,proto3" json:"audit_success_ratio,omitempty"`
|
|
|
|
UptimeRatio float64 `protobuf:"fixed64,4,opt,name=uptime_ratio,json=uptimeRatio,proto3" json:"uptime_ratio,omitempty"`
|
|
|
|
AuditCount int64 `protobuf:"varint,5,opt,name=audit_count,json=auditCount,proto3" json:"audit_count,omitempty"`
|
|
|
|
AuditSuccessCount int64 `protobuf:"varint,6,opt,name=audit_success_count,json=auditSuccessCount,proto3" json:"audit_success_count,omitempty"`
|
|
|
|
UptimeCount int64 `protobuf:"varint,7,opt,name=uptime_count,json=uptimeCount,proto3" json:"uptime_count,omitempty"`
|
|
|
|
UptimeSuccessCount int64 `protobuf:"varint,8,opt,name=uptime_success_count,json=uptimeSuccessCount,proto3" json:"uptime_success_count,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeStats) Reset() { *m = NodeStats{} }
|
|
|
|
func (m *NodeStats) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeStats) ProtoMessage() {}
|
|
|
|
func (*NodeStats) Descriptor() ([]byte, []int) {
|
2019-02-25 18:41:51 +00:00
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{2}
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
func (m *NodeStats) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeStats.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeStats.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *NodeStats) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeStats.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *NodeStats) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeStats.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeStats) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeStats.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeStats proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeStats) GetLatency_90() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Latency_90
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeStats) GetAuditSuccessRatio() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuditSuccessRatio
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeStats) GetUptimeRatio() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UptimeRatio
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeStats) GetAuditCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuditCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeStats) GetAuditSuccessCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuditSuccessCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeStats) GetUptimeCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UptimeCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeStats) GetUptimeSuccessCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UptimeSuccessCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:41:51 +00:00
|
|
|
// NodeOperator contains info about the storage node operator
|
|
|
|
type NodeOperator struct {
|
|
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
|
Wallet string `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeOperator) Reset() { *m = NodeOperator{} }
|
|
|
|
func (m *NodeOperator) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeOperator) ProtoMessage() {}
|
|
|
|
func (*NodeOperator) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{3}
|
|
|
|
}
|
|
|
|
func (m *NodeOperator) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeOperator.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeOperator.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *NodeOperator) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeOperator.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *NodeOperator) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeOperator.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeOperator) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeOperator.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeOperator proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeOperator) GetEmail() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Email
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeOperator) GetWallet() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Wallet
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// NodeCapacity contains all relevant data about a nodes ability to store data
|
|
|
|
type NodeCapacity struct {
|
|
|
|
FreeBandwidth int64 `protobuf:"varint,1,opt,name=free_bandwidth,json=freeBandwidth,proto3" json:"free_bandwidth,omitempty"`
|
|
|
|
FreeDisk int64 `protobuf:"varint,2,opt,name=free_disk,json=freeDisk,proto3" json:"free_disk,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeCapacity) Reset() { *m = NodeCapacity{} }
|
|
|
|
func (m *NodeCapacity) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeCapacity) ProtoMessage() {}
|
|
|
|
func (*NodeCapacity) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{4}
|
|
|
|
}
|
|
|
|
func (m *NodeCapacity) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeCapacity.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeCapacity.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *NodeCapacity) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeCapacity.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *NodeCapacity) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeCapacity.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeCapacity) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeCapacity.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeCapacity proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeCapacity) GetFreeBandwidth() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FreeBandwidth
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeCapacity) GetFreeDisk() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FreeDisk
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: use NodeOperator instead
|
2018-11-29 18:39:27 +00:00
|
|
|
type NodeMetadata struct {
|
|
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
|
Wallet string `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeMetadata) Reset() { *m = NodeMetadata{} }
|
|
|
|
func (m *NodeMetadata) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeMetadata) ProtoMessage() {}
|
|
|
|
func (*NodeMetadata) Descriptor() ([]byte, []int) {
|
2019-02-25 18:41:51 +00:00
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{5}
|
2018-11-29 18:39:27 +00:00
|
|
|
}
|
|
|
|
func (m *NodeMetadata) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeMetadata.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeMetadata.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *NodeMetadata) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeMetadata.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *NodeMetadata) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeMetadata.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeMetadata) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeMetadata.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeMetadata proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeMetadata) GetEmail() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Email
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeMetadata) GetWallet() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Wallet
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:41:51 +00:00
|
|
|
// Deprecated: use NodeCapacity instead
|
|
|
|
type NodeRestrictions struct {
|
|
|
|
FreeBandwidth int64 `protobuf:"varint,1,opt,name=free_bandwidth,json=freeBandwidth,proto3" json:"free_bandwidth,omitempty"`
|
|
|
|
FreeDisk int64 `protobuf:"varint,2,opt,name=free_disk,json=freeDisk,proto3" json:"free_disk,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeRestrictions) Reset() { *m = NodeRestrictions{} }
|
|
|
|
func (m *NodeRestrictions) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeRestrictions) ProtoMessage() {}
|
|
|
|
func (*NodeRestrictions) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_node_706cf6fe66bd25bc, []int{6}
|
|
|
|
}
|
|
|
|
func (m *NodeRestrictions) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeRestrictions.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeRestrictions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeRestrictions.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *NodeRestrictions) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeRestrictions.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *NodeRestrictions) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeRestrictions.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeRestrictions) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeRestrictions.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeRestrictions proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeRestrictions) GetFreeBandwidth() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FreeBandwidth
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeRestrictions) GetFreeDisk() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.FreeDisk
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-11-29 18:39:27 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Node)(nil), "node.Node")
|
|
|
|
proto.RegisterType((*NodeAddress)(nil), "node.NodeAddress")
|
|
|
|
proto.RegisterType((*NodeStats)(nil), "node.NodeStats")
|
2019-02-25 18:41:51 +00:00
|
|
|
proto.RegisterType((*NodeOperator)(nil), "node.NodeOperator")
|
|
|
|
proto.RegisterType((*NodeCapacity)(nil), "node.NodeCapacity")
|
2018-11-29 18:39:27 +00:00
|
|
|
proto.RegisterType((*NodeMetadata)(nil), "node.NodeMetadata")
|
2019-02-25 18:41:51 +00:00
|
|
|
proto.RegisterType((*NodeRestrictions)(nil), "node.NodeRestrictions")
|
2018-11-29 18:39:27 +00:00
|
|
|
proto.RegisterEnum("node.NodeType", NodeType_name, NodeType_value)
|
|
|
|
proto.RegisterEnum("node.NodeTransport", NodeTransport_name, NodeTransport_value)
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:41:51 +00:00
|
|
|
func init() { proto.RegisterFile("node.proto", fileDescriptor_node_706cf6fe66bd25bc) }
|
|
|
|
|
|
|
|
var fileDescriptor_node_706cf6fe66bd25bc = []byte{
|
|
|
|
// 683 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xc1, 0x4e, 0xdb, 0x4a,
|
|
|
|
0x14, 0x86, 0x49, 0x6c, 0x9c, 0xf8, 0xd8, 0xc9, 0x35, 0x03, 0x42, 0xd6, 0xbd, 0xba, 0x97, 0x10,
|
|
|
|
0x74, 0xd5, 0x88, 0x4a, 0x29, 0xa5, 0x2b, 0xaa, 0x6e, 0x92, 0x80, 0x50, 0x54, 0x37, 0x89, 0x26,
|
|
|
|
0x86, 0x05, 0x1b, 0x6b, 0x88, 0xa7, 0x74, 0x44, 0x88, 0x2d, 0x7b, 0x2c, 0x94, 0x37, 0xec, 0xa2,
|
|
|
|
0x4f, 0xd0, 0x05, 0xaf, 0xd0, 0x57, 0xa8, 0x66, 0xc6, 0x26, 0x76, 0xab, 0x2e, 0x2a, 0x75, 0x17,
|
|
|
|
0xff, 0xff, 0x37, 0xe7, 0x4c, 0xce, 0x7f, 0x6c, 0x80, 0x55, 0x14, 0xd2, 0x7e, 0x9c, 0x44, 0x3c,
|
|
|
|
0x42, 0xba, 0xf8, 0xfd, 0x37, 0xdc, 0x45, 0x77, 0x91, 0x52, 0xba, 0xdf, 0x34, 0xd0, 0x27, 0x51,
|
|
|
|
0x48, 0xd1, 0x7f, 0x50, 0x67, 0xa1, 0x5b, 0xeb, 0xd4, 0x7a, 0xf6, 0xb0, 0xfd, 0xf9, 0xe9, 0x60,
|
|
|
|
0xeb, 0xeb, 0xd3, 0x81, 0x21, 0x9c, 0xf1, 0x39, 0xae, 0xb3, 0x10, 0xbd, 0x84, 0x06, 0x09, 0xc3,
|
|
|
|
0x84, 0xa6, 0xa9, 0x5b, 0xef, 0xd4, 0x7a, 0xd6, 0xe9, 0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