From f378125c8b15665257221226a7639267208b4332 Mon Sep 17 00:00:00 2001 From: Bill Thorp Date: Mon, 17 Jun 2019 16:48:04 -0400 Subject: [PATCH] draft of removing stats from inspector (#2226) --- cmd/inspector/main.go | 194 ----------- pkg/overlay/cache.go | 22 +- pkg/overlay/inspector.go | 34 -- pkg/pb/inspector.pb.go | 701 ++++++++++++--------------------------- pkg/pb/inspector.proto | 28 -- pkg/pb/node.pb.go | 261 ++++----------- pkg/pb/node.proto | 13 - proto.lock | 163 --------- 8 files changed, 298 insertions(+), 1118 deletions(-) diff --git a/cmd/inspector/main.go b/cmd/inspector/main.go index 81a52a291..7800b1458 100644 --- a/cmd/inspector/main.go +++ b/cmd/inspector/main.go @@ -4,13 +4,11 @@ package main import ( - "bufio" "context" "encoding/csv" "encoding/json" "flag" "fmt" - "io" "os" "strconv" "strings" @@ -109,32 +107,6 @@ var ( Short: "Dumps a graph of the routing table in the dot format", RunE: DrawTableAsGraph, } - getStatsCmd = &cobra.Command{ - Use: "getstats ", - Short: "Get node stats", - Args: cobra.MinimumNArgs(1), - RunE: GetStats, - } - getCSVStatsCmd = &cobra.Command{ - Use: "getcsvstats ", - Short: "Get node stats from csv", - Args: cobra.MinimumNArgs(1), - RunE: GetCSVStats, - } - createStatsCmd = &cobra.Command{ - // TODO: add args to usage - Use: "createstats", - Short: "Create node with stats", - Args: cobra.MinimumNArgs(5), // id, auditct, auditsuccessct, uptimect, uptimesuccessct - RunE: CreateStats, - } - createCSVStatsCmd = &cobra.Command{ - // TODO: add args to usage - Use: "createcsvstats", - Short: "Create node stats from csv", - Args: cobra.MinimumNArgs(1), - RunE: CreateCSVStats, - } objectHealthCmd = &cobra.Command{ Use: "object ", Short: "Get stats about an object's health", @@ -332,167 +304,6 @@ func PingNode(cmd *cobra.Command, args []string) (err error) { return nil } -// GetStats gets a node's stats from overlay -func GetStats(cmd *cobra.Command, args []string) (err error) { - i, err := NewInspector(*Addr, *IdentityPath) - if err != nil { - return ErrInspectorDial.Wrap(err) - } - - nodeID, err := storj.NodeIDFromString(args[0]) - if err != nil { - return err - } - - res, err := i.overlayclient.GetStats(context.Background(), &pb.GetStatsRequest{ - NodeId: nodeID, - }) - if err != nil { - return ErrRequest.Wrap(err) - } - - fmt.Printf("Stats for ID %s:\n", nodeID) - fmt.Printf("AuditSuccessRatio: %f, AuditCount: %d, UptimeRatio: %f, UptimeCount: %d,\n", - res.AuditRatio, res.AuditCount, res.UptimeRatio, res.UptimeCount) - return nil -} - -// GetCSVStats gets node stats from overlay based on a csv -func GetCSVStats(cmd *cobra.Command, args []string) (err error) { - i, err := NewInspector(*Addr, *IdentityPath) - if err != nil { - return ErrInspectorDial.Wrap(err) - } - - // get csv - csvPath := args[0] - csvFile, _ := os.Open(csvPath) - reader := csv.NewReader(bufio.NewReader(csvFile)) - for { - line, err := reader.Read() - if err == io.EOF { - break - } else if err != nil { - return ErrArgs.Wrap(err) - } - - nodeID, err := storj.NodeIDFromString(line[0]) - if err != nil { - return err - } - res, err := i.overlayclient.GetStats(context.Background(), &pb.GetStatsRequest{ - NodeId: nodeID, - }) - if err != nil { - return ErrRequest.Wrap(err) - } - - fmt.Printf("Stats for ID %s:\n", nodeID) - fmt.Printf("AuditSuccessRatio: %f, AuditCount: %d, UptimeRatio: %f, UptimeCount: %d,\n", - res.AuditRatio, res.AuditCount, res.UptimeRatio, res.UptimeCount) - } - return nil -} - -// CreateStats creates a node with stats in overlay -func CreateStats(cmd *cobra.Command, args []string) (err error) { - i, err := NewInspector(*Addr, *IdentityPath) - if err != nil { - return ErrInspectorDial.Wrap(err) - } - - nodeID, err := storj.NodeIDFromString(args[0]) - if err != nil { - return err - } - auditCount, err := strconv.ParseInt(args[1], 10, 64) - if err != nil { - return ErrArgs.New("audit count must be an int") - } - auditSuccessCount, err := strconv.ParseInt(args[2], 10, 64) - if err != nil { - return ErrArgs.New("audit success count must be an int") - } - uptimeCount, err := strconv.ParseInt(args[3], 10, 64) - if err != nil { - return ErrArgs.New("uptime count must be an int") - } - uptimeSuccessCount, err := strconv.ParseInt(args[4], 10, 64) - if err != nil { - return ErrArgs.New("uptime success count must be an int") - } - - _, err = i.overlayclient.CreateStats(context.Background(), &pb.CreateStatsRequest{ - NodeId: nodeID, - AuditCount: auditCount, - AuditSuccessCount: auditSuccessCount, - UptimeCount: uptimeCount, - UptimeSuccessCount: uptimeSuccessCount, - }) - if err != nil { - return ErrRequest.Wrap(err) - } - - fmt.Printf("Created stats entry for ID %s\n", nodeID) - return nil -} - -// CreateCSVStats creates node with stats in overlay based on a CSV -func CreateCSVStats(cmd *cobra.Command, args []string) (err error) { - i, err := NewInspector(*Addr, *IdentityPath) - if err != nil { - return ErrInspectorDial.Wrap(err) - } - - // get csv - csvPath := args[0] - csvFile, _ := os.Open(csvPath) - reader := csv.NewReader(bufio.NewReader(csvFile)) - for { - line, err := reader.Read() - if err == io.EOF { - break - } else if err != nil { - return ErrArgs.Wrap(err) - } - - nodeID, err := storj.NodeIDFromString(line[0]) - if err != nil { - return err - } - auditCount, err := strconv.ParseInt(line[1], 10, 64) - if err != nil { - return ErrArgs.New("audit count must be an int") - } - auditSuccessCount, err := strconv.ParseInt(line[2], 10, 64) - if err != nil { - return ErrArgs.New("audit success count must be an int") - } - uptimeCount, err := strconv.ParseInt(line[3], 10, 64) - if err != nil { - return ErrArgs.New("uptime count must be an int") - } - uptimeSuccessCount, err := strconv.ParseInt(line[4], 10, 64) - if err != nil { - return ErrArgs.New("uptime success count must be an int") - } - - _, err = i.overlayclient.CreateStats(context.Background(), &pb.CreateStatsRequest{ - NodeId: nodeID, - AuditCount: auditCount, - AuditSuccessCount: auditSuccessCount, - UptimeCount: uptimeCount, - UptimeSuccessCount: uptimeSuccessCount, - }) - if err != nil { - return ErrRequest.Wrap(err) - } - - fmt.Printf("Created stats entry for ID %s\n", nodeID) - } - return nil -} - // ObjectHealth gets information about the health of an object on the network func ObjectHealth(cmd *cobra.Command, args []string) (err error) { ctx := context.Background() @@ -760,11 +571,6 @@ func init() { kadCmd.AddCommand(dumpNodesCmd) kadCmd.AddCommand(drawTableCmd) - statsCmd.AddCommand(getStatsCmd) - statsCmd.AddCommand(getCSVStatsCmd) - statsCmd.AddCommand(createStatsCmd) - statsCmd.AddCommand(createCSVStatsCmd) - healthCmd.AddCommand(objectHealthCmd) healthCmd.AddCommand(segmentHealthCmd) diff --git a/pkg/overlay/cache.go b/pkg/overlay/cache.go index dc9850502..9bac9f40f 100644 --- a/pkg/overlay/cache.go +++ b/pkg/overlay/cache.go @@ -108,15 +108,19 @@ type NodeDossier struct { // NodeStats contains statistics about a node. type NodeStats struct { - Latency90 int64 - AuditSuccessRatio float64 - AuditSuccessCount int64 - AuditCount int64 - UptimeRatio float64 - UptimeSuccessCount int64 - UptimeCount int64 - LastContactSuccess time.Time - LastContactFailure time.Time + Latency90 int64 + AuditSuccessRatio float64 + AuditSuccessCount int64 + AuditCount int64 + UptimeRatio float64 + UptimeSuccessCount int64 + UptimeCount int64 + LastContactSuccess time.Time + LastContactFailure time.Time + AuditReputationAlpha float64 + UptimeReputationAlpha float64 + AuditReputationBeta float64 + UptimeReputationBeta float64 } // Cache is used to store and handle node information diff --git a/pkg/overlay/inspector.go b/pkg/overlay/inspector.go index ea07b3e41..d89bcc964 100644 --- a/pkg/overlay/inspector.go +++ b/pkg/overlay/inspector.go @@ -39,37 +39,3 @@ func (srv *Inspector) DumpNodes(ctx context.Context, req *pb.DumpNodesRequest) ( defer mon.Task()(&ctx)(&err) return &pb.DumpNodesResponse{}, errs.New("Not Implemented") } - -// GetStats returns the stats for a particular node ID -func (srv *Inspector) GetStats(ctx context.Context, req *pb.GetStatsRequest) (_ *pb.GetStatsResponse, err error) { - defer mon.Task()(&ctx)(&err) - node, err := srv.cache.Get(ctx, req.NodeId) - if err != nil { - return nil, err - } - - return &pb.GetStatsResponse{ - AuditCount: node.Reputation.AuditCount, - AuditRatio: node.Reputation.AuditSuccessRatio, - UptimeCount: node.Reputation.UptimeCount, - UptimeRatio: node.Reputation.UptimeRatio, - }, nil -} - -// CreateStats creates a node with specified stats -func (srv *Inspector) CreateStats(ctx context.Context, req *pb.CreateStatsRequest) (_ *pb.CreateStatsResponse, err error) { - defer mon.Task()(&ctx)(&err) - stats := &NodeStats{ - AuditCount: req.AuditCount, - AuditSuccessCount: req.AuditSuccessCount, - UptimeCount: req.UptimeCount, - UptimeSuccessCount: req.UptimeSuccessCount, - } - - _, err = srv.cache.Create(ctx, req.NodeId, stats) - if err != nil { - return nil, err - } - - return &pb.CreateStatsResponse{}, nil -} diff --git a/pkg/pb/inspector.pb.go b/pkg/pb/inspector.pb.go index 3be0386f4..a4066ca0f 100644 --- a/pkg/pb/inspector.pb.go +++ b/pkg/pb/inspector.pb.go @@ -3,15 +3,16 @@ package pb +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "github.com/gogo/protobuf/gogoproto" +import duration "github.com/golang/protobuf/ptypes/duration" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" + import ( - 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" + context "golang.org/x/net/context" grpc "google.golang.org/grpc" - math "math" ) // Reference imports to suppress errors if they are not otherwise used. @@ -38,7 +39,7 @@ func (m *ListIrreparableSegmentsRequest) Reset() { *m = ListIrreparableS func (m *ListIrreparableSegmentsRequest) String() string { return proto.CompactTextString(m) } func (*ListIrreparableSegmentsRequest) ProtoMessage() {} func (*ListIrreparableSegmentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{0} + return fileDescriptor_inspector_9250660af0f945d7, []int{0} } func (m *ListIrreparableSegmentsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListIrreparableSegmentsRequest.Unmarshal(m, b) @@ -46,8 +47,8 @@ func (m *ListIrreparableSegmentsRequest) XXX_Unmarshal(b []byte) error { func (m *ListIrreparableSegmentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListIrreparableSegmentsRequest.Marshal(b, m, deterministic) } -func (m *ListIrreparableSegmentsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListIrreparableSegmentsRequest.Merge(m, src) +func (dst *ListIrreparableSegmentsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListIrreparableSegmentsRequest.Merge(dst, src) } func (m *ListIrreparableSegmentsRequest) XXX_Size() int { return xxx_messageInfo_ListIrreparableSegmentsRequest.Size(m) @@ -87,7 +88,7 @@ func (m *IrreparableSegment) Reset() { *m = IrreparableSegment{} } func (m *IrreparableSegment) String() string { return proto.CompactTextString(m) } func (*IrreparableSegment) ProtoMessage() {} func (*IrreparableSegment) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{1} + return fileDescriptor_inspector_9250660af0f945d7, []int{1} } func (m *IrreparableSegment) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IrreparableSegment.Unmarshal(m, b) @@ -95,8 +96,8 @@ func (m *IrreparableSegment) XXX_Unmarshal(b []byte) error { func (m *IrreparableSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IrreparableSegment.Marshal(b, m, deterministic) } -func (m *IrreparableSegment) XXX_Merge(src proto.Message) { - xxx_messageInfo_IrreparableSegment.Merge(m, src) +func (dst *IrreparableSegment) XXX_Merge(src proto.Message) { + xxx_messageInfo_IrreparableSegment.Merge(dst, src) } func (m *IrreparableSegment) XXX_Size() int { return xxx_messageInfo_IrreparableSegment.Size(m) @@ -153,7 +154,7 @@ func (m *ListIrreparableSegmentsResponse) Reset() { *m = ListIrreparable func (m *ListIrreparableSegmentsResponse) String() string { return proto.CompactTextString(m) } func (*ListIrreparableSegmentsResponse) ProtoMessage() {} func (*ListIrreparableSegmentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{2} + return fileDescriptor_inspector_9250660af0f945d7, []int{2} } func (m *ListIrreparableSegmentsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ListIrreparableSegmentsResponse.Unmarshal(m, b) @@ -161,8 +162,8 @@ func (m *ListIrreparableSegmentsResponse) XXX_Unmarshal(b []byte) error { func (m *ListIrreparableSegmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ListIrreparableSegmentsResponse.Marshal(b, m, deterministic) } -func (m *ListIrreparableSegmentsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListIrreparableSegmentsResponse.Merge(m, src) +func (dst *ListIrreparableSegmentsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListIrreparableSegmentsResponse.Merge(dst, src) } func (m *ListIrreparableSegmentsResponse) XXX_Size() int { return xxx_messageInfo_ListIrreparableSegmentsResponse.Size(m) @@ -180,194 +181,6 @@ func (m *ListIrreparableSegmentsResponse) GetSegments() []*IrreparableSegment { return nil } -// 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_a07d9034b2dd9d26, []int{3} -} -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 (m *GetStatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStatsRequest.Merge(m, 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_a07d9034b2dd9d26, []int{4} -} -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 (m *GetStatsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStatsResponse.Merge(m, 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_a07d9034b2dd9d26, []int{5} -} -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 (m *CreateStatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateStatsRequest.Merge(m, 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_a07d9034b2dd9d26, []int{6} -} -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 (m *CreateStatsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateStatsResponse.Merge(m, 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"` @@ -380,7 +193,7 @@ 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_a07d9034b2dd9d26, []int{7} + return fileDescriptor_inspector_9250660af0f945d7, []int{3} } func (m *CountNodesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CountNodesResponse.Unmarshal(m, b) @@ -388,8 +201,8 @@ func (m *CountNodesResponse) XXX_Unmarshal(b []byte) error { func (m *CountNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CountNodesResponse.Marshal(b, m, deterministic) } -func (m *CountNodesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountNodesResponse.Merge(m, src) +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) @@ -417,7 +230,7 @@ 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_a07d9034b2dd9d26, []int{8} + return fileDescriptor_inspector_9250660af0f945d7, []int{4} } func (m *CountNodesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_CountNodesRequest.Unmarshal(m, b) @@ -425,8 +238,8 @@ func (m *CountNodesRequest) XXX_Unmarshal(b []byte) error { func (m *CountNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CountNodesRequest.Marshal(b, m, deterministic) } -func (m *CountNodesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CountNodesRequest.Merge(m, src) +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) @@ -447,7 +260,7 @@ func (m *GetBucketListRequest) Reset() { *m = GetBucketListRequest{} } func (m *GetBucketListRequest) String() string { return proto.CompactTextString(m) } func (*GetBucketListRequest) ProtoMessage() {} func (*GetBucketListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{9} + return fileDescriptor_inspector_9250660af0f945d7, []int{5} } func (m *GetBucketListRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetBucketListRequest.Unmarshal(m, b) @@ -455,8 +268,8 @@ func (m *GetBucketListRequest) XXX_Unmarshal(b []byte) error { func (m *GetBucketListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetBucketListRequest.Marshal(b, m, deterministic) } -func (m *GetBucketListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBucketListRequest.Merge(m, src) +func (dst *GetBucketListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBucketListRequest.Merge(dst, src) } func (m *GetBucketListRequest) XXX_Size() int { return xxx_messageInfo_GetBucketListRequest.Size(m) @@ -478,7 +291,7 @@ func (m *GetBucketListResponse) Reset() { *m = GetBucketListResponse{} } func (m *GetBucketListResponse) String() string { return proto.CompactTextString(m) } func (*GetBucketListResponse) ProtoMessage() {} func (*GetBucketListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{10} + return fileDescriptor_inspector_9250660af0f945d7, []int{6} } func (m *GetBucketListResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetBucketListResponse.Unmarshal(m, b) @@ -486,8 +299,8 @@ func (m *GetBucketListResponse) XXX_Unmarshal(b []byte) error { func (m *GetBucketListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetBucketListResponse.Marshal(b, m, deterministic) } -func (m *GetBucketListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBucketListResponse.Merge(m, src) +func (dst *GetBucketListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBucketListResponse.Merge(dst, src) } func (m *GetBucketListResponse) XXX_Size() int { return xxx_messageInfo_GetBucketListResponse.Size(m) @@ -518,7 +331,7 @@ func (m *GetBucketListResponse_Bucket) Reset() { *m = GetBucketListRespo func (m *GetBucketListResponse_Bucket) String() string { return proto.CompactTextString(m) } func (*GetBucketListResponse_Bucket) ProtoMessage() {} func (*GetBucketListResponse_Bucket) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{10, 0} + return fileDescriptor_inspector_9250660af0f945d7, []int{6, 0} } func (m *GetBucketListResponse_Bucket) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetBucketListResponse_Bucket.Unmarshal(m, b) @@ -526,8 +339,8 @@ func (m *GetBucketListResponse_Bucket) XXX_Unmarshal(b []byte) error { func (m *GetBucketListResponse_Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetBucketListResponse_Bucket.Marshal(b, m, deterministic) } -func (m *GetBucketListResponse_Bucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBucketListResponse_Bucket.Merge(m, src) +func (dst *GetBucketListResponse_Bucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBucketListResponse_Bucket.Merge(dst, src) } func (m *GetBucketListResponse_Bucket) XXX_Size() int { return xxx_messageInfo_GetBucketListResponse_Bucket.Size(m) @@ -563,7 +376,7 @@ 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_a07d9034b2dd9d26, []int{11} + return fileDescriptor_inspector_9250660af0f945d7, []int{7} } func (m *GetBucketsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetBucketsRequest.Unmarshal(m, b) @@ -571,8 +384,8 @@ func (m *GetBucketsRequest) XXX_Unmarshal(b []byte) error { func (m *GetBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetBucketsRequest.Marshal(b, m, deterministic) } -func (m *GetBucketsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBucketsRequest.Merge(m, src) +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) @@ -595,7 +408,7 @@ 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_a07d9034b2dd9d26, []int{12} + return fileDescriptor_inspector_9250660af0f945d7, []int{8} } func (m *GetBucketsResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetBucketsResponse.Unmarshal(m, b) @@ -603,8 +416,8 @@ func (m *GetBucketsResponse) XXX_Unmarshal(b []byte) error { func (m *GetBucketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetBucketsResponse.Marshal(b, m, deterministic) } -func (m *GetBucketsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBucketsResponse.Merge(m, src) +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) @@ -634,7 +447,7 @@ 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_a07d9034b2dd9d26, []int{13} + return fileDescriptor_inspector_9250660af0f945d7, []int{9} } func (m *GetBucketRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetBucketRequest.Unmarshal(m, b) @@ -642,8 +455,8 @@ func (m *GetBucketRequest) XXX_Unmarshal(b []byte) error { func (m *GetBucketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetBucketRequest.Marshal(b, m, deterministic) } -func (m *GetBucketRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBucketRequest.Merge(m, src) +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) @@ -666,7 +479,7 @@ 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_a07d9034b2dd9d26, []int{14} + return fileDescriptor_inspector_9250660af0f945d7, []int{10} } func (m *GetBucketResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetBucketResponse.Unmarshal(m, b) @@ -674,8 +487,8 @@ func (m *GetBucketResponse) XXX_Unmarshal(b []byte) error { func (m *GetBucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_GetBucketResponse.Marshal(b, m, deterministic) } -func (m *GetBucketResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBucketResponse.Merge(m, src) +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) @@ -704,7 +517,7 @@ 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_a07d9034b2dd9d26, []int{15} + return fileDescriptor_inspector_9250660af0f945d7, []int{11} } func (m *Bucket) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Bucket.Unmarshal(m, b) @@ -712,8 +525,8 @@ func (m *Bucket) XXX_Unmarshal(b []byte) error { func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Bucket.Marshal(b, m, deterministic) } -func (m *Bucket) XXX_Merge(src proto.Message) { - xxx_messageInfo_Bucket.Merge(m, src) +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) @@ -742,7 +555,7 @@ 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_a07d9034b2dd9d26, []int{16} + return fileDescriptor_inspector_9250660af0f945d7, []int{12} } func (m *BucketList) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BucketList.Unmarshal(m, b) @@ -750,8 +563,8 @@ func (m *BucketList) XXX_Unmarshal(b []byte) error { func (m *BucketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BucketList.Marshal(b, m, deterministic) } -func (m *BucketList) XXX_Merge(src proto.Message) { - xxx_messageInfo_BucketList.Merge(m, src) +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) @@ -782,7 +595,7 @@ 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_a07d9034b2dd9d26, []int{17} + return fileDescriptor_inspector_9250660af0f945d7, []int{13} } func (m *PingNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PingNodeRequest.Unmarshal(m, b) @@ -790,8 +603,8 @@ func (m *PingNodeRequest) XXX_Unmarshal(b []byte) error { func (m *PingNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PingNodeRequest.Marshal(b, m, deterministic) } -func (m *PingNodeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingNodeRequest.Merge(m, src) +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) @@ -820,7 +633,7 @@ 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_a07d9034b2dd9d26, []int{18} + return fileDescriptor_inspector_9250660af0f945d7, []int{14} } func (m *PingNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_PingNodeResponse.Unmarshal(m, b) @@ -828,8 +641,8 @@ func (m *PingNodeResponse) XXX_Unmarshal(b []byte) error { func (m *PingNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_PingNodeResponse.Marshal(b, m, deterministic) } -func (m *PingNodeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PingNodeResponse.Merge(m, src) +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) @@ -859,7 +672,7 @@ 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_a07d9034b2dd9d26, []int{19} + return fileDescriptor_inspector_9250660af0f945d7, []int{15} } func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LookupNodeRequest.Unmarshal(m, b) @@ -867,8 +680,8 @@ func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error { func (m *LookupNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LookupNodeRequest.Marshal(b, m, deterministic) } -func (m *LookupNodeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LookupNodeRequest.Merge(m, src) +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) @@ -905,7 +718,7 @@ 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_a07d9034b2dd9d26, []int{20} + return fileDescriptor_inspector_9250660af0f945d7, []int{16} } func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LookupNodeResponse.Unmarshal(m, b) @@ -913,8 +726,8 @@ func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error { func (m *LookupNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LookupNodeResponse.Marshal(b, m, deterministic) } -func (m *LookupNodeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LookupNodeResponse.Merge(m, src) +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) @@ -951,7 +764,7 @@ func (m *NodeInfoRequest) Reset() { *m = NodeInfoRequest{} } func (m *NodeInfoRequest) String() string { return proto.CompactTextString(m) } func (*NodeInfoRequest) ProtoMessage() {} func (*NodeInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{21} + return fileDescriptor_inspector_9250660af0f945d7, []int{17} } func (m *NodeInfoRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeInfoRequest.Unmarshal(m, b) @@ -959,8 +772,8 @@ func (m *NodeInfoRequest) XXX_Unmarshal(b []byte) error { func (m *NodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeInfoRequest.Marshal(b, m, deterministic) } -func (m *NodeInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeInfoRequest.Merge(m, src) +func (dst *NodeInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeInfoRequest.Merge(dst, src) } func (m *NodeInfoRequest) XXX_Size() int { return xxx_messageInfo_NodeInfoRequest.Size(m) @@ -992,7 +805,7 @@ func (m *NodeInfoResponse) Reset() { *m = NodeInfoResponse{} } func (m *NodeInfoResponse) String() string { return proto.CompactTextString(m) } func (*NodeInfoResponse) ProtoMessage() {} func (*NodeInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{22} + return fileDescriptor_inspector_9250660af0f945d7, []int{18} } func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeInfoResponse.Unmarshal(m, b) @@ -1000,8 +813,8 @@ func (m *NodeInfoResponse) XXX_Unmarshal(b []byte) error { func (m *NodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeInfoResponse.Marshal(b, m, deterministic) } -func (m *NodeInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeInfoResponse.Merge(m, src) +func (dst *NodeInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeInfoResponse.Merge(dst, src) } func (m *NodeInfoResponse) XXX_Size() int { return xxx_messageInfo_NodeInfoResponse.Size(m) @@ -1053,7 +866,7 @@ func (m *FindNearRequest) Reset() { *m = FindNearRequest{} } func (m *FindNearRequest) String() string { return proto.CompactTextString(m) } func (*FindNearRequest) ProtoMessage() {} func (*FindNearRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{23} + return fileDescriptor_inspector_9250660af0f945d7, []int{19} } func (m *FindNearRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindNearRequest.Unmarshal(m, b) @@ -1061,8 +874,8 @@ func (m *FindNearRequest) XXX_Unmarshal(b []byte) error { func (m *FindNearRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FindNearRequest.Marshal(b, m, deterministic) } -func (m *FindNearRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindNearRequest.Merge(m, src) +func (dst *FindNearRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindNearRequest.Merge(dst, src) } func (m *FindNearRequest) XXX_Size() int { return xxx_messageInfo_FindNearRequest.Size(m) @@ -1091,7 +904,7 @@ func (m *FindNearResponse) Reset() { *m = FindNearResponse{} } func (m *FindNearResponse) String() string { return proto.CompactTextString(m) } func (*FindNearResponse) ProtoMessage() {} func (*FindNearResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{24} + return fileDescriptor_inspector_9250660af0f945d7, []int{20} } func (m *FindNearResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FindNearResponse.Unmarshal(m, b) @@ -1099,8 +912,8 @@ func (m *FindNearResponse) XXX_Unmarshal(b []byte) error { func (m *FindNearResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FindNearResponse.Marshal(b, m, deterministic) } -func (m *FindNearResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindNearResponse.Merge(m, src) +func (dst *FindNearResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_FindNearResponse.Merge(dst, src) } func (m *FindNearResponse) XXX_Size() int { return xxx_messageInfo_FindNearResponse.Size(m) @@ -1128,7 +941,7 @@ func (m *DumpNodesRequest) Reset() { *m = DumpNodesRequest{} } func (m *DumpNodesRequest) String() string { return proto.CompactTextString(m) } func (*DumpNodesRequest) ProtoMessage() {} func (*DumpNodesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{25} + return fileDescriptor_inspector_9250660af0f945d7, []int{21} } func (m *DumpNodesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DumpNodesRequest.Unmarshal(m, b) @@ -1136,8 +949,8 @@ func (m *DumpNodesRequest) XXX_Unmarshal(b []byte) error { func (m *DumpNodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DumpNodesRequest.Marshal(b, m, deterministic) } -func (m *DumpNodesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpNodesRequest.Merge(m, src) +func (dst *DumpNodesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DumpNodesRequest.Merge(dst, src) } func (m *DumpNodesRequest) XXX_Size() int { return xxx_messageInfo_DumpNodesRequest.Size(m) @@ -1159,7 +972,7 @@ func (m *DumpNodesResponse) Reset() { *m = DumpNodesResponse{} } func (m *DumpNodesResponse) String() string { return proto.CompactTextString(m) } func (*DumpNodesResponse) ProtoMessage() {} func (*DumpNodesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{26} + return fileDescriptor_inspector_9250660af0f945d7, []int{22} } func (m *DumpNodesResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DumpNodesResponse.Unmarshal(m, b) @@ -1167,8 +980,8 @@ func (m *DumpNodesResponse) XXX_Unmarshal(b []byte) error { func (m *DumpNodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DumpNodesResponse.Marshal(b, m, deterministic) } -func (m *DumpNodesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpNodesResponse.Merge(m, src) +func (dst *DumpNodesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DumpNodesResponse.Merge(dst, src) } func (m *DumpNodesResponse) XXX_Size() int { return xxx_messageInfo_DumpNodesResponse.Size(m) @@ -1196,7 +1009,7 @@ func (m *StatsRequest) Reset() { *m = StatsRequest{} } func (m *StatsRequest) String() string { return proto.CompactTextString(m) } func (*StatsRequest) ProtoMessage() {} func (*StatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{27} + return fileDescriptor_inspector_9250660af0f945d7, []int{23} } func (m *StatsRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StatsRequest.Unmarshal(m, b) @@ -1204,8 +1017,8 @@ func (m *StatsRequest) XXX_Unmarshal(b []byte) error { func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic) } -func (m *StatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatsRequest.Merge(m, src) +func (dst *StatsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatsRequest.Merge(dst, src) } func (m *StatsRequest) XXX_Size() int { return xxx_messageInfo_StatsRequest.Size(m) @@ -1232,7 +1045,7 @@ func (m *StatSummaryResponse) Reset() { *m = StatSummaryResponse{} } func (m *StatSummaryResponse) String() string { return proto.CompactTextString(m) } func (*StatSummaryResponse) ProtoMessage() {} func (*StatSummaryResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{28} + return fileDescriptor_inspector_9250660af0f945d7, []int{24} } func (m *StatSummaryResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StatSummaryResponse.Unmarshal(m, b) @@ -1240,8 +1053,8 @@ func (m *StatSummaryResponse) XXX_Unmarshal(b []byte) error { func (m *StatSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StatSummaryResponse.Marshal(b, m, deterministic) } -func (m *StatSummaryResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StatSummaryResponse.Merge(m, src) +func (dst *StatSummaryResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatSummaryResponse.Merge(dst, src) } func (m *StatSummaryResponse) XXX_Size() int { return xxx_messageInfo_StatSummaryResponse.Size(m) @@ -1304,7 +1117,7 @@ func (m *DashboardRequest) Reset() { *m = DashboardRequest{} } func (m *DashboardRequest) String() string { return proto.CompactTextString(m) } func (*DashboardRequest) ProtoMessage() {} func (*DashboardRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{29} + return fileDescriptor_inspector_9250660af0f945d7, []int{25} } func (m *DashboardRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DashboardRequest.Unmarshal(m, b) @@ -1312,8 +1125,8 @@ func (m *DashboardRequest) XXX_Unmarshal(b []byte) error { func (m *DashboardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DashboardRequest.Marshal(b, m, deterministic) } -func (m *DashboardRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DashboardRequest.Merge(m, src) +func (dst *DashboardRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DashboardRequest.Merge(dst, src) } func (m *DashboardRequest) XXX_Size() int { return xxx_messageInfo_DashboardRequest.Size(m) @@ -1343,7 +1156,7 @@ func (m *DashboardResponse) Reset() { *m = DashboardResponse{} } func (m *DashboardResponse) String() string { return proto.CompactTextString(m) } func (*DashboardResponse) ProtoMessage() {} func (*DashboardResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{30} + return fileDescriptor_inspector_9250660af0f945d7, []int{26} } func (m *DashboardResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DashboardResponse.Unmarshal(m, b) @@ -1351,8 +1164,8 @@ func (m *DashboardResponse) XXX_Unmarshal(b []byte) error { func (m *DashboardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DashboardResponse.Marshal(b, m, deterministic) } -func (m *DashboardResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DashboardResponse.Merge(m, src) +func (dst *DashboardResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DashboardResponse.Merge(dst, src) } func (m *DashboardResponse) XXX_Size() int { return xxx_messageInfo_DashboardResponse.Size(m) @@ -1433,7 +1246,7 @@ func (m *SegmentHealthRequest) Reset() { *m = SegmentHealthRequest{} } func (m *SegmentHealthRequest) String() string { return proto.CompactTextString(m) } func (*SegmentHealthRequest) ProtoMessage() {} func (*SegmentHealthRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{31} + return fileDescriptor_inspector_9250660af0f945d7, []int{27} } func (m *SegmentHealthRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SegmentHealthRequest.Unmarshal(m, b) @@ -1441,8 +1254,8 @@ func (m *SegmentHealthRequest) XXX_Unmarshal(b []byte) error { func (m *SegmentHealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SegmentHealthRequest.Marshal(b, m, deterministic) } -func (m *SegmentHealthRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentHealthRequest.Merge(m, src) +func (dst *SegmentHealthRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentHealthRequest.Merge(dst, src) } func (m *SegmentHealthRequest) XXX_Size() int { return xxx_messageInfo_SegmentHealthRequest.Size(m) @@ -1493,7 +1306,7 @@ func (m *SegmentHealth) Reset() { *m = SegmentHealth{} } func (m *SegmentHealth) String() string { return proto.CompactTextString(m) } func (*SegmentHealth) ProtoMessage() {} func (*SegmentHealth) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{32} + return fileDescriptor_inspector_9250660af0f945d7, []int{28} } func (m *SegmentHealth) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SegmentHealth.Unmarshal(m, b) @@ -1501,8 +1314,8 @@ func (m *SegmentHealth) XXX_Unmarshal(b []byte) error { func (m *SegmentHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SegmentHealth.Marshal(b, m, deterministic) } -func (m *SegmentHealth) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentHealth.Merge(m, src) +func (dst *SegmentHealth) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentHealth.Merge(dst, src) } func (m *SegmentHealth) XXX_Size() int { return xxx_messageInfo_SegmentHealth.Size(m) @@ -1539,7 +1352,7 @@ func (m *SegmentHealthResponse) Reset() { *m = SegmentHealthResponse{} } func (m *SegmentHealthResponse) String() string { return proto.CompactTextString(m) } func (*SegmentHealthResponse) ProtoMessage() {} func (*SegmentHealthResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{33} + return fileDescriptor_inspector_9250660af0f945d7, []int{29} } func (m *SegmentHealthResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SegmentHealthResponse.Unmarshal(m, b) @@ -1547,8 +1360,8 @@ func (m *SegmentHealthResponse) XXX_Unmarshal(b []byte) error { func (m *SegmentHealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SegmentHealthResponse.Marshal(b, m, deterministic) } -func (m *SegmentHealthResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SegmentHealthResponse.Merge(m, src) +func (dst *SegmentHealthResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SegmentHealthResponse.Merge(dst, src) } func (m *SegmentHealthResponse) XXX_Size() int { return xxx_messageInfo_SegmentHealthResponse.Size(m) @@ -1589,7 +1402,7 @@ func (m *ObjectHealthRequest) Reset() { *m = ObjectHealthRequest{} } func (m *ObjectHealthRequest) String() string { return proto.CompactTextString(m) } func (*ObjectHealthRequest) ProtoMessage() {} func (*ObjectHealthRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{34} + return fileDescriptor_inspector_9250660af0f945d7, []int{30} } func (m *ObjectHealthRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ObjectHealthRequest.Unmarshal(m, b) @@ -1597,8 +1410,8 @@ func (m *ObjectHealthRequest) XXX_Unmarshal(b []byte) error { func (m *ObjectHealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ObjectHealthRequest.Marshal(b, m, deterministic) } -func (m *ObjectHealthRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectHealthRequest.Merge(m, src) +func (dst *ObjectHealthRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ObjectHealthRequest.Merge(dst, src) } func (m *ObjectHealthRequest) XXX_Size() int { return xxx_messageInfo_ObjectHealthRequest.Size(m) @@ -1663,7 +1476,7 @@ func (m *ObjectHealthResponse) Reset() { *m = ObjectHealthResponse{} } func (m *ObjectHealthResponse) String() string { return proto.CompactTextString(m) } func (*ObjectHealthResponse) ProtoMessage() {} func (*ObjectHealthResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a07d9034b2dd9d26, []int{35} + return fileDescriptor_inspector_9250660af0f945d7, []int{31} } func (m *ObjectHealthResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ObjectHealthResponse.Unmarshal(m, b) @@ -1671,8 +1484,8 @@ func (m *ObjectHealthResponse) XXX_Unmarshal(b []byte) error { func (m *ObjectHealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ObjectHealthResponse.Marshal(b, m, deterministic) } -func (m *ObjectHealthResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectHealthResponse.Merge(m, src) +func (dst *ObjectHealthResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ObjectHealthResponse.Merge(dst, src) } func (m *ObjectHealthResponse) XXX_Size() int { return xxx_messageInfo_ObjectHealthResponse.Size(m) @@ -1701,10 +1514,6 @@ func init() { proto.RegisterType((*ListIrreparableSegmentsRequest)(nil), "inspector.ListIrreparableSegmentsRequest") proto.RegisterType((*IrreparableSegment)(nil), "inspector.IrreparableSegment") proto.RegisterType((*ListIrreparableSegmentsResponse)(nil), "inspector.ListIrreparableSegmentsResponse") - 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((*GetBucketListRequest)(nil), "inspector.GetBucketListRequest") @@ -1737,124 +1546,6 @@ func init() { proto.RegisterType((*ObjectHealthResponse)(nil), "inspector.ObjectHealthResponse") } -func init() { proto.RegisterFile("inspector.proto", fileDescriptor_a07d9034b2dd9d26) } - -var fileDescriptor_a07d9034b2dd9d26 = []byte{ - // 1782 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x93, 0x1b, 0x49, - 0x11, 0x76, 0xeb, 0x35, 0x52, 0x4a, 0xa3, 0x47, 0x49, 0xf6, 0x0a, 0xad, 0x3d, 0x1a, 0x9a, 0x87, - 0xbd, 0x36, 0xc8, 0x46, 0x98, 0xc3, 0xb2, 0xb1, 0x07, 0x8f, 0xcc, 0xae, 0x15, 0x6b, 0xec, 0xd9, - 0x1e, 0xc3, 0x81, 0xd8, 0x40, 0x51, 0xea, 0xae, 0xd1, 0x34, 0x96, 0xba, 0x7a, 0xbb, 0x4b, 0x66, - 0xe7, 0x0f, 0x10, 0x70, 0xe2, 0xc4, 0x01, 0xae, 0xfc, 0x09, 0x82, 0x2b, 0x17, 0x6e, 0xdc, 0x39, - 0xf8, 0x42, 0x04, 0xdc, 0xb9, 0x71, 0x23, 0x2a, 0xab, 0xfa, 0x2d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a4, 0xa5, 0xd9, 0x51, 0x1f, 0x46, 0xe3, 0xbd, 0xf6, 0x58, 0xbb, 0x57, 0xf9, - 0x8a, 0x39, 0xde, 0x7b, 0xad, 0xee, 0x38, 0x26, 0x3b, 0xab, 0xa3, 0x79, 0xe3, 0xa4, 0xf2, 0x93, - 0x92, 0xbf, 0x5c, 0xd6, 0xb0, 0x95, 0xf8, 0xee, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x28, - 0x82, 0xe5, 0xcf, 0x14, 0x00, 0x00, -} - // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -2147,10 +1838,6 @@ type OverlayInspectorClient interface { CountNodes(ctx context.Context, in *CountNodesRequest, opts ...grpc.CallOption) (*CountNodesResponse, error) // DumpNodes returns all the nodes in the cache DumpNodes(ctx context.Context, in *DumpNodesRequest, opts ...grpc.CallOption) (*DumpNodesResponse, error) - // 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 overlayInspectorClient struct { @@ -2179,34 +1866,12 @@ func (c *overlayInspectorClient) DumpNodes(ctx context.Context, in *DumpNodesReq return out, nil } -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 -} - // 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) // DumpNodes returns all the nodes in the cache DumpNodes(context.Context, *DumpNodesRequest) (*DumpNodesResponse, error) - // 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 RegisterOverlayInspectorServer(s *grpc.Server, srv OverlayInspectorServer) { @@ -2249,42 +1914,6 @@ func _OverlayInspector_DumpNodes_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _OverlayInspector_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.(OverlayInspectorServer).GetStats(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/inspector.OverlayInspector/GetStats", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OverlayInspectorServer).GetStats(ctx, req.(*GetStatsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _OverlayInspector_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.(OverlayInspectorServer).CreateStats(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/inspector.OverlayInspector/CreateStats", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OverlayInspectorServer).CreateStats(ctx, req.(*CreateStatsRequest)) - } - return interceptor(ctx, in, info, handler) -} - var _OverlayInspector_serviceDesc = grpc.ServiceDesc{ ServiceName: "inspector.OverlayInspector", HandlerType: (*OverlayInspectorServer)(nil), @@ -2297,14 +1926,6 @@ var _OverlayInspector_serviceDesc = grpc.ServiceDesc{ MethodName: "DumpNodes", Handler: _OverlayInspector_DumpNodes_Handler, }, - { - MethodName: "GetStats", - Handler: _OverlayInspector_GetStats_Handler, - }, - { - MethodName: "CreateStats", - Handler: _OverlayInspector_CreateStats_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "inspector.proto", @@ -2577,3 +2198,111 @@ var _HealthInspector_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "inspector.proto", } + +func init() { proto.RegisterFile("inspector.proto", fileDescriptor_inspector_9250660af0f945d7) } + +var fileDescriptor_inspector_9250660af0f945d7 = []byte{ + // 1619 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4b, 0x73, 0x1b, 0x45, + 0x10, 0xf6, 0xea, 0x65, 0xa9, 0x25, 0x4b, 0xf2, 0xd8, 0x49, 0x84, 0x92, 0x58, 0x66, 0x79, 0xe4, + 0x05, 0x72, 0x10, 0xe1, 0x90, 0x4a, 0xe5, 0xe0, 0x07, 0x21, 0xaa, 0x84, 0xc4, 0x59, 0x07, 0x0e, + 0x54, 0x0a, 0xd5, 0x48, 0x3b, 0x96, 0x17, 0x4b, 0x3b, 0x9b, 0xdd, 0x51, 0x88, 0xff, 0x00, 0x05, + 0x27, 0x4e, 0x1c, 0x38, 0x53, 0xfc, 0x09, 0xae, 0x5c, 0xb8, 0x71, 0xe7, 0x90, 0x23, 0xdc, 0xb9, + 0x71, 0xa3, 0xa6, 0x67, 0xf6, 0xa5, 0x07, 0x76, 0x15, 0x70, 0xd3, 0x7c, 0xfd, 0x4d, 0x4f, 0x77, + 0xcf, 0xa3, 0xbf, 0x15, 0xd4, 0x1c, 0x37, 0xf0, 0xd8, 0x40, 0x70, 0xbf, 0xed, 0xf9, 0x5c, 0x70, + 0x52, 0x8a, 0x80, 0x26, 0x0c, 0xf9, 0x90,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00, + 0xb9, 0x02, 0x35, 0xfa, 0x82, 0x3a, 0x23, 0xd9, 0x1c, 0x34, 0x27, 0x83, 0x9c, 0x6a, 0x04, 0x2b, + 0xe2, 0xeb, 0x50, 0x41, 0x3f, 0x8e, 0x3b, 0xc4, 0x73, 0xa5, 0xaa, 0x51, 0x96, 0x58, 0x57, 0x41, + 0xb2, 0x57, 0x22, 0x85, 0x29, 0x86, 0x6a, 0x81, 0xb8, 0xfa, 0x87, 0x8a, 0xf0, 0x16, 0x54, 0x91, + 0xd0, 0xa7, 0xae, 0xfd, 0xa5, 0x63, 0x8b, 0x23, 0xdd, 0xf5, 0x56, 0x24, 0xba, 0x13, 0x82, 0x64, + 0x0b, 0xd6, 0xe2, 0x98, 0x62, 0x6e, 0x41, 0x75, 0xc8, 0xc8, 0x14, 0x4d, 0xc0, 0xb2, 0xd2, 0xe0, + 0xa8, 0xcf, 0xa9, 0x6f, 0x87, 0xf5, 0xf8, 0x35, 0x0b, 0xab, 0x09, 0x50, 0x57, 0xe3, 0x0a, 0x2c, + 0xcb, 0xf2, 0x2d, 0x6e, 0x15, 0x05, 0x69, 0xee, 0xda, 0xe4, 0x1a, 0xd4, 0x91, 0x38, 0xe0, 0xae, + 0xcb, 0x06, 0x52, 0xe7, 0x04, 0xba, 0x30, 0x35, 0x89, 0xef, 0xc6, 0x30, 0xb9, 0x01, 0xab, 0x7d, + 0xce, 0x45, 0x20, 0x7c, 0xea, 0xf5, 0xc2, 0x6b, 0x97, 0xc5, 0x17, 0xa2, 0x1e, 0x19, 0xf4, 0xad, + 0x93, 0x7e, 0x51, 0x67, 0xb8, 0x74, 0x14, 0x71, 0x73, 0xc8, 0xad, 0x85, 0x78, 0x82, 0xca, 0x5e, + 0x4e, 0x51, 0xf3, 0x8a, 0x1a, 0xe2, 0x21, 0xf5, 0x16, 0x9e, 0x64, 0x11, 0x60, 0x8d, 0xca, 0x9d, + 0x8d, 0x44, 0x3f, 0x9d, 0x73, 0x26, 0x2c, 0x45, 0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3, 0xda, 0x3d, 0x9d, 0x6e, 0x4f, 0xad, + 0x85, 0x6f, 0xd8, 0x9c, 0x33, 0x39, 0xb7, 0x15, 0x99, 0x4b, 0x3b, 0xb9, 0xcf, 0x32, 0x5e, 0xbf, + 0x5f, 0xc0, 0xbe, 0xfd, 0xfe, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7d, 0xe2, 0xa2, 0x6a, 0x66, + 0x12, 0x00, 0x00, +} diff --git a/pkg/pb/inspector.proto b/pkg/pb/inspector.proto index 46c96f6d9..ac14e4195 100644 --- a/pkg/pb/inspector.proto +++ b/pkg/pb/inspector.proto @@ -34,10 +34,6 @@ service OverlayInspector { rpc CountNodes(CountNodesRequest) returns (CountNodesResponse); // DumpNodes returns all the nodes in the cache rpc DumpNodes(DumpNodesRequest) returns (DumpNodesResponse); - // GetStats returns the stats for a particular node ID - rpc GetStats(GetStatsRequest) returns (GetStatsResponse); - // CreateStats creates a node with specified stats - rpc CreateStats(CreateStatsRequest) returns (CreateStatsResponse); } service PieceStoreInspector { @@ -78,30 +74,6 @@ message ListIrreparableSegmentsResponse { repeated IrreparableSegment segments = 1; } -// GetStats -message GetStatsRequest { - bytes node_id = 1 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false]; -} - -message GetStatsResponse { - int64 audit_count = 1; - double audit_ratio = 2; - int64 uptime_count = 3; - double uptime_ratio = 4; -} - -// CreateStats -message CreateStatsRequest { - bytes node_id = 1 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false]; - int64 audit_count = 2; - int64 audit_success_count = 3; - int64 uptime_count = 4; - int64 uptime_success_count = 5; -} - -message CreateStatsResponse { -} - // CountNodes message CountNodesResponse { int64 count = 1; diff --git a/pkg/pb/node.pb.go b/pkg/pb/node.pb.go index db84ba6f0..9095a9740 100644 --- a/pkg/pb/node.pb.go +++ b/pkg/pb/node.pb.go @@ -3,13 +3,11 @@ package pb -import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" +import _ "github.com/gogo/protobuf/gogoproto" +import timestamp "github.com/golang/protobuf/ptypes/timestamp" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -40,7 +38,6 @@ var NodeType_name = map[int32]string{ 3: "UPLINK", 4: "BOOTSTRAP", } - var NodeType_value = map[string]int32{ "INVALID": 0, "SATELLITE": 1, @@ -52,9 +49,8 @@ var NodeType_value = map[string]int32{ func (x NodeType) String() string { return proto.EnumName(NodeType_name, int32(x)) } - func (NodeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{0} + return fileDescriptor_node_a9c4d6a5457645c6, []int{0} } // NodeTransport is an enum of possible transports for the overlay network @@ -67,7 +63,6 @@ const ( var NodeTransport_name = map[int32]string{ 0: "TCP_TLS_GRPC", } - var NodeTransport_value = map[string]int32{ "TCP_TLS_GRPC": 0, } @@ -75,9 +70,8 @@ var NodeTransport_value = map[string]int32{ func (x NodeTransport) String() string { return proto.EnumName(NodeTransport_name, int32(x)) } - func (NodeTransport) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{1} + return fileDescriptor_node_a9c4d6a5457645c6, []int{1} } // TODO move statdb.Update() stuff out of here @@ -96,7 +90,7 @@ func (m *Node) Reset() { *m = Node{} } func (m *Node) String() string { return proto.CompactTextString(m) } func (*Node) ProtoMessage() {} func (*Node) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{0} + return fileDescriptor_node_a9c4d6a5457645c6, []int{0} } func (m *Node) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Node.Unmarshal(m, b) @@ -104,8 +98,8 @@ func (m *Node) XXX_Unmarshal(b []byte) error { func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Node.Marshal(b, m, deterministic) } -func (m *Node) XXX_Merge(src proto.Message) { - xxx_messageInfo_Node.Merge(m, src) +func (dst *Node) XXX_Merge(src proto.Message) { + xxx_messageInfo_Node.Merge(dst, src) } func (m *Node) XXX_Size() int { return xxx_messageInfo_Node.Size(m) @@ -143,7 +137,7 @@ func (m *NodeAddress) Reset() { *m = NodeAddress{} } func (m *NodeAddress) String() string { return proto.CompactTextString(m) } func (*NodeAddress) ProtoMessage() {} func (*NodeAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{1} + return fileDescriptor_node_a9c4d6a5457645c6, []int{1} } func (m *NodeAddress) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeAddress.Unmarshal(m, b) @@ -151,8 +145,8 @@ func (m *NodeAddress) XXX_Unmarshal(b []byte) error { func (m *NodeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeAddress.Marshal(b, m, deterministic) } -func (m *NodeAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeAddress.Merge(m, src) +func (dst *NodeAddress) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeAddress.Merge(dst, src) } func (m *NodeAddress) XXX_Size() int { return xxx_messageInfo_NodeAddress.Size(m) @@ -177,110 +171,6 @@ func (m *NodeAddress) GetAddress() string { return "" } -// NodeStats is the reputation characteristics of a node -type NodeStats struct { - NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"` - Latency_90 int64 `protobuf:"varint,2,opt,name=latency_90,json=latency90,proto3" json:"latency_90,omitempty"` - AuditSuccessRatio float64 `protobuf:"fixed64,3,opt,name=audit_success_ratio,json=auditSuccessRatio,proto3" json:"audit_success_ratio,omitempty"` - UptimeRatio float64 `protobuf:"fixed64,4,opt,name=uptime_ratio,json=uptimeRatio,proto3" json:"uptime_ratio,omitempty"` - AuditCount int64 `protobuf:"varint,5,opt,name=audit_count,json=auditCount,proto3" json:"audit_count,omitempty"` - AuditSuccessCount int64 `protobuf:"varint,6,opt,name=audit_success_count,json=auditSuccessCount,proto3" json:"audit_success_count,omitempty"` - UptimeCount int64 `protobuf:"varint,7,opt,name=uptime_count,json=uptimeCount,proto3" json:"uptime_count,omitempty"` - UptimeSuccessCount int64 `protobuf:"varint,8,opt,name=uptime_success_count,json=uptimeSuccessCount,proto3" json:"uptime_success_count,omitempty"` - LastContactSuccess *timestamp.Timestamp `protobuf:"bytes,9,opt,name=last_contact_success,json=lastContactSuccess,proto3" json:"last_contact_success,omitempty"` - LastContactFailure *timestamp.Timestamp `protobuf:"bytes,10,opt,name=last_contact_failure,json=lastContactFailure,proto3" json:"last_contact_failure,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeStats) Reset() { *m = NodeStats{} } -func (m *NodeStats) String() string { return proto.CompactTextString(m) } -func (*NodeStats) ProtoMessage() {} -func (*NodeStats) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{2} -} -func (m *NodeStats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeStats.Unmarshal(m, b) -} -func (m *NodeStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeStats.Marshal(b, m, deterministic) -} -func (m *NodeStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeStats.Merge(m, src) -} -func (m *NodeStats) XXX_Size() int { - return xxx_messageInfo_NodeStats.Size(m) -} -func (m *NodeStats) XXX_DiscardUnknown() { - xxx_messageInfo_NodeStats.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeStats proto.InternalMessageInfo - -func (m *NodeStats) GetLatency_90() int64 { - if m != nil { - return m.Latency_90 - } - return 0 -} - -func (m *NodeStats) GetAuditSuccessRatio() float64 { - if m != nil { - return m.AuditSuccessRatio - } - return 0 -} - -func (m *NodeStats) GetUptimeRatio() float64 { - if m != nil { - return m.UptimeRatio - } - return 0 -} - -func (m *NodeStats) GetAuditCount() int64 { - if m != nil { - return m.AuditCount - } - return 0 -} - -func (m *NodeStats) GetAuditSuccessCount() int64 { - if m != nil { - return m.AuditSuccessCount - } - return 0 -} - -func (m *NodeStats) GetUptimeCount() int64 { - if m != nil { - return m.UptimeCount - } - return 0 -} - -func (m *NodeStats) GetUptimeSuccessCount() int64 { - if m != nil { - return m.UptimeSuccessCount - } - return 0 -} - -func (m *NodeStats) GetLastContactSuccess() *timestamp.Timestamp { - if m != nil { - return m.LastContactSuccess - } - return nil -} - -func (m *NodeStats) GetLastContactFailure() *timestamp.Timestamp { - if m != nil { - return m.LastContactFailure - } - return nil -} - // NodeOperator contains info about the storage node operator type NodeOperator struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` @@ -294,7 +184,7 @@ func (m *NodeOperator) Reset() { *m = NodeOperator{} } func (m *NodeOperator) String() string { return proto.CompactTextString(m) } func (*NodeOperator) ProtoMessage() {} func (*NodeOperator) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{3} + return fileDescriptor_node_a9c4d6a5457645c6, []int{2} } func (m *NodeOperator) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeOperator.Unmarshal(m, b) @@ -302,8 +192,8 @@ func (m *NodeOperator) XXX_Unmarshal(b []byte) error { func (m *NodeOperator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeOperator.Marshal(b, m, deterministic) } -func (m *NodeOperator) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeOperator.Merge(m, src) +func (dst *NodeOperator) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeOperator.Merge(dst, src) } func (m *NodeOperator) XXX_Size() int { return xxx_messageInfo_NodeOperator.Size(m) @@ -341,7 +231,7 @@ func (m *NodeCapacity) Reset() { *m = NodeCapacity{} } func (m *NodeCapacity) String() string { return proto.CompactTextString(m) } func (*NodeCapacity) ProtoMessage() {} func (*NodeCapacity) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{4} + return fileDescriptor_node_a9c4d6a5457645c6, []int{3} } func (m *NodeCapacity) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeCapacity.Unmarshal(m, b) @@ -349,8 +239,8 @@ func (m *NodeCapacity) XXX_Unmarshal(b []byte) error { func (m *NodeCapacity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeCapacity.Marshal(b, m, deterministic) } -func (m *NodeCapacity) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeCapacity.Merge(m, src) +func (dst *NodeCapacity) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeCapacity.Merge(dst, src) } func (m *NodeCapacity) XXX_Size() int { return xxx_messageInfo_NodeCapacity.Size(m) @@ -388,7 +278,7 @@ func (m *NodeMetadata) Reset() { *m = NodeMetadata{} } func (m *NodeMetadata) String() string { return proto.CompactTextString(m) } func (*NodeMetadata) ProtoMessage() {} func (*NodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{5} + return fileDescriptor_node_a9c4d6a5457645c6, []int{4} } func (m *NodeMetadata) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeMetadata.Unmarshal(m, b) @@ -396,8 +286,8 @@ func (m *NodeMetadata) XXX_Unmarshal(b []byte) error { func (m *NodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeMetadata.Marshal(b, m, deterministic) } -func (m *NodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeMetadata.Merge(m, src) +func (dst *NodeMetadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeMetadata.Merge(dst, src) } func (m *NodeMetadata) XXX_Size() int { return xxx_messageInfo_NodeMetadata.Size(m) @@ -435,7 +325,7 @@ func (m *NodeRestrictions) Reset() { *m = NodeRestrictions{} } func (m *NodeRestrictions) String() string { return proto.CompactTextString(m) } func (*NodeRestrictions) ProtoMessage() {} func (*NodeRestrictions) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{6} + return fileDescriptor_node_a9c4d6a5457645c6, []int{5} } func (m *NodeRestrictions) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeRestrictions.Unmarshal(m, b) @@ -443,8 +333,8 @@ func (m *NodeRestrictions) XXX_Unmarshal(b []byte) error { func (m *NodeRestrictions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeRestrictions.Marshal(b, m, deterministic) } -func (m *NodeRestrictions) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeRestrictions.Merge(m, src) +func (dst *NodeRestrictions) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeRestrictions.Merge(dst, src) } func (m *NodeRestrictions) XXX_Size() int { return xxx_messageInfo_NodeRestrictions.Size(m) @@ -484,7 +374,7 @@ func (m *NodeVersion) Reset() { *m = NodeVersion{} } func (m *NodeVersion) String() string { return proto.CompactTextString(m) } func (*NodeVersion) ProtoMessage() {} func (*NodeVersion) Descriptor() ([]byte, []int) { - return fileDescriptor_0c843d59d2d938e7, []int{7} + return fileDescriptor_node_a9c4d6a5457645c6, []int{6} } func (m *NodeVersion) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_NodeVersion.Unmarshal(m, b) @@ -492,8 +382,8 @@ func (m *NodeVersion) XXX_Unmarshal(b []byte) error { func (m *NodeVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_NodeVersion.Marshal(b, m, deterministic) } -func (m *NodeVersion) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeVersion.Merge(m, src) +func (dst *NodeVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeVersion.Merge(dst, src) } func (m *NodeVersion) XXX_Size() int { return xxx_messageInfo_NodeVersion.Size(m) @@ -533,67 +423,56 @@ func (m *NodeVersion) GetRelease() bool { } func init() { - proto.RegisterEnum("node.NodeType", NodeType_name, NodeType_value) - proto.RegisterEnum("node.NodeTransport", NodeTransport_name, NodeTransport_value) proto.RegisterType((*Node)(nil), "node.Node") proto.RegisterType((*NodeAddress)(nil), "node.NodeAddress") - proto.RegisterType((*NodeStats)(nil), "node.NodeStats") proto.RegisterType((*NodeOperator)(nil), "node.NodeOperator") proto.RegisterType((*NodeCapacity)(nil), "node.NodeCapacity") proto.RegisterType((*NodeMetadata)(nil), "node.NodeMetadata") proto.RegisterType((*NodeRestrictions)(nil), "node.NodeRestrictions") proto.RegisterType((*NodeVersion)(nil), "node.NodeVersion") + proto.RegisterEnum("node.NodeType", NodeType_name, NodeType_value) + proto.RegisterEnum("node.NodeTransport", NodeTransport_name, NodeTransport_value) } -func init() { proto.RegisterFile("node.proto", fileDescriptor_0c843d59d2d938e7) } +func init() { proto.RegisterFile("node.proto", fileDescriptor_node_a9c4d6a5457645c6) } -var fileDescriptor_0c843d59d2d938e7 = []byte{ - // 739 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcd, 0x6e, 0xea, 0x46, - 0x14, 0x80, 0x63, 0x20, 0x80, 0x0f, 0x3f, 0xf2, 0x9d, 0x8b, 0x5a, 0x2b, 0x55, 0x0b, 0x17, 0xa9, - 0x2a, 0xba, 0x95, 0xb8, 0xe9, 0xed, 0xa6, 0x91, 0xba, 0x01, 0x92, 0xa6, 0xb4, 0x14, 0xd0, 0xe0, - 0x66, 0x91, 0x8d, 0x35, 0xd8, 0x13, 0x18, 0xc5, 0xd8, 0x96, 0x67, 0xdc, 0x88, 0x77, 0xe9, 0x03, - 0xf5, 0x19, 0xba, 0xc8, 0xba, 0x4f, 0x51, 0x55, 0xf3, 0xe3, 0x10, 0x14, 0xb5, 0x52, 0xa4, 0xee, - 0x7c, 0xce, 0xf9, 0xce, 0xef, 0x9c, 0x63, 0x80, 0x38, 0x09, 0xe9, 0x30, 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, 0x51, 0x03, 0x6a, 0xd3, 0xf9, 0xcd, 0x68, 0x36, 0xbd, 0x74, 0x4e, 0x50, 0x0b, 0xec, 0xd5, - 0xc8, 0xbb, 0x9a, 0xcd, 0xa6, 0xde, 0x95, 0x63, 0x49, 0xdb, 0xca, 0x5b, 0xe0, 0xd1, 0xf5, 0x95, - 0x53, 0x42, 0x00, 0xd5, 0x5f, 0x97, 0xb3, 0xe9, 0xfc, 0x67, 0xa7, 0x2c, 0xb9, 0xf1, 0x62, 0xe1, - 0xad, 0x3c, 0x3c, 0x5a, 0x3a, 0x95, 0xf7, 0xef, 0xa0, 0x75, 0xf4, 0xdf, 0x40, 0x0e, 0x34, 0xbd, - 0xc9, 0xd2, 0xf7, 0x66, 0x2b, 0xff, 0x1a, 0x2f, 0x27, 0xce, 0xc9, 0xb8, 0x72, 0x5b, 0x4a, 0xd7, - 0xeb, 0xaa, 0xaa, 0xf8, 0xdb, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x9d, 0x3d, 0x28, 0xd5, 0xcf, - 0x05, 0x00, 0x00, +var fileDescriptor_node_a9c4d6a5457645c6 = []byte{ + // 577 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0xcb, 0x6e, 0x13, 0x31, + 0x14, 0xed, 0x24, 0xd3, 0x24, 0x73, 0xf3, 0xd0, 0x60, 0x2a, 0x88, 0x8a, 0x44, 0x42, 0x24, 0xa4, + 0xa8, 0x48, 0xa9, 0x28, 0x1b, 0x16, 0x6c, 0x92, 0xb6, 0x2a, 0x81, 0x90, 0x44, 0xce, 0xd0, 0x45, + 0x37, 0x23, 0x27, 0x76, 0x13, 0xab, 0x93, 0xb1, 0x65, 0x7b, 0xa8, 0xf2, 0x2f, 0x7c, 0x10, 0xdf, + 0xc0, 0xa2, 0x9f, 0x82, 0x90, 0xe7, 0xd1, 0xc7, 0x12, 0x89, 0xdd, 0x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04, 0xef, 0x7e, 0xc5, 0xdb, 0xe5, 0x74, 0x51, 0x0f, 0x07, + 0xd9, 0x23, 0x18, 0x14, 0x8f, 0x60, 0x10, 0x14, 0x0a, 0xfc, 0x20, 0xb6, 0x97, 0x2a, 0x16, 0x31, + 0xa2, 0x59, 0xdb, 0xed, 0x3a, 0xfd, 0x1a, 0x2e, 0xe0, 0xd1, 0x14, 0x6a, 0xe9, 0xf0, 0x77, 0x92, + 0xa1, 0x3a, 0x54, 0xc7, 0xd3, 0xcb, 0xe1, 0x64, 0x7c, 0xe6, 0xef, 0xa1, 0x26, 0x78, 0x8b, 0x61, + 0x70, 0x3e, 0x99, 0x8c, 0x83, 0x73, 0xdf, 0xb1, 0xb5, 0x45, 0x30, 0xc3, 0xc3, 0x8b, 0x73, 0xbf, + 0x84, 0x00, 0x2a, 0xdf, 0xe7, 0x93, 0xf1, 0xf4, 0xab, 0x5f, 0xb6, 0xba, 0xd1, 0x6c, 0x16, 0x2c, + 0x02, 0x3c, 0x9c, 0xfb, 0xee, 0xd1, 0x1b, 0x68, 0x3e, 0x59, 0x26, 0xe4, 0x43, 0x23, 0x38, 0x9d, + 0x87, 0xc1, 0x64, 0x11, 0x5e, 0xe0, 0xf9, 0xa9, 0xbf, 0x37, 0x72, 0xaf, 0x4a, 0x72, 0xb9, 0xac, + 0xa4, 0x8e, 0x3f, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xa6, 0x6e, 0x66, 0xe4, 0x03, 0x00, + 0x00, } diff --git a/pkg/pb/node.proto b/pkg/pb/node.proto index c09845001..ee7c3871e 100644 --- a/pkg/pb/node.proto +++ b/pkg/pb/node.proto @@ -39,19 +39,6 @@ message NodeAddress { enum NodeTransport { TCP_TLS_GRPC = 0; } -// NodeStats is the reputation characteristics of a node -message NodeStats { - bytes node_id = 1 [(gogoproto.customtype) = "NodeID", (gogoproto.nullable) = false]; // TODO: remove - int64 latency_90 = 2; // 90th percentile measure of storagenode latency - double audit_success_ratio = 3; // (auditSuccessCount / totalAuditCount) - double uptime_ratio = 4; // (uptimeCount / totalUptimeCheckCount) - int64 audit_count = 5; - int64 audit_success_count = 6; - int64 uptime_count = 7; - int64 uptime_success_count = 8; - google.protobuf.Timestamp last_contact_success = 9; - google.protobuf.Timestamp last_contact_failure = 10; -} // NodeOperator contains info about the storage node operator message NodeOperator { diff --git a/proto.lock b/proto.lock index 9bb7cd5b6..195038761 100644 --- a/proto.lock +++ b/proto.lock @@ -678,94 +678,6 @@ } ] }, - { - "name": "GetStatsRequest", - "fields": [ - { - "id": 1, - "name": "node_id", - "type": "bytes", - "options": [ - { - "name": "(gogoproto.customtype)", - "value": "NodeID" - }, - { - "name": "(gogoproto.nullable)", - "value": "false" - } - ] - } - ] - }, - { - "name": "GetStatsResponse", - "fields": [ - { - "id": 1, - "name": "audit_count", - "type": "int64" - }, - { - "id": 2, - "name": "audit_ratio", - "type": "double" - }, - { - "id": 3, - "name": "uptime_count", - "type": "int64" - }, - { - "id": 4, - "name": "uptime_ratio", - "type": "double" - } - ] - }, - { - "name": "CreateStatsRequest", - "fields": [ - { - "id": 1, - "name": "node_id", - "type": "bytes", - "options": [ - { - "name": "(gogoproto.customtype)", - "value": "NodeID" - }, - { - "name": "(gogoproto.nullable)", - "value": "false" - } - ] - }, - { - "id": 2, - "name": "audit_count", - "type": "int64" - }, - { - "id": 3, - "name": "audit_success_count", - "type": "int64" - }, - { - "id": 4, - "name": "uptime_count", - "type": "int64" - }, - { - "id": 5, - "name": "uptime_success_count", - "type": "int64" - } - ] - }, - { - "name": "CreateStatsResponse" - }, { "name": "CountNodesResponse", "fields": [ @@ -1361,16 +1273,6 @@ "name": "DumpNodes", "in_type": "DumpNodesRequest", "out_type": "DumpNodesResponse" - }, - { - "name": "GetStats", - "in_type": "GetStatsRequest", - "out_type": "GetStatsResponse" - }, - { - "name": "CreateStats", - "in_type": "CreateStatsRequest", - "out_type": "CreateStatsResponse" } ] }, @@ -1973,71 +1875,6 @@ } ] }, - { - "name": "NodeStats", - "fields": [ - { - "id": 1, - "name": "node_id", - "type": "bytes", - "options": [ - { - "name": "(gogoproto.customtype)", - "value": "NodeID" - }, - { - "name": "(gogoproto.nullable)", - "value": "false" - } - ] - }, - { - "id": 2, - "name": "latency_90", - "type": "int64" - }, - { - "id": 3, - "name": "audit_success_ratio", - "type": "double" - }, - { - "id": 4, - "name": "uptime_ratio", - "type": "double" - }, - { - "id": 5, - "name": "audit_count", - "type": "int64" - }, - { - "id": 6, - "name": "audit_success_count", - "type": "int64" - }, - { - "id": 7, - "name": "uptime_count", - "type": "int64" - }, - { - "id": 8, - "name": "uptime_success_count", - "type": "int64" - }, - { - "id": 9, - "name": "last_contact_success", - "type": "google.protobuf.Timestamp" - }, - { - "id": 10, - "name": "last_contact_failure", - "type": "google.protobuf.Timestamp" - } - ] - }, { "name": "NodeOperator", "fields": [