2018-11-21 22:01:09 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
2018-11-21 17:31:27 +00:00
|
|
|
// source: inspector.proto
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
2018-12-14 20:17:30 +00:00
|
|
|
import (
|
2019-03-27 19:44:18 +00:00
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
duration "github.com/golang/protobuf/ptypes/duration"
|
|
|
|
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
2018-12-14 20:17:30 +00:00
|
|
|
grpc "google.golang.org/grpc"
|
2019-03-27 19:44:18 +00:00
|
|
|
math "math"
|
2018-12-14 20:17:30 +00:00
|
|
|
)
|
2018-11-21 17:31:27 +00:00
|
|
|
|
|
|
|
// 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.
|
2018-11-21 22:01:09 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
2019-03-15 20:21:52 +00:00
|
|
|
// ListSegments
|
2019-03-18 10:55:06 +00:00
|
|
|
type ListIrreparableSegmentsRequest struct {
|
2019-03-15 20:21:52 +00:00
|
|
|
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) Reset() { *m = ListIrreparableSegmentsRequest{} }
|
|
|
|
func (m *ListIrreparableSegmentsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListIrreparableSegmentsRequest) ProtoMessage() {}
|
|
|
|
func (*ListIrreparableSegmentsRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{0}
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListIrreparableSegmentsRequest.Unmarshal(m, b)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListIrreparableSegmentsRequest.Marshal(b, m, deterministic)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListIrreparableSegmentsRequest.Merge(m, src)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListIrreparableSegmentsRequest.Size(m)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListIrreparableSegmentsRequest.DiscardUnknown(m)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
var xxx_messageInfo_ListIrreparableSegmentsRequest proto.InternalMessageInfo
|
2019-03-15 20:21:52 +00:00
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) GetLimit() int32 {
|
2019-03-15 20:21:52 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Limit
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsRequest) GetOffset() int32 {
|
2019-03-15 20:21:52 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Offset
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type IrreparableSegment struct {
|
|
|
|
Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
|
|
SegmentDetail *Pointer `protobuf:"bytes,2,opt,name=segment_detail,json=segmentDetail,proto3" json:"segment_detail,omitempty"`
|
|
|
|
LostPieces int32 `protobuf:"varint,3,opt,name=lost_pieces,json=lostPieces,proto3" json:"lost_pieces,omitempty"`
|
|
|
|
LastRepairAttempt int64 `protobuf:"varint,4,opt,name=last_repair_attempt,json=lastRepairAttempt,proto3" json:"last_repair_attempt,omitempty"`
|
|
|
|
RepairAttemptCount int64 `protobuf:"varint,5,opt,name=repair_attempt_count,json=repairAttemptCount,proto3" json:"repair_attempt_count,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IrreparableSegment) Reset() { *m = IrreparableSegment{} }
|
|
|
|
func (m *IrreparableSegment) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*IrreparableSegment) ProtoMessage() {}
|
|
|
|
func (*IrreparableSegment) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{1}
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
func (m *IrreparableSegment) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_IrreparableSegment.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *IrreparableSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_IrreparableSegment.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *IrreparableSegment) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_IrreparableSegment.Merge(m, src)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
func (m *IrreparableSegment) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_IrreparableSegment.Size(m)
|
|
|
|
}
|
|
|
|
func (m *IrreparableSegment) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_IrreparableSegment.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_IrreparableSegment proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *IrreparableSegment) GetPath() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IrreparableSegment) GetSegmentDetail() *Pointer {
|
|
|
|
if m != nil {
|
|
|
|
return m.SegmentDetail
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IrreparableSegment) GetLostPieces() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.LostPieces
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IrreparableSegment) GetLastRepairAttempt() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.LastRepairAttempt
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *IrreparableSegment) GetRepairAttemptCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.RepairAttemptCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
type ListIrreparableSegmentsResponse struct {
|
2019-03-15 20:21:52 +00:00
|
|
|
Segments []*IrreparableSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsResponse) Reset() { *m = ListIrreparableSegmentsResponse{} }
|
|
|
|
func (m *ListIrreparableSegmentsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListIrreparableSegmentsResponse) ProtoMessage() {}
|
|
|
|
func (*ListIrreparableSegmentsResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{2}
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListIrreparableSegmentsResponse.Unmarshal(m, b)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListIrreparableSegmentsResponse.Marshal(b, m, deterministic)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListIrreparableSegmentsResponse.Merge(m, src)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListIrreparableSegmentsResponse.Size(m)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListIrreparableSegmentsResponse.DiscardUnknown(m)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
var xxx_messageInfo_ListIrreparableSegmentsResponse proto.InternalMessageInfo
|
2019-03-15 20:21:52 +00:00
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func (m *ListIrreparableSegmentsResponse) GetSegments() []*IrreparableSegment {
|
2019-03-15 20:21:52 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Segments
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-11-21 22:01:09 +00:00
|
|
|
// GetStats
|
|
|
|
type GetStatsRequest struct {
|
2018-11-29 18:39:27 +00:00
|
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
2018-11-21 22:01:09 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetStatsRequest) Reset() { *m = GetStatsRequest{} }
|
|
|
|
func (m *GetStatsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetStatsRequest) ProtoMessage() {}
|
|
|
|
func (*GetStatsRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{3}
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *GetStatsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetStatsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetStatsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *GetStatsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetStatsRequest.Merge(m, src)
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *GetStatsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetStatsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetStatsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetStatsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetStatsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type GetStatsResponse struct {
|
|
|
|
AuditCount int64 `protobuf:"varint,1,opt,name=audit_count,json=auditCount,proto3" json:"audit_count,omitempty"`
|
2018-12-04 18:47:58 +00:00
|
|
|
AuditRatio float64 `protobuf:"fixed64,2,opt,name=audit_ratio,json=auditRatio,proto3" json:"audit_ratio,omitempty"`
|
|
|
|
UptimeCount int64 `protobuf:"varint,3,opt,name=uptime_count,json=uptimeCount,proto3" json:"uptime_count,omitempty"`
|
|
|
|
UptimeRatio float64 `protobuf:"fixed64,4,opt,name=uptime_ratio,json=uptimeRatio,proto3" json:"uptime_ratio,omitempty"`
|
2018-11-21 22:01:09 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetStatsResponse) Reset() { *m = GetStatsResponse{} }
|
|
|
|
func (m *GetStatsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetStatsResponse) ProtoMessage() {}
|
|
|
|
func (*GetStatsResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{4}
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *GetStatsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetStatsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetStatsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *GetStatsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetStatsResponse.Merge(m, src)
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *GetStatsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetStatsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetStatsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetStatsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetStatsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *GetStatsResponse) GetAuditCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuditCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-12-04 18:47:58 +00:00
|
|
|
func (m *GetStatsResponse) GetAuditRatio() float64 {
|
2018-11-21 22:01:09 +00:00
|
|
|
if m != nil {
|
2018-12-04 18:47:58 +00:00
|
|
|
return m.AuditRatio
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-12-04 18:47:58 +00:00
|
|
|
func (m *GetStatsResponse) GetUptimeCount() int64 {
|
2018-11-21 22:01:09 +00:00
|
|
|
if m != nil {
|
2018-12-04 18:47:58 +00:00
|
|
|
return m.UptimeCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetStatsResponse) GetUptimeRatio() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UptimeRatio
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// CreateStats
|
|
|
|
type CreateStatsRequest struct {
|
2018-11-29 18:39:27 +00:00
|
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
2018-11-21 22:01:09 +00:00
|
|
|
AuditCount int64 `protobuf:"varint,2,opt,name=audit_count,json=auditCount,proto3" json:"audit_count,omitempty"`
|
|
|
|
AuditSuccessCount int64 `protobuf:"varint,3,opt,name=audit_success_count,json=auditSuccessCount,proto3" json:"audit_success_count,omitempty"`
|
|
|
|
UptimeCount int64 `protobuf:"varint,4,opt,name=uptime_count,json=uptimeCount,proto3" json:"uptime_count,omitempty"`
|
|
|
|
UptimeSuccessCount int64 `protobuf:"varint,5,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 *CreateStatsRequest) Reset() { *m = CreateStatsRequest{} }
|
|
|
|
func (m *CreateStatsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CreateStatsRequest) ProtoMessage() {}
|
|
|
|
func (*CreateStatsRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{5}
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *CreateStatsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CreateStatsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CreateStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CreateStatsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *CreateStatsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CreateStatsRequest.Merge(m, src)
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *CreateStatsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CreateStatsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CreateStatsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateStatsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateStatsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *CreateStatsRequest) GetAuditCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuditCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateStatsRequest) GetAuditSuccessCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AuditSuccessCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateStatsRequest) GetUptimeCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UptimeCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateStatsRequest) GetUptimeSuccessCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UptimeSuccessCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateStatsResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateStatsResponse) Reset() { *m = CreateStatsResponse{} }
|
|
|
|
func (m *CreateStatsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CreateStatsResponse) ProtoMessage() {}
|
|
|
|
func (*CreateStatsResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{6}
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *CreateStatsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CreateStatsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CreateStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CreateStatsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *CreateStatsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CreateStatsResponse.Merge(m, src)
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
func (m *CreateStatsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CreateStatsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CreateStatsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateStatsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateStatsResponse proto.InternalMessageInfo
|
2018-11-21 17:31:27 +00:00
|
|
|
|
|
|
|
// CountNodes
|
|
|
|
type CountNodesResponse struct {
|
2019-01-14 18:47:22 +00:00
|
|
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
2018-11-21 17:31:27 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CountNodesResponse) Reset() { *m = CountNodesResponse{} }
|
|
|
|
func (m *CountNodesResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CountNodesResponse) ProtoMessage() {}
|
|
|
|
func (*CountNodesResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{7}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *CountNodesResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CountNodesResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CountNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CountNodesResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *CountNodesResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CountNodesResponse.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *CountNodesResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CountNodesResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CountNodesResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CountNodesResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CountNodesResponse proto.InternalMessageInfo
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
func (m *CountNodesResponse) GetCount() int64 {
|
2018-11-21 17:31:27 +00:00
|
|
|
if m != nil {
|
2019-01-14 18:47:22 +00:00
|
|
|
return m.Count
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type CountNodesRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CountNodesRequest) Reset() { *m = CountNodesRequest{} }
|
|
|
|
func (m *CountNodesRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CountNodesRequest) ProtoMessage() {}
|
|
|
|
func (*CountNodesRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{8}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *CountNodesRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CountNodesRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CountNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CountNodesRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *CountNodesRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CountNodesRequest.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *CountNodesRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CountNodesRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CountNodesRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CountNodesRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CountNodesRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// GetBuckets
|
|
|
|
type GetBucketsRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetBucketsRequest) Reset() { *m = GetBucketsRequest{} }
|
|
|
|
func (m *GetBucketsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetBucketsRequest) ProtoMessage() {}
|
|
|
|
func (*GetBucketsRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{9}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetBucketsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetBucketsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *GetBucketsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetBucketsRequest.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetBucketsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetBucketsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetBucketsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetBucketsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type GetBucketsResponse struct {
|
|
|
|
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
|
2019-01-28 22:53:37 +00:00
|
|
|
Ids []NodeID `protobuf:"bytes,2,rep,name=ids,proto3,customtype=NodeID" json:"ids,omitempty"`
|
2018-11-21 17:31:27 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetBucketsResponse) Reset() { *m = GetBucketsResponse{} }
|
|
|
|
func (m *GetBucketsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetBucketsResponse) ProtoMessage() {}
|
|
|
|
func (*GetBucketsResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{10}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetBucketsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetBucketsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *GetBucketsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetBucketsResponse.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetBucketsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetBucketsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetBucketsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetBucketsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *GetBucketsResponse) GetTotal() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Total
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetBucket
|
|
|
|
type GetBucketRequest struct {
|
2018-11-29 18:39:27 +00:00
|
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
2018-11-21 17:31:27 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetBucketRequest) Reset() { *m = GetBucketRequest{} }
|
|
|
|
func (m *GetBucketRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetBucketRequest) ProtoMessage() {}
|
|
|
|
func (*GetBucketRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{11}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetBucketRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetBucketRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *GetBucketRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetBucketRequest.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetBucketRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetBucketRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetBucketRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetBucketRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type GetBucketResponse struct {
|
2018-11-29 18:39:27 +00:00
|
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
2019-01-28 22:53:37 +00:00
|
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
2018-11-21 17:31:27 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetBucketResponse) Reset() { *m = GetBucketResponse{} }
|
|
|
|
func (m *GetBucketResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetBucketResponse) ProtoMessage() {}
|
|
|
|
func (*GetBucketResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{12}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GetBucketResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GetBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GetBucketResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *GetBucketResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GetBucketResponse.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *GetBucketResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GetBucketResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GetBucketResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GetBucketResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetBucketResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *GetBucketResponse) GetNodes() []*Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bucket struct {
|
2019-01-28 22:53:37 +00:00
|
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
2018-11-21 17:31:27 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Bucket) Reset() { *m = Bucket{} }
|
|
|
|
func (m *Bucket) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Bucket) ProtoMessage() {}
|
|
|
|
func (*Bucket) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{13}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *Bucket) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Bucket.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Bucket.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *Bucket) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Bucket.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *Bucket) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Bucket.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Bucket) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Bucket.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Bucket proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Bucket) GetNodes() []*Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type BucketList struct {
|
2019-01-28 22:53:37 +00:00
|
|
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
2018-11-21 17:31:27 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BucketList) Reset() { *m = BucketList{} }
|
|
|
|
func (m *BucketList) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BucketList) ProtoMessage() {}
|
|
|
|
func (*BucketList) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{14}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *BucketList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_BucketList.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *BucketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_BucketList.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *BucketList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BucketList.Merge(m, src)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
func (m *BucketList) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_BucketList.Size(m)
|
|
|
|
}
|
|
|
|
func (m *BucketList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BucketList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BucketList proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *BucketList) GetNodes() []*Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-11-27 22:50:52 +00:00
|
|
|
// PingNode
|
|
|
|
type PingNodeRequest struct {
|
2018-11-29 18:39:27 +00:00
|
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
2018-11-27 22:50:52 +00:00
|
|
|
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 *PingNodeRequest) Reset() { *m = PingNodeRequest{} }
|
|
|
|
func (m *PingNodeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PingNodeRequest) ProtoMessage() {}
|
|
|
|
func (*PingNodeRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{15}
|
2018-11-27 22:50:52 +00:00
|
|
|
}
|
|
|
|
func (m *PingNodeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PingNodeRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PingNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PingNodeRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *PingNodeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PingNodeRequest.Merge(m, src)
|
2018-11-27 22:50:52 +00:00
|
|
|
}
|
|
|
|
func (m *PingNodeRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PingNodeRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PingNodeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PingNodeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PingNodeRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PingNodeRequest) GetAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type PingNodeResponse struct {
|
|
|
|
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PingNodeResponse) Reset() { *m = PingNodeResponse{} }
|
|
|
|
func (m *PingNodeResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PingNodeResponse) ProtoMessage() {}
|
|
|
|
func (*PingNodeResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{16}
|
2018-11-27 22:50:52 +00:00
|
|
|
}
|
|
|
|
func (m *PingNodeResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PingNodeResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *PingNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PingNodeResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *PingNodeResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PingNodeResponse.Merge(m, src)
|
2018-11-27 22:50:52 +00:00
|
|
|
}
|
|
|
|
func (m *PingNodeResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PingNodeResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *PingNodeResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PingNodeResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_PingNodeResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *PingNodeResponse) GetOk() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ok
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2018-12-04 21:39:28 +00:00
|
|
|
type LookupNodeRequest struct {
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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 *LookupNodeRequest) Reset() { *m = LookupNodeRequest{} }
|
|
|
|
func (m *LookupNodeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LookupNodeRequest) ProtoMessage() {}
|
|
|
|
func (*LookupNodeRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{17}
|
2018-12-04 21:39:28 +00:00
|
|
|
}
|
|
|
|
func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LookupNodeRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LookupNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LookupNodeRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *LookupNodeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LookupNodeRequest.Merge(m, src)
|
2018-12-04 21:39:28 +00:00
|
|
|
}
|
|
|
|
func (m *LookupNodeRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LookupNodeRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LookupNodeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LookupNodeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LookupNodeRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LookupNodeRequest) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LookupNodeRequest) GetAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type LookupNodeResponse struct {
|
2019-01-28 22:53:37 +00:00
|
|
|
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
|
|
|
|
Meta *NodeMetadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
|
2018-12-04 21:39:28 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LookupNodeResponse) Reset() { *m = LookupNodeResponse{} }
|
|
|
|
func (m *LookupNodeResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LookupNodeResponse) ProtoMessage() {}
|
|
|
|
func (*LookupNodeResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{18}
|
2018-12-04 21:39:28 +00:00
|
|
|
}
|
|
|
|
func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LookupNodeResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LookupNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LookupNodeResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *LookupNodeResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LookupNodeResponse.Merge(m, src)
|
2018-12-04 21:39:28 +00:00
|
|
|
}
|
|
|
|
func (m *LookupNodeResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LookupNodeResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LookupNodeResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LookupNodeResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LookupNodeResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LookupNodeResponse) GetNode() *Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Node
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LookupNodeResponse) GetMeta() *NodeMetadata {
|
|
|
|
if m != nil {
|
|
|
|
return m.Meta
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:41:51 +00:00
|
|
|
type NodeInfoRequest struct {
|
2019-03-02 07:34:08 +00:00
|
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
|
|
Address *NodeAddress `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
2019-02-25 18:41:51 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeInfoRequest) Reset() { *m = NodeInfoRequest{} }
|
|
|
|
func (m *NodeInfoRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeInfoRequest) ProtoMessage() {}
|
|
|
|
func (*NodeInfoRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{19}
|
2019-02-25 18:41:51 +00:00
|
|
|
}
|
|
|
|
func (m *NodeInfoRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeInfoRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeInfoRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *NodeInfoRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeInfoRequest.Merge(m, src)
|
2019-02-25 18:41:51 +00:00
|
|
|
}
|
|
|
|
func (m *NodeInfoRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeInfoRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeInfoRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeInfoRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeInfoRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeInfoRequest) GetAddress() *NodeAddress {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeInfoResponse struct {
|
2019-03-02 07:34:08 +00:00
|
|
|
Type NodeType `protobuf:"varint,1,opt,name=type,proto3,enum=node.NodeType" json:"type,omitempty"`
|
|
|
|
Operator *NodeOperator `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
|
|
|
|
Capacity *NodeCapacity `protobuf:"bytes,3,opt,name=capacity,proto3" json:"capacity,omitempty"`
|
2019-02-25 18:41:51 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeInfoResponse) Reset() { *m = NodeInfoResponse{} }
|
|
|
|
func (m *NodeInfoResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*NodeInfoResponse) ProtoMessage() {}
|
|
|
|
func (*NodeInfoResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{20}
|
2019-02-25 18:41:51 +00:00
|
|
|
}
|
|
|
|
func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_NodeInfoResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_NodeInfoResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *NodeInfoResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_NodeInfoResponse.Merge(m, src)
|
2019-02-25 18:41:51 +00:00
|
|
|
}
|
|
|
|
func (m *NodeInfoResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_NodeInfoResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *NodeInfoResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_NodeInfoResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_NodeInfoResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *NodeInfoResponse) GetType() NodeType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return NodeType_INVALID
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeInfoResponse) GetOperator() *NodeOperator {
|
|
|
|
if m != nil {
|
|
|
|
return m.Operator
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *NodeInfoResponse) GetCapacity() *NodeCapacity {
|
|
|
|
if m != nil {
|
|
|
|
return m.Capacity
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-01-28 22:53:37 +00:00
|
|
|
type FindNearRequest struct {
|
|
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
|
|
Start NodeID `protobuf:"bytes,2,opt,name=start,proto3,customtype=NodeID" json:"start"`
|
|
|
|
Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FindNearRequest) Reset() { *m = FindNearRequest{} }
|
|
|
|
func (m *FindNearRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FindNearRequest) ProtoMessage() {}
|
|
|
|
func (*FindNearRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{21}
|
2019-01-28 22:53:37 +00:00
|
|
|
}
|
|
|
|
func (m *FindNearRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_FindNearRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *FindNearRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_FindNearRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *FindNearRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FindNearRequest.Merge(m, src)
|
2019-01-28 22:53:37 +00:00
|
|
|
}
|
|
|
|
func (m *FindNearRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_FindNearRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *FindNearRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FindNearRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_FindNearRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FindNearRequest) GetLimit() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Limit
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type FindNearResponse struct {
|
|
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FindNearResponse) Reset() { *m = FindNearResponse{} }
|
|
|
|
func (m *FindNearResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FindNearResponse) ProtoMessage() {}
|
|
|
|
func (*FindNearResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{22}
|
2019-01-28 22:53:37 +00:00
|
|
|
}
|
|
|
|
func (m *FindNearResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_FindNearResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *FindNearResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_FindNearResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *FindNearResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FindNearResponse.Merge(m, src)
|
2019-01-28 22:53:37 +00:00
|
|
|
}
|
|
|
|
func (m *FindNearResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_FindNearResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *FindNearResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FindNearResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_FindNearResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *FindNearResponse) GetNodes() []*Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-02-28 19:55:27 +00:00
|
|
|
type DumpNodesRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DumpNodesRequest) Reset() { *m = DumpNodesRequest{} }
|
|
|
|
func (m *DumpNodesRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DumpNodesRequest) ProtoMessage() {}
|
|
|
|
func (*DumpNodesRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{23}
|
2019-02-28 19:55:27 +00:00
|
|
|
}
|
|
|
|
func (m *DumpNodesRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DumpNodesRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DumpNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DumpNodesRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *DumpNodesRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DumpNodesRequest.Merge(m, src)
|
2019-02-28 19:55:27 +00:00
|
|
|
}
|
|
|
|
func (m *DumpNodesRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DumpNodesRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DumpNodesRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DumpNodesRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DumpNodesRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type DumpNodesResponse struct {
|
|
|
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DumpNodesResponse) Reset() { *m = DumpNodesResponse{} }
|
|
|
|
func (m *DumpNodesResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DumpNodesResponse) ProtoMessage() {}
|
|
|
|
func (*DumpNodesResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{24}
|
2019-02-28 19:55:27 +00:00
|
|
|
}
|
|
|
|
func (m *DumpNodesResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DumpNodesResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DumpNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DumpNodesResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *DumpNodesResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DumpNodesResponse.Merge(m, src)
|
2019-02-28 19:55:27 +00:00
|
|
|
}
|
|
|
|
func (m *DumpNodesResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DumpNodesResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DumpNodesResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DumpNodesResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DumpNodesResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DumpNodesResponse) GetNodes() []*Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-03-05 20:48:37 +00:00
|
|
|
type StatsRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsRequest) Reset() { *m = StatsRequest{} }
|
|
|
|
func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatsRequest) ProtoMessage() {}
|
|
|
|
func (*StatsRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{25}
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *StatsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatsRequest.Merge(m, src)
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type StatSummaryResponse struct {
|
|
|
|
UsedSpace int64 `protobuf:"varint,1,opt,name=used_space,json=usedSpace,proto3" json:"used_space,omitempty"`
|
|
|
|
AvailableSpace int64 `protobuf:"varint,2,opt,name=available_space,json=availableSpace,proto3" json:"available_space,omitempty"`
|
2019-03-27 19:44:18 +00:00
|
|
|
UsedIngress int64 `protobuf:"varint,3,opt,name=used_ingress,json=usedIngress,proto3" json:"used_ingress,omitempty"`
|
|
|
|
UsedEgress int64 `protobuf:"varint,4,opt,name=used_egress,json=usedEgress,proto3" json:"used_egress,omitempty"`
|
|
|
|
UsedBandwidth int64 `protobuf:"varint,5,opt,name=used_bandwidth,json=usedBandwidth,proto3" json:"used_bandwidth,omitempty"`
|
|
|
|
AvailableBandwidth int64 `protobuf:"varint,6,opt,name=available_bandwidth,json=availableBandwidth,proto3" json:"available_bandwidth,omitempty"`
|
2019-03-05 20:48:37 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatSummaryResponse) Reset() { *m = StatSummaryResponse{} }
|
|
|
|
func (m *StatSummaryResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatSummaryResponse) ProtoMessage() {}
|
|
|
|
func (*StatSummaryResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{26}
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *StatSummaryResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatSummaryResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StatSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatSummaryResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *StatSummaryResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatSummaryResponse.Merge(m, src)
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *StatSummaryResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatSummaryResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatSummaryResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatSummaryResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatSummaryResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StatSummaryResponse) GetUsedSpace() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UsedSpace
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatSummaryResponse) GetAvailableSpace() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AvailableSpace
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *StatSummaryResponse) GetUsedIngress() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UsedIngress
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatSummaryResponse) GetUsedEgress() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UsedEgress
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-03-05 20:48:37 +00:00
|
|
|
func (m *StatSummaryResponse) GetUsedBandwidth() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.UsedBandwidth
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatSummaryResponse) GetAvailableBandwidth() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AvailableBandwidth
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type DashboardRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DashboardRequest) Reset() { *m = DashboardRequest{} }
|
|
|
|
func (m *DashboardRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DashboardRequest) ProtoMessage() {}
|
|
|
|
func (*DashboardRequest) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{27}
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *DashboardRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DashboardRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DashboardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DashboardRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *DashboardRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DashboardRequest.Merge(m, src)
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *DashboardRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DashboardRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DashboardRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DashboardRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DashboardRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type DashboardResponse struct {
|
2019-03-18 10:55:06 +00:00
|
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
2019-03-05 20:48:37 +00:00
|
|
|
NodeConnections int64 `protobuf:"varint,2,opt,name=node_connections,json=nodeConnections,proto3" json:"node_connections,omitempty"`
|
|
|
|
BootstrapAddress string `protobuf:"bytes,3,opt,name=bootstrap_address,json=bootstrapAddress,proto3" json:"bootstrap_address,omitempty"`
|
|
|
|
InternalAddress string `protobuf:"bytes,4,opt,name=internal_address,json=internalAddress,proto3" json:"internal_address,omitempty"`
|
|
|
|
ExternalAddress string `protobuf:"bytes,5,opt,name=external_address,json=externalAddress,proto3" json:"external_address,omitempty"`
|
|
|
|
Stats *StatSummaryResponse `protobuf:"bytes,6,opt,name=stats,proto3" json:"stats,omitempty"`
|
2019-03-22 13:27:59 +00:00
|
|
|
Uptime *duration.Duration `protobuf:"bytes,7,opt,name=uptime,proto3" json:"uptime,omitempty"`
|
|
|
|
LastPinged *timestamp.Timestamp `protobuf:"bytes,8,opt,name=last_pinged,json=lastPinged,proto3" json:"last_pinged,omitempty"`
|
|
|
|
LastQueried *timestamp.Timestamp `protobuf:"bytes,9,opt,name=last_queried,json=lastQueried,proto3" json:"last_queried,omitempty"`
|
2019-03-05 20:48:37 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DashboardResponse) Reset() { *m = DashboardResponse{} }
|
|
|
|
func (m *DashboardResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DashboardResponse) ProtoMessage() {}
|
|
|
|
func (*DashboardResponse) Descriptor() ([]byte, []int) {
|
2019-03-27 19:44:18 +00:00
|
|
|
return fileDescriptor_a07d9034b2dd9d26, []int{28}
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *DashboardResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DashboardResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DashboardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DashboardResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
2019-03-27 19:44:18 +00:00
|
|
|
func (m *DashboardResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DashboardResponse.Merge(m, src)
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
func (m *DashboardResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DashboardResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DashboardResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DashboardResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DashboardResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DashboardResponse) GetNodeConnections() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.NodeConnections
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DashboardResponse) GetBootstrapAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.BootstrapAddress
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DashboardResponse) GetInternalAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.InternalAddress
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DashboardResponse) GetExternalAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.ExternalAddress
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DashboardResponse) GetStats() *StatSummaryResponse {
|
|
|
|
if m != nil {
|
|
|
|
return m.Stats
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-03-22 13:27:59 +00:00
|
|
|
func (m *DashboardResponse) GetUptime() *duration.Duration {
|
2019-03-05 20:48:37 +00:00
|
|
|
if m != nil {
|
2019-03-22 13:27:59 +00:00
|
|
|
return m.Uptime
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
2019-03-22 13:27:59 +00:00
|
|
|
return nil
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
|
2019-03-22 13:27:59 +00:00
|
|
|
func (m *DashboardResponse) GetLastPinged() *timestamp.Timestamp {
|
2019-03-05 20:48:37 +00:00
|
|
|
if m != nil {
|
2019-03-22 13:27:59 +00:00
|
|
|
return m.LastPinged
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DashboardResponse) GetLastQueried() *timestamp.Timestamp {
|
|
|
|
if m != nil {
|
|
|
|
return m.LastQueried
|
2019-03-05 20:48:37 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-11-21 17:31:27 +00:00
|
|
|
func init() {
|
2019-03-18 10:55:06 +00:00
|
|
|
proto.RegisterType((*ListIrreparableSegmentsRequest)(nil), "inspector.ListIrreparableSegmentsRequest")
|
2019-03-15 20:21:52 +00:00
|
|
|
proto.RegisterType((*IrreparableSegment)(nil), "inspector.IrreparableSegment")
|
2019-03-18 10:55:06 +00:00
|
|
|
proto.RegisterType((*ListIrreparableSegmentsResponse)(nil), "inspector.ListIrreparableSegmentsResponse")
|
2018-11-21 22:01:09 +00:00
|
|
|
proto.RegisterType((*GetStatsRequest)(nil), "inspector.GetStatsRequest")
|
|
|
|
proto.RegisterType((*GetStatsResponse)(nil), "inspector.GetStatsResponse")
|
|
|
|
proto.RegisterType((*CreateStatsRequest)(nil), "inspector.CreateStatsRequest")
|
|
|
|
proto.RegisterType((*CreateStatsResponse)(nil), "inspector.CreateStatsResponse")
|
2018-11-21 17:31:27 +00:00
|
|
|
proto.RegisterType((*CountNodesResponse)(nil), "inspector.CountNodesResponse")
|
|
|
|
proto.RegisterType((*CountNodesRequest)(nil), "inspector.CountNodesRequest")
|
|
|
|
proto.RegisterType((*GetBucketsRequest)(nil), "inspector.GetBucketsRequest")
|
|
|
|
proto.RegisterType((*GetBucketsResponse)(nil), "inspector.GetBucketsResponse")
|
|
|
|
proto.RegisterType((*GetBucketRequest)(nil), "inspector.GetBucketRequest")
|
|
|
|
proto.RegisterType((*GetBucketResponse)(nil), "inspector.GetBucketResponse")
|
|
|
|
proto.RegisterType((*Bucket)(nil), "inspector.Bucket")
|
|
|
|
proto.RegisterType((*BucketList)(nil), "inspector.BucketList")
|
2018-11-27 22:50:52 +00:00
|
|
|
proto.RegisterType((*PingNodeRequest)(nil), "inspector.PingNodeRequest")
|
|
|
|
proto.RegisterType((*PingNodeResponse)(nil), "inspector.PingNodeResponse")
|
2018-12-04 21:39:28 +00:00
|
|
|
proto.RegisterType((*LookupNodeRequest)(nil), "inspector.LookupNodeRequest")
|
|
|
|
proto.RegisterType((*LookupNodeResponse)(nil), "inspector.LookupNodeResponse")
|
2019-02-25 18:41:51 +00:00
|
|
|
proto.RegisterType((*NodeInfoRequest)(nil), "inspector.NodeInfoRequest")
|
|
|
|
proto.RegisterType((*NodeInfoResponse)(nil), "inspector.NodeInfoResponse")
|
2019-01-28 22:53:37 +00:00
|
|
|
proto.RegisterType((*FindNearRequest)(nil), "inspector.FindNearRequest")
|
|
|
|
proto.RegisterType((*FindNearResponse)(nil), "inspector.FindNearResponse")
|
2019-02-28 19:55:27 +00:00
|
|
|
proto.RegisterType((*DumpNodesRequest)(nil), "inspector.DumpNodesRequest")
|
|
|
|
proto.RegisterType((*DumpNodesResponse)(nil), "inspector.DumpNodesResponse")
|
2019-03-05 20:48:37 +00:00
|
|
|
proto.RegisterType((*StatsRequest)(nil), "inspector.StatsRequest")
|
|
|
|
proto.RegisterType((*StatSummaryResponse)(nil), "inspector.StatSummaryResponse")
|
|
|
|
proto.RegisterType((*DashboardRequest)(nil), "inspector.DashboardRequest")
|
|
|
|
proto.RegisterType((*DashboardResponse)(nil), "inspector.DashboardResponse")
|
|
|
|
}
|
|
|
|
|
2019-03-27 19:44:18 +00:00
|
|
|
func init() { proto.RegisterFile("inspector.proto", fileDescriptor_a07d9034b2dd9d26) }
|
|
|
|
|
|
|
|
var fileDescriptor_a07d9034b2dd9d26 = []byte{
|
|
|
|
// 1370 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcb, 0x72, 0x1b, 0x45,
|
|
|
|
0x14, 0xcd, 0xe8, 0x15, 0xe9, 0xca, 0xd1, 0xa3, 0x65, 0x88, 0x10, 0x89, 0x6d, 0xa6, 0x80, 0x38,
|
|
|
|
0x49, 0x95, 0x12, 0x44, 0x58, 0x04, 0x2a, 0x8b, 0x58, 0x26, 0x89, 0x2a, 0x21, 0x31, 0xe3, 0xb0,
|
|
|
|
0xa1, 0x52, 0xa8, 0x5a, 0x9a, 0xb6, 0x32, 0x65, 0x69, 0x7a, 0x32, 0xdd, 0x0a, 0xf8, 0x0f, 0xf8,
|
|
|
|
0x02, 0x16, 0x6c, 0xf9, 0x09, 0xaa, 0xf8, 0x01, 0x76, 0xec, 0x59, 0x64, 0x43, 0x15, 0xff, 0xc0,
|
|
|
|
0x8e, 0xea, 0xdb, 0x3d, 0x2f, 0x8d, 0x85, 0x5d, 0x14, 0xec, 0x34, 0xe7, 0x9e, 0x3e, 0x7d, 0xef,
|
|
|
|
0xed, 0xee, 0xd3, 0x2d, 0x68, 0x7a, 0xbe, 0x08, 0xd8, 0x54, 0xf2, 0xb0, 0x1f, 0x84, 0x5c, 0x72,
|
|
|
|
0x52, 0x8b, 0x81, 0x1e, 0xcc, 0xf8, 0x8c, 0x6b, 0xb8, 0x07, 0x3e, 0x77, 0x99, 0xf9, 0xdd, 0x0c,
|
|
|
|
0xb8, 0xe7, 0x4b, 0x16, 0xba, 0x13, 0x03, 0x6c, 0xcd,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 0x34, 0x03, 0xb8,
|
|
|
|
0xbc, 0xe6, 0xbf, 0x15, 0xb9, 0x9e, 0x3e, 0x05, 0xff, 0xf8, 0xc7, 0xb5, 0x77, 0xe3, 0x3c, 0x54,
|
|
|
|
0x9d, 0xcc, 0x5e, 0xe9, 0xeb, 0x42, 0x30, 0x99, 0x54, 0xd0, 0x50, 0x3e, 0xfe, 0x3b, 0x00, 0x00,
|
|
|
|
0xff, 0xff, 0xe0, 0xc7, 0x2f, 0x50, 0x9b, 0x0f, 0x00, 0x00,
|
|
|
|
}
|
|
|
|
|
2018-11-21 17:31:27 +00:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
// KadInspectorClient is the client API for KadInspector service.
|
2018-12-14 20:17:30 +00:00
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
2019-01-14 18:47:22 +00:00
|
|
|
type KadInspectorClient interface {
|
|
|
|
// CountNodes returns the number of nodes in the routing table
|
2018-11-21 17:31:27 +00:00
|
|
|
CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error)
|
2019-02-25 18:41:51 +00:00
|
|
|
// PingNode sends a PING RPC to a node and returns its availability
|
2018-11-27 22:50:52 +00:00
|
|
|
PingNode(ctx context.Context, in *PingNodeRequest, opts ...grpc.CallOption) (*PingNodeResponse, error)
|
2018-12-04 21:39:28 +00:00
|
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
|
|
LookupNode(ctx context.Context, in *LookupNodeRequest, opts ...grpc.CallOption) (*LookupNodeResponse, error)
|
2019-02-25 18:41:51 +00:00
|
|
|
// NodeInfo sends a PING RPC to a node and returns its local info
|
|
|
|
NodeInfo(ctx context.Context, in *NodeInfoRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error)
|
2019-01-28 22:53:37 +00:00
|
|
|
// FindNear returns limit number of IDs "near" the Start ID
|
|
|
|
FindNear(ctx context.Context, in *FindNearRequest, opts ...grpc.CallOption) (*FindNearResponse, error)
|
2019-02-28 19:55:27 +00:00
|
|
|
// DumpNodes returns all the nodes in the node database
|
|
|
|
DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
type kadInspectorClient struct {
|
2018-11-21 17:31:27 +00:00
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
func NewKadInspectorClient(cc *grpc.ClientConn) KadInspectorClient {
|
|
|
|
return &kadInspectorClient{cc}
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
func (c *kadInspectorClient) CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error) {
|
2018-11-21 17:31:27 +00:00
|
|
|
out := new(CountNodesResponse)
|
2019-01-14 18:47:22 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/CountNodes", in, out, opts...)
|
2018-11-21 17:31:27 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
func (c *kadInspectorClient) PingNode(ctx context.Context, in *PingNodeRequest, opts ...grpc.CallOption) (*PingNodeResponse, error) {
|
2018-11-27 22:50:52 +00:00
|
|
|
out := new(PingNodeResponse)
|
2019-01-14 18:47:22 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/PingNode", in, out, opts...)
|
2018-11-27 22:50:52 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
func (c *kadInspectorClient) LookupNode(ctx context.Context, in *LookupNodeRequest, opts ...grpc.CallOption) (*LookupNodeResponse, error) {
|
2018-12-04 21:39:28 +00:00
|
|
|
out := new(LookupNodeResponse)
|
2019-01-14 18:47:22 +00:00
|
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/LookupNode", in, out, opts...)
|
2018-11-21 22:01:09 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:41:51 +00:00
|
|
|
func (c *kadInspectorClient) NodeInfo(ctx context.Context, in *NodeInfoRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) {
|
|
|
|
out := new(NodeInfoResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/NodeInfo", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-01-28 22:53:37 +00:00
|
|
|
func (c *kadInspectorClient) FindNear(ctx context.Context, in *FindNearRequest, opts ...grpc.CallOption) (*FindNearResponse, error) {
|
|
|
|
out := new(FindNearResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/FindNear", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-02-28 19:55:27 +00:00
|
|
|
func (c *kadInspectorClient) DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error) {
|
|
|
|
out := new(DumpNodesResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/DumpNodes", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
// KadInspectorServer is the server API for KadInspector service.
|
|
|
|
type KadInspectorServer interface {
|
|
|
|
// CountNodes returns the number of nodes in the routing table
|
2018-11-21 17:31:27 +00:00
|
|
|
CountNodes(context.Context, *CountNodesRequest) (*CountNodesResponse, error)
|
2019-02-25 18:41:51 +00:00
|
|
|
// PingNode sends a PING RPC to a node and returns its availability
|
2018-11-27 22:50:52 +00:00
|
|
|
PingNode(context.Context, *PingNodeRequest) (*PingNodeResponse, error)
|
2018-12-04 21:39:28 +00:00
|
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
|
|
LookupNode(context.Context, *LookupNodeRequest) (*LookupNodeResponse, error)
|
2019-02-25 18:41:51 +00:00
|
|
|
// NodeInfo sends a PING RPC to a node and returns its local info
|
|
|
|
NodeInfo(context.Context, *NodeInfoRequest) (*NodeInfoResponse, error)
|
2019-01-28 22:53:37 +00:00
|
|
|
// FindNear returns limit number of IDs "near" the Start ID
|
|
|
|
FindNear(context.Context, *FindNearRequest) (*FindNearResponse, error)
|
2019-02-28 19:55:27 +00:00
|
|
|
// DumpNodes returns all the nodes in the node database
|
|
|
|
DumpNodes(context.Context, *DumpNodesRequest) (*DumpNodesResponse, error)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
func RegisterKadInspectorServer(s *grpc.Server, srv KadInspectorServer) {
|
|
|
|
s.RegisterService(&_KadInspector_serviceDesc, srv)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
func _KadInspector_CountNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2018-11-21 17:31:27 +00:00
|
|
|
in := new(CountNodesRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2019-01-14 18:47:22 +00:00
|
|
|
return srv.(KadInspectorServer).CountNodes(ctx, in)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2019-01-14 18:47:22 +00:00
|
|
|
FullMethod: "/inspector.KadInspector/CountNodes",
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2019-01-14 18:47:22 +00:00
|
|
|
return srv.(KadInspectorServer).CountNodes(ctx, req.(*CountNodesRequest))
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-01-28 22:53:37 +00:00
|
|
|
func _KadInspector_PingNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(PingNodeRequest)
|
2018-11-21 17:31:27 +00:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2019-01-28 22:53:37 +00:00
|
|
|
return srv.(KadInspectorServer).PingNode(ctx, in)
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2019-01-28 22:53:37 +00:00
|
|
|
FullMethod: "/inspector.KadInspector/PingNode",
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2019-01-28 22:53:37 +00:00
|
|
|
return srv.(KadInspectorServer).PingNode(ctx, req.(*PingNodeRequest))
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-01-28 22:53:37 +00:00
|
|
|
func _KadInspector_LookupNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(LookupNodeRequest)
|
2018-11-27 22:50:52 +00:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2019-01-28 22:53:37 +00:00
|
|
|
return srv.(KadInspectorServer).LookupNode(ctx, in)
|
2018-11-27 22:50:52 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2019-01-28 22:53:37 +00:00
|
|
|
FullMethod: "/inspector.KadInspector/LookupNode",
|
2018-11-27 22:50:52 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2019-01-28 22:53:37 +00:00
|
|
|
return srv.(KadInspectorServer).LookupNode(ctx, req.(*LookupNodeRequest))
|
2018-11-27 22:50:52 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-02-25 18:41:51 +00:00
|
|
|
func _KadInspector_NodeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(NodeInfoRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(KadInspectorServer).NodeInfo(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/inspector.KadInspector/NodeInfo",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(KadInspectorServer).NodeInfo(ctx, req.(*NodeInfoRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-01-28 22:53:37 +00:00
|
|
|
func _KadInspector_FindNear_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(FindNearRequest)
|
2018-12-04 21:39:28 +00:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2019-01-28 22:53:37 +00:00
|
|
|
return srv.(KadInspectorServer).FindNear(ctx, in)
|
2018-12-04 21:39:28 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2019-01-28 22:53:37 +00:00
|
|
|
FullMethod: "/inspector.KadInspector/FindNear",
|
2018-12-04 21:39:28 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2019-01-28 22:53:37 +00:00
|
|
|
return srv.(KadInspectorServer).FindNear(ctx, req.(*FindNearRequest))
|
2018-12-04 21:39:28 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-02-28 19:55:27 +00:00
|
|
|
func _KadInspector_DumpNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DumpNodesRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(KadInspectorServer).DumpNodes(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/inspector.KadInspector/DumpNodes",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(KadInspectorServer).DumpNodes(ctx, req.(*DumpNodesRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
var _KadInspector_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "inspector.KadInspector",
|
|
|
|
HandlerType: (*KadInspectorServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "CountNodes",
|
|
|
|
Handler: _KadInspector_CountNodes_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "PingNode",
|
|
|
|
Handler: _KadInspector_PingNode_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "LookupNode",
|
|
|
|
Handler: _KadInspector_LookupNode_Handler,
|
|
|
|
},
|
2019-02-25 18:41:51 +00:00
|
|
|
{
|
|
|
|
MethodName: "NodeInfo",
|
|
|
|
Handler: _KadInspector_NodeInfo_Handler,
|
|
|
|
},
|
2019-01-28 22:53:37 +00:00
|
|
|
{
|
|
|
|
MethodName: "FindNear",
|
|
|
|
Handler: _KadInspector_FindNear_Handler,
|
|
|
|
},
|
2019-02-28 19:55:27 +00:00
|
|
|
{
|
|
|
|
MethodName: "DumpNodes",
|
|
|
|
Handler: _KadInspector_DumpNodes_Handler,
|
|
|
|
},
|
2019-01-14 18:47:22 +00:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "inspector.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
// OverlayInspectorClient is the client API for OverlayInspector service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type OverlayInspectorClient interface {
|
|
|
|
// CountNodes returns the number of nodes in the cache
|
|
|
|
CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error)
|
2019-02-28 19:55:27 +00:00
|
|
|
// DumpNodes returns all the nodes in the cache
|
|
|
|
DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error)
|
2019-03-25 22:25:09 +00:00
|
|
|
// GetStats returns the stats for a particular node ID
|
|
|
|
GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
|
|
|
|
// CreateStats creates a node with specified stats
|
|
|
|
CreateStats(ctx context.Context, in *CreateStatsRequest, opts ...grpc.CallOption) (*CreateStatsResponse, error)
|
2019-01-14 18:47:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type overlayInspectorClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewOverlayInspectorClient(cc *grpc.ClientConn) OverlayInspectorClient {
|
|
|
|
return &overlayInspectorClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *overlayInspectorClient) CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error) {
|
|
|
|
out := new(CountNodesResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/CountNodes", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-02-28 19:55:27 +00:00
|
|
|
func (c *overlayInspectorClient) DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error) {
|
|
|
|
out := new(DumpNodesResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/DumpNodes", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-03-25 22:25:09 +00:00
|
|
|
func (c *overlayInspectorClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) {
|
|
|
|
out := new(GetStatsResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/GetStats", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *overlayInspectorClient) CreateStats(ctx context.Context, in *CreateStatsRequest, opts ...grpc.CallOption) (*CreateStatsResponse, error) {
|
|
|
|
out := new(CreateStatsResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.OverlayInspector/CreateStats", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-01-14 18:47:22 +00:00
|
|
|
// OverlayInspectorServer is the server API for OverlayInspector service.
|
|
|
|
type OverlayInspectorServer interface {
|
|
|
|
// CountNodes returns the number of nodes in the cache
|
|
|
|
CountNodes(context.Context, *CountNodesRequest) (*CountNodesResponse, error)
|
2019-02-28 19:55:27 +00:00
|
|
|
// DumpNodes returns all the nodes in the cache
|
|
|
|
DumpNodes(context.Context, *DumpNodesRequest) (*DumpNodesResponse, error)
|
2019-03-25 22:25:09 +00:00
|
|
|
// GetStats returns the stats for a particular node ID
|
|
|
|
GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
|
|
|
|
// CreateStats creates a node with specified stats
|
|
|
|
CreateStats(context.Context, *CreateStatsRequest) (*CreateStatsResponse, error)
|
2019-01-14 18:47:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterOverlayInspectorServer(s *grpc.Server, srv OverlayInspectorServer) {
|
|
|
|
s.RegisterService(&_OverlayInspector_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _OverlayInspector_CountNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(CountNodesRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(OverlayInspectorServer).CountNodes(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/inspector.OverlayInspector/CountNodes",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(OverlayInspectorServer).CountNodes(ctx, req.(*CountNodesRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-02-28 19:55:27 +00:00
|
|
|
func _OverlayInspector_DumpNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DumpNodesRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(OverlayInspectorServer).DumpNodes(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/inspector.OverlayInspector/DumpNodes",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(OverlayInspectorServer).DumpNodes(ctx, req.(*DumpNodesRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-03-25 22:25:09 +00:00
|
|
|
func _OverlayInspector_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2018-11-21 22:01:09 +00:00
|
|
|
in := new(GetStatsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2019-03-25 22:25:09 +00:00
|
|
|
return srv.(OverlayInspectorServer).GetStats(ctx, in)
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2019-03-25 22:25:09 +00:00
|
|
|
FullMethod: "/inspector.OverlayInspector/GetStats",
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2019-03-25 22:25:09 +00:00
|
|
|
return srv.(OverlayInspectorServer).GetStats(ctx, req.(*GetStatsRequest))
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-03-25 22:25:09 +00:00
|
|
|
func _OverlayInspector_CreateStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
2018-11-21 22:01:09 +00:00
|
|
|
in := new(CreateStatsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2019-03-25 22:25:09 +00:00
|
|
|
return srv.(OverlayInspectorServer).CreateStats(ctx, in)
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2019-03-25 22:25:09 +00:00
|
|
|
FullMethod: "/inspector.OverlayInspector/CreateStats",
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2019-03-25 22:25:09 +00:00
|
|
|
return srv.(OverlayInspectorServer).CreateStats(ctx, req.(*CreateStatsRequest))
|
2018-11-21 22:01:09 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-03-25 22:25:09 +00:00
|
|
|
var _OverlayInspector_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "inspector.OverlayInspector",
|
|
|
|
HandlerType: (*OverlayInspectorServer)(nil),
|
2018-11-21 17:31:27 +00:00
|
|
|
Methods: []grpc.MethodDesc{
|
2019-03-25 22:25:09 +00:00
|
|
|
{
|
|
|
|
MethodName: "CountNodes",
|
|
|
|
Handler: _OverlayInspector_CountNodes_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "DumpNodes",
|
|
|
|
Handler: _OverlayInspector_DumpNodes_Handler,
|
|
|
|
},
|
2018-11-21 22:01:09 +00:00
|
|
|
{
|
|
|
|
MethodName: "GetStats",
|
2019-03-25 22:25:09 +00:00
|
|
|
Handler: _OverlayInspector_GetStats_Handler,
|
2018-11-21 22:01:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "CreateStats",
|
2019-03-25 22:25:09 +00:00
|
|
|
Handler: _OverlayInspector_CreateStats_Handler,
|
2018-11-21 22:01:09 +00:00
|
|
|
},
|
2018-11-21 17:31:27 +00:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "inspector.proto",
|
|
|
|
}
|
|
|
|
|
2019-03-05 20:48:37 +00:00
|
|
|
// PieceStoreInspectorClient is the client API for PieceStoreInspector service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type PieceStoreInspectorClient interface {
|
|
|
|
// Stats return space and bandwidth stats for a storagenode
|
|
|
|
Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatSummaryResponse, error)
|
|
|
|
// Dashboard returns stats for a specific storagenode
|
|
|
|
Dashboard(ctx context.Context, in *DashboardRequest, opts ...grpc.CallOption) (*DashboardResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type pieceStoreInspectorClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewPieceStoreInspectorClient(cc *grpc.ClientConn) PieceStoreInspectorClient {
|
|
|
|
return &pieceStoreInspectorClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *pieceStoreInspectorClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatSummaryResponse, error) {
|
|
|
|
out := new(StatSummaryResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.PieceStoreInspector/Stats", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *pieceStoreInspectorClient) Dashboard(ctx context.Context, in *DashboardRequest, opts ...grpc.CallOption) (*DashboardResponse, error) {
|
|
|
|
out := new(DashboardResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.PieceStoreInspector/Dashboard", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// PieceStoreInspectorServer is the server API for PieceStoreInspector service.
|
|
|
|
type PieceStoreInspectorServer interface {
|
|
|
|
// Stats return space and bandwidth stats for a storagenode
|
|
|
|
Stats(context.Context, *StatsRequest) (*StatSummaryResponse, error)
|
|
|
|
// Dashboard returns stats for a specific storagenode
|
|
|
|
Dashboard(context.Context, *DashboardRequest) (*DashboardResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterPieceStoreInspectorServer(s *grpc.Server, srv PieceStoreInspectorServer) {
|
|
|
|
s.RegisterService(&_PieceStoreInspector_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _PieceStoreInspector_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(StatsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(PieceStoreInspectorServer).Stats(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/inspector.PieceStoreInspector/Stats",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(PieceStoreInspectorServer).Stats(ctx, req.(*StatsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _PieceStoreInspector_Dashboard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DashboardRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(PieceStoreInspectorServer).Dashboard(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/inspector.PieceStoreInspector/Dashboard",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(PieceStoreInspectorServer).Dashboard(ctx, req.(*DashboardRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _PieceStoreInspector_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "inspector.PieceStoreInspector",
|
|
|
|
HandlerType: (*PieceStoreInspectorServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Stats",
|
|
|
|
Handler: _PieceStoreInspector_Stats_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Dashboard",
|
|
|
|
Handler: _PieceStoreInspector_Dashboard_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "inspector.proto",
|
2018-11-21 17:31:27 +00:00
|
|
|
}
|
2019-03-15 20:21:52 +00:00
|
|
|
|
|
|
|
// IrreparableInspectorClient is the client API for IrreparableInspector service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type IrreparableInspectorClient interface {
|
2019-03-18 10:55:06 +00:00
|
|
|
// ListIrreparableSegments returns damaged segments
|
|
|
|
ListIrreparableSegments(ctx context.Context, in *ListIrreparableSegmentsRequest, opts ...grpc.CallOption) (*ListIrreparableSegmentsResponse, error)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type irreparableInspectorClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewIrreparableInspectorClient(cc *grpc.ClientConn) IrreparableInspectorClient {
|
|
|
|
return &irreparableInspectorClient{cc}
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func (c *irreparableInspectorClient) ListIrreparableSegments(ctx context.Context, in *ListIrreparableSegmentsRequest, opts ...grpc.CallOption) (*ListIrreparableSegmentsResponse, error) {
|
|
|
|
out := new(ListIrreparableSegmentsResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/inspector.IrreparableInspector/ListIrreparableSegments", in, out, opts...)
|
2019-03-15 20:21:52 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// IrreparableInspectorServer is the server API for IrreparableInspector service.
|
|
|
|
type IrreparableInspectorServer interface {
|
2019-03-18 10:55:06 +00:00
|
|
|
// ListIrreparableSegments returns damaged segments
|
|
|
|
ListIrreparableSegments(context.Context, *ListIrreparableSegmentsRequest) (*ListIrreparableSegmentsResponse, error)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterIrreparableInspectorServer(s *grpc.Server, srv IrreparableInspectorServer) {
|
|
|
|
s.RegisterService(&_IrreparableInspector_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2019-03-18 10:55:06 +00:00
|
|
|
func _IrreparableInspector_ListIrreparableSegments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ListIrreparableSegmentsRequest)
|
2019-03-15 20:21:52 +00:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2019-03-18 10:55:06 +00:00
|
|
|
return srv.(IrreparableInspectorServer).ListIrreparableSegments(ctx, in)
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2019-03-18 10:55:06 +00:00
|
|
|
FullMethod: "/inspector.IrreparableInspector/ListIrreparableSegments",
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2019-03-18 10:55:06 +00:00
|
|
|
return srv.(IrreparableInspectorServer).ListIrreparableSegments(ctx, req.(*ListIrreparableSegmentsRequest))
|
2019-03-15 20:21:52 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _IrreparableInspector_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "inspector.IrreparableInspector",
|
|
|
|
HandlerType: (*IrreparableInspectorServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
2019-03-18 10:55:06 +00:00
|
|
|
MethodName: "ListIrreparableSegments",
|
|
|
|
Handler: _IrreparableInspector_ListIrreparableSegments_Handler,
|
2019-03-15 20:21:52 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "inspector.proto",
|
|
|
|
}
|