87925789de
now kad inspector features exist on every server that has kademlia running. likewise, overlay and statdb. this means kad inspection features are now available on storage nodes Change-Id: I343c873552341de13302bfb7a5d79cccc84fc6b8
1117 lines
42 KiB
Go
1117 lines
42 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: inspector.proto
|
|
|
|
package pb
|
|
|
|
import proto "github.com/gogo/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import _ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
// GetStats
|
|
type GetStatsRequest struct {
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{0}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *GetStatsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetStatsRequest.Merge(dst, src)
|
|
}
|
|
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"`
|
|
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"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{1}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *GetStatsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetStatsResponse.Merge(dst, src)
|
|
}
|
|
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
|
|
}
|
|
|
|
func (m *GetStatsResponse) GetAuditRatio() float64 {
|
|
if m != nil {
|
|
return m.AuditRatio
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetStatsResponse) GetUptimeCount() int64 {
|
|
if m != nil {
|
|
return m.UptimeCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *GetStatsResponse) GetUptimeRatio() float64 {
|
|
if m != nil {
|
|
return m.UptimeRatio
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// CreateStats
|
|
type CreateStatsRequest struct {
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{2}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *CreateStatsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateStatsRequest.Merge(dst, src)
|
|
}
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{3}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *CreateStatsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateStatsResponse.Merge(dst, src)
|
|
}
|
|
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
|
|
|
|
// CountNodes
|
|
type CountNodesResponse struct {
|
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{4}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *CountNodesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CountNodesResponse.Merge(dst, src)
|
|
}
|
|
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
|
|
|
|
func (m *CountNodesResponse) GetCount() int64 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{5}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *CountNodesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CountNodesRequest.Merge(dst, src)
|
|
}
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{6}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *GetBucketsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketsRequest.Merge(dst, src)
|
|
}
|
|
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"`
|
|
Ids []NodeID `protobuf:"bytes,2,rep,name=ids,customtype=NodeID" json:"ids,omitempty"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{7}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *GetBucketsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketsResponse.Merge(dst, src)
|
|
}
|
|
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 {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{8}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *GetBucketRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketRequest.Merge(dst, src)
|
|
}
|
|
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 {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes" json:"nodes,omitempty"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{9}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *GetBucketResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetBucketResponse.Merge(dst, src)
|
|
}
|
|
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 {
|
|
Nodes []*Node `protobuf:"bytes,2,rep,name=nodes" json:"nodes,omitempty"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{10}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *Bucket) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Bucket.Merge(dst, src)
|
|
}
|
|
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 {
|
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{11}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *BucketList) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BucketList.Merge(dst, src)
|
|
}
|
|
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
|
|
}
|
|
|
|
// PingNode
|
|
type PingNodeRequest struct {
|
|
Id NodeID `protobuf:"bytes,1,opt,name=id,proto3,customtype=NodeID" json:"id"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{12}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *PingNodeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PingNodeRequest.Merge(dst, src)
|
|
}
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{13}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *PingNodeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PingNodeResponse.Merge(dst, src)
|
|
}
|
|
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
|
|
}
|
|
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{14}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *LookupNodeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LookupNodeRequest.Merge(dst, src)
|
|
}
|
|
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 {
|
|
Node *Node `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
|
|
Meta *NodeMetadata `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"`
|
|
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) {
|
|
return fileDescriptor_inspector_7b7fedb7046661e4, []int{15}
|
|
}
|
|
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)
|
|
}
|
|
func (dst *LookupNodeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LookupNodeResponse.Merge(dst, src)
|
|
}
|
|
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
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*GetStatsRequest)(nil), "inspector.GetStatsRequest")
|
|
proto.RegisterType((*GetStatsResponse)(nil), "inspector.GetStatsResponse")
|
|
proto.RegisterType((*CreateStatsRequest)(nil), "inspector.CreateStatsRequest")
|
|
proto.RegisterType((*CreateStatsResponse)(nil), "inspector.CreateStatsResponse")
|
|
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")
|
|
proto.RegisterType((*PingNodeRequest)(nil), "inspector.PingNodeRequest")
|
|
proto.RegisterType((*PingNodeResponse)(nil), "inspector.PingNodeResponse")
|
|
proto.RegisterType((*LookupNodeRequest)(nil), "inspector.LookupNodeRequest")
|
|
proto.RegisterType((*LookupNodeResponse)(nil), "inspector.LookupNodeResponse")
|
|
}
|
|
|
|
// 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
|
|
|
|
// KadInspectorClient is the client API for KadInspector service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type KadInspectorClient interface {
|
|
// CountNodes returns the number of nodes in the routing table
|
|
CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error)
|
|
// GetBuckets returns the k buckets from a Kademlia instance
|
|
GetBuckets(ctx context.Context, in *GetBucketsRequest, opts ...grpc.CallOption) (*GetBucketsResponse, error)
|
|
// GetBucket returns the details of a single k bucket from the kademlia instance
|
|
GetBucket(ctx context.Context, in *GetBucketRequest, opts ...grpc.CallOption) (*GetBucketResponse, error)
|
|
// PingNodes sends a PING RPC to a node and returns it's availability
|
|
PingNode(ctx context.Context, in *PingNodeRequest, opts ...grpc.CallOption) (*PingNodeResponse, error)
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
LookupNode(ctx context.Context, in *LookupNodeRequest, opts ...grpc.CallOption) (*LookupNodeResponse, error)
|
|
}
|
|
|
|
type kadInspectorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewKadInspectorClient(cc *grpc.ClientConn) KadInspectorClient {
|
|
return &kadInspectorClient{cc}
|
|
}
|
|
|
|
func (c *kadInspectorClient) CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error) {
|
|
out := new(CountNodesResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/CountNodes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) GetBuckets(ctx context.Context, in *GetBucketsRequest, opts ...grpc.CallOption) (*GetBucketsResponse, error) {
|
|
out := new(GetBucketsResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/GetBuckets", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) GetBucket(ctx context.Context, in *GetBucketRequest, opts ...grpc.CallOption) (*GetBucketResponse, error) {
|
|
out := new(GetBucketResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/GetBucket", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) PingNode(ctx context.Context, in *PingNodeRequest, opts ...grpc.CallOption) (*PingNodeResponse, error) {
|
|
out := new(PingNodeResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/PingNode", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *kadInspectorClient) LookupNode(ctx context.Context, in *LookupNodeRequest, opts ...grpc.CallOption) (*LookupNodeResponse, error) {
|
|
out := new(LookupNodeResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.KadInspector/LookupNode", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// KadInspectorServer is the server API for KadInspector service.
|
|
type KadInspectorServer interface {
|
|
// CountNodes returns the number of nodes in the routing table
|
|
CountNodes(context.Context, *CountNodesRequest) (*CountNodesResponse, error)
|
|
// GetBuckets returns the k buckets from a Kademlia instance
|
|
GetBuckets(context.Context, *GetBucketsRequest) (*GetBucketsResponse, error)
|
|
// GetBucket returns the details of a single k bucket from the kademlia instance
|
|
GetBucket(context.Context, *GetBucketRequest) (*GetBucketResponse, error)
|
|
// PingNodes sends a PING RPC to a node and returns it's availability
|
|
PingNode(context.Context, *PingNodeRequest) (*PingNodeResponse, error)
|
|
// LookupNode triggers a Kademlia FindNode and returns the response
|
|
LookupNode(context.Context, *LookupNodeRequest) (*LookupNodeResponse, error)
|
|
}
|
|
|
|
func RegisterKadInspectorServer(s *grpc.Server, srv KadInspectorServer) {
|
|
s.RegisterService(&_KadInspector_serviceDesc, srv)
|
|
}
|
|
|
|
func _KadInspector_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.(KadInspectorServer).CountNodes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/CountNodes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).CountNodes(ctx, req.(*CountNodesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_GetBuckets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetBucketsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).GetBuckets(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/GetBuckets",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).GetBuckets(ctx, req.(*GetBucketsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_GetBucket_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetBucketRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).GetBucket(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/GetBucket",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).GetBucket(ctx, req.(*GetBucketRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_PingNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PingNodeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).PingNode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/PingNode",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).PingNode(ctx, req.(*PingNodeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _KadInspector_LookupNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LookupNodeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(KadInspectorServer).LookupNode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.KadInspector/LookupNode",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(KadInspectorServer).LookupNode(ctx, req.(*LookupNodeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _KadInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.KadInspector",
|
|
HandlerType: (*KadInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CountNodes",
|
|
Handler: _KadInspector_CountNodes_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetBuckets",
|
|
Handler: _KadInspector_GetBuckets_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetBucket",
|
|
Handler: _KadInspector_GetBucket_Handler,
|
|
},
|
|
{
|
|
MethodName: "PingNode",
|
|
Handler: _KadInspector_PingNode_Handler,
|
|
},
|
|
{
|
|
MethodName: "LookupNode",
|
|
Handler: _KadInspector_LookupNode_Handler,
|
|
},
|
|
},
|
|
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)
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
// 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)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
var _OverlayInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.OverlayInspector",
|
|
HandlerType: (*OverlayInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CountNodes",
|
|
Handler: _OverlayInspector_CountNodes_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "inspector.proto",
|
|
}
|
|
|
|
// StatDBInspectorClient is the client API for StatDBInspector service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type StatDBInspectorClient interface {
|
|
// 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)
|
|
}
|
|
|
|
type statDBInspectorClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewStatDBInspectorClient(cc *grpc.ClientConn) StatDBInspectorClient {
|
|
return &statDBInspectorClient{cc}
|
|
}
|
|
|
|
func (c *statDBInspectorClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) {
|
|
out := new(GetStatsResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.StatDBInspector/GetStats", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *statDBInspectorClient) CreateStats(ctx context.Context, in *CreateStatsRequest, opts ...grpc.CallOption) (*CreateStatsResponse, error) {
|
|
out := new(CreateStatsResponse)
|
|
err := c.cc.Invoke(ctx, "/inspector.StatDBInspector/CreateStats", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// StatDBInspectorServer is the server API for StatDBInspector service.
|
|
type StatDBInspectorServer interface {
|
|
// 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)
|
|
}
|
|
|
|
func RegisterStatDBInspectorServer(s *grpc.Server, srv StatDBInspectorServer) {
|
|
s.RegisterService(&_StatDBInspector_serviceDesc, srv)
|
|
}
|
|
|
|
func _StatDBInspector_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetStatsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(StatDBInspectorServer).GetStats(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.StatDBInspector/GetStats",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(StatDBInspectorServer).GetStats(ctx, req.(*GetStatsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _StatDBInspector_CreateStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateStatsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(StatDBInspectorServer).CreateStats(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/inspector.StatDBInspector/CreateStats",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(StatDBInspectorServer).CreateStats(ctx, req.(*CreateStatsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _StatDBInspector_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "inspector.StatDBInspector",
|
|
HandlerType: (*StatDBInspectorServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetStats",
|
|
Handler: _StatDBInspector_GetStats_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateStats",
|
|
Handler: _StatDBInspector_CreateStats_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "inspector.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("inspector.proto", fileDescriptor_inspector_7b7fedb7046661e4) }
|
|
|
|
var fileDescriptor_inspector_7b7fedb7046661e4 = []byte{
|
|
// 644 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcb, 0x6e, 0xd3, 0x40,
|
|
0x14, 0xc5, 0x4e, 0x9a, 0x26, 0x37, 0x51, 0x1e, 0x93, 0x22, 0x45, 0x4e, 0x68, 0xc2, 0x2c, 0x20,
|
|
0xea, 0x22, 0x42, 0x66, 0x87, 0xc4, 0x26, 0xa9, 0x28, 0x51, 0xc3, 0x43, 0xae, 0xd8, 0x20, 0x50,
|
|
0x35, 0x8d, 0x47, 0x91, 0x95, 0x36, 0x63, 0x3c, 0x63, 0x24, 0x7e, 0x85, 0x35, 0x1f, 0xc3, 0x37,
|
|
0xb0, 0xe8, 0x86, 0xdf, 0x60, 0x81, 0x3c, 0x63, 0x7b, 0xec, 0x38, 0x51, 0x2b, 0x24, 0x76, 0xf6,
|
|
0x39, 0xc7, 0x67, 0xee, 0xb9, 0xf7, 0x6a, 0x0c, 0x2d, 0x6f, 0xc3, 0x7d, 0xba, 0x14, 0x2c, 0x98,
|
|
0xf8, 0x01, 0x13, 0x0c, 0xd5, 0x52, 0xc0, 0x82, 0x15, 0x5b, 0x31, 0x05, 0x5b, 0xb0, 0x61, 0x2e,
|
|
0x55, 0xcf, 0xf8, 0x05, 0xb4, 0xce, 0xa8, 0xb8, 0x10, 0x44, 0x70, 0x87, 0x7e, 0x09, 0x29, 0x17,
|
|
0xe8, 0x29, 0x1c, 0x46, 0x82, 0x4b, 0xcf, 0xed, 0x19, 0x23, 0x63, 0xdc, 0x98, 0x36, 0x7f, 0xde,
|
|
0x0e, 0x1f, 0xfc, 0xba, 0x1d, 0x56, 0xde, 0x32, 0x97, 0xce, 0x4f, 0x9d, 0x4a, 0x44, 0xcf, 0x5d,
|
|
0xfc, 0xdd, 0x80, 0xb6, 0xfe, 0x98, 0xfb, 0x6c, 0xc3, 0x29, 0x1a, 0x42, 0x9d, 0x84, 0xae, 0x27,
|
|
0x2e, 0x97, 0x2c, 0xdc, 0x08, 0xe9, 0x50, 0x72, 0x40, 0x42, 0xb3, 0x08, 0xd1, 0x82, 0x80, 0x08,
|
|
0x8f, 0xf5, 0xcc, 0x91, 0x31, 0x36, 0x62, 0x81, 0x13, 0x21, 0xe8, 0x31, 0x34, 0x42, 0x5f, 0x78,
|
|
0x37, 0x34, 0xb6, 0x28, 0x49, 0x8b, 0xba, 0xc2, 0x94, 0x87, 0x96, 0x28, 0x93, 0xb2, 0x34, 0x89,
|
|
0x25, 0xd2, 0x05, 0xff, 0x36, 0x00, 0xcd, 0x02, 0x4a, 0x04, 0xfd, 0xa7, 0x70, 0xdb, 0x39, 0xcc,
|
|
0x42, 0x8e, 0x09, 0x74, 0x95, 0x80, 0x87, 0xcb, 0x25, 0xe5, 0x3c, 0x57, 0x6d, 0x47, 0x52, 0x17,
|
|
0x8a, 0xd9, 0xae, 0x59, 0x09, 0xcb, 0xc5, 0x58, 0xcf, 0xe0, 0x28, 0x96, 0xe4, 0x3d, 0x0f, 0xa4,
|
|
0x14, 0x29, 0x2e, 0x6b, 0x8a, 0x1f, 0x42, 0x37, 0x17, 0x52, 0x0d, 0x01, 0x9f, 0x00, 0x92, 0x7c,
|
|
0x94, 0x49, 0x8f, 0xe6, 0x08, 0x0e, 0xb2, 0x43, 0x51, 0x2f, 0xb8, 0x0b, 0x9d, 0xac, 0x56, 0xb6,
|
|
0x29, 0x02, 0xcf, 0xa8, 0x98, 0x86, 0xcb, 0x35, 0x4d, 0x7b, 0x87, 0x5f, 0x03, 0xca, 0x82, 0xda,
|
|
0x55, 0x30, 0x41, 0xae, 0x13, 0x57, 0xf9, 0x82, 0x06, 0x50, 0xf2, 0x5c, 0xde, 0x33, 0x47, 0xa5,
|
|
0x71, 0x63, 0x0a, 0x99, 0xfe, 0x46, 0x30, 0xb6, 0xe5, 0xe2, 0x28, 0xa7, 0x64, 0x32, 0xc7, 0x60,
|
|
0xee, 0x1d, 0x8a, 0xe9, 0xb9, 0xf8, 0x43, 0xa6, 0xa4, 0xf4, 0xf0, 0x3b, 0x3e, 0x42, 0x23, 0x38,
|
|
0x88, 0xe6, 0xa9, 0x0a, 0xa9, 0xdb, 0x30, 0x91, 0xab, 0x1f, 0x09, 0x1c, 0x45, 0xe0, 0x13, 0xa8,
|
|
0x28, 0xcf, 0x7b, 0x68, 0x27, 0x00, 0x4a, 0xbb, 0xf0, 0x78, 0x46, 0x6f, 0xec, 0xd3, 0x9f, 0x43,
|
|
0xeb, 0xbd, 0xb7, 0x59, 0x49, 0xe8, 0x7e, 0x29, 0x51, 0x0f, 0x0e, 0x89, 0xeb, 0x06, 0x94, 0x73,
|
|
0xb9, 0x72, 0x35, 0x27, 0x79, 0xc5, 0x18, 0xda, 0xda, 0x2c, 0x8e, 0xdf, 0x04, 0x93, 0xad, 0xa5,
|
|
0x5b, 0xd5, 0x31, 0xd9, 0x1a, 0xbf, 0x84, 0xce, 0x82, 0xb1, 0x75, 0xe8, 0x67, 0x8f, 0x6c, 0xa6,
|
|
0x47, 0xd6, 0xee, 0x38, 0xe2, 0x13, 0xa0, 0xec, 0xe7, 0x69, 0x8f, 0xcb, 0x51, 0x1c, 0xe9, 0x90,
|
|
0x8f, 0x29, 0x71, 0xf4, 0x04, 0xca, 0x37, 0x54, 0x10, 0x69, 0x56, 0xb7, 0x91, 0xe6, 0xdf, 0x50,
|
|
0x41, 0x5c, 0x22, 0x88, 0x23, 0x79, 0xfb, 0x8f, 0x09, 0x8d, 0x73, 0xe2, 0xce, 0x93, 0x3b, 0x09,
|
|
0xcd, 0x01, 0xf4, 0xe6, 0xa1, 0xc1, 0x44, 0x5f, 0x5f, 0x85, 0x85, 0xb4, 0x1e, 0xed, 0x61, 0xe3,
|
|
0x1a, 0xe7, 0x00, 0x7a, 0x35, 0x73, 0x56, 0x85, 0x35, 0xce, 0x59, 0xed, 0xd8, 0xe7, 0x57, 0x50,
|
|
0x4b, 0x51, 0xd4, 0xdf, 0xa5, 0x4d, 0x8c, 0x06, 0xbb, 0xc9, 0xd8, 0x67, 0x06, 0xd5, 0x64, 0x5e,
|
|
0xc8, 0xca, 0x28, 0xb7, 0x36, 0xc2, 0xea, 0xef, 0xe4, 0x74, 0x2e, 0x3d, 0x91, 0x5c, 0xae, 0xc2,
|
|
0x9c, 0x73, 0xb9, 0x8a, 0x63, 0xb4, 0x3f, 0x43, 0xfb, 0xdd, 0x57, 0x1a, 0x5c, 0x93, 0x6f, 0xff,
|
|
0x63, 0x02, 0xf6, 0x0f, 0x03, 0x5a, 0xd1, 0x25, 0x74, 0x3a, 0xd5, 0xf6, 0x33, 0xa8, 0x26, 0xff,
|
|
0x87, 0x5c, 0x0b, 0xb6, 0xfe, 0x38, 0x56, 0x7f, 0x27, 0x17, 0xb7, 0x60, 0x01, 0xf5, 0xcc, 0x15,
|
|
0x87, 0x72, 0x65, 0x14, 0xee, 0x77, 0xeb, 0x78, 0x1f, 0xad, 0xdc, 0xa6, 0xe5, 0x8f, 0xa6, 0x7f,
|
|
0x75, 0x55, 0x91, 0x3f, 0xbf, 0xe7, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x78, 0xf1, 0xf1, 0x7a,
|
|
0x32, 0x07, 0x00, 0x00,
|
|
}
|