2019-06-25 11:40:32 +01:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
|
// source: nodestats.proto
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
fmt "fmt"
|
|
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
2019-07-02 11:42:09 +01:00
|
|
|
_ "github.com/golang/protobuf/ptypes/timestamp"
|
2019-06-25 11:40:32 +01:00
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
math "math"
|
2019-07-02 11:42:09 +01:00
|
|
|
time "time"
|
2019-06-25 11:40:32 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
2019-07-02 11:42:09 +01:00
|
|
|
var _ = time.Kitchen
|
2019-06-25 11:40:32 +01:00
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
|
|
type UptimeCheckRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UptimeCheckRequest) Reset() { *m = UptimeCheckRequest{} }
|
|
|
|
func (m *UptimeCheckRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*UptimeCheckRequest) ProtoMessage() {}
|
|
|
|
func (*UptimeCheckRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e0b184ee117142aa, []int{0}
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_UptimeCheckRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_UptimeCheckRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_UptimeCheckRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_UptimeCheckRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_UptimeCheckRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_UptimeCheckRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type UptimeCheckResponse struct {
|
|
|
|
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
|
|
|
SuccessCount int64 `protobuf:"varint,2,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"`
|
|
|
|
ReputationAlpha float64 `protobuf:"fixed64,3,opt,name=reputation_alpha,json=reputationAlpha,proto3" json:"reputation_alpha,omitempty"`
|
|
|
|
ReputationBeta float64 `protobuf:"fixed64,4,opt,name=reputation_beta,json=reputationBeta,proto3" json:"reputation_beta,omitempty"`
|
|
|
|
ReputationScore float64 `protobuf:"fixed64,5,opt,name=reputation_score,json=reputationScore,proto3" json:"reputation_score,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UptimeCheckResponse) Reset() { *m = UptimeCheckResponse{} }
|
|
|
|
func (m *UptimeCheckResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*UptimeCheckResponse) ProtoMessage() {}
|
|
|
|
func (*UptimeCheckResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e0b184ee117142aa, []int{1}
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_UptimeCheckResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_UptimeCheckResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_UptimeCheckResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_UptimeCheckResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *UptimeCheckResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_UptimeCheckResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_UptimeCheckResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *UptimeCheckResponse) GetTotalCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.TotalCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UptimeCheckResponse) GetSuccessCount() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SuccessCount
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UptimeCheckResponse) GetReputationAlpha() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ReputationAlpha
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UptimeCheckResponse) GetReputationBeta() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ReputationBeta
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UptimeCheckResponse) GetReputationScore() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ReputationScore
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-07-02 11:42:09 +01:00
|
|
|
type DailyStorageUsageRequest struct {
|
|
|
|
From time.Time `protobuf:"bytes,1,opt,name=from,proto3,stdtime" json:"from"`
|
|
|
|
To time.Time `protobuf:"bytes,2,opt,name=to,proto3,stdtime" json:"to"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageRequest) Reset() { *m = DailyStorageUsageRequest{} }
|
|
|
|
func (m *DailyStorageUsageRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DailyStorageUsageRequest) ProtoMessage() {}
|
|
|
|
func (*DailyStorageUsageRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e0b184ee117142aa, []int{2}
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DailyStorageUsageRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DailyStorageUsageRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DailyStorageUsageRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageRequest) GetFrom() time.Time {
|
|
|
|
if m != nil {
|
|
|
|
return m.From
|
|
|
|
}
|
|
|
|
return time.Time{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageRequest) GetTo() time.Time {
|
|
|
|
if m != nil {
|
|
|
|
return m.To
|
|
|
|
}
|
|
|
|
return time.Time{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type DailyStorageUsageResponse struct {
|
|
|
|
NodeId NodeID `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3,customtype=NodeID" json:"node_id"`
|
|
|
|
DailyStorageUsage []*DailyStorageUsageResponse_StorageUsage `protobuf:"bytes,2,rep,name=daily_storage_usage,json=dailyStorageUsage,proto3" json:"daily_storage_usage,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageResponse) Reset() { *m = DailyStorageUsageResponse{} }
|
|
|
|
func (m *DailyStorageUsageResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DailyStorageUsageResponse) ProtoMessage() {}
|
|
|
|
func (*DailyStorageUsageResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e0b184ee117142aa, []int{3}
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DailyStorageUsageResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DailyStorageUsageResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DailyStorageUsageResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageResponse) GetDailyStorageUsage() []*DailyStorageUsageResponse_StorageUsage {
|
|
|
|
if m != nil {
|
|
|
|
return m.DailyStorageUsage
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type DailyStorageUsageResponse_StorageUsage struct {
|
|
|
|
AtRestTotal float64 `protobuf:"fixed64,2,opt,name=at_rest_total,json=atRestTotal,proto3" json:"at_rest_total,omitempty"`
|
|
|
|
TimeStamp time.Time `protobuf:"bytes,3,opt,name=time_stamp,json=timeStamp,proto3,stdtime" json:"time_stamp"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) Reset() {
|
|
|
|
*m = DailyStorageUsageResponse_StorageUsage{}
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DailyStorageUsageResponse_StorageUsage) ProtoMessage() {}
|
|
|
|
func (*DailyStorageUsageResponse_StorageUsage) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e0b184ee117142aa, []int{3, 0}
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageResponse_StorageUsage.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageResponse_StorageUsage.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DailyStorageUsageResponse_StorageUsage.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DailyStorageUsageResponse_StorageUsage.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DailyStorageUsageResponse_StorageUsage.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DailyStorageUsageResponse_StorageUsage proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) GetAtRestTotal() float64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AtRestTotal
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DailyStorageUsageResponse_StorageUsage) GetTimeStamp() time.Time {
|
|
|
|
if m != nil {
|
|
|
|
return m.TimeStamp
|
|
|
|
}
|
|
|
|
return time.Time{}
|
|
|
|
}
|
|
|
|
|
2019-06-25 11:40:32 +01:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*UptimeCheckRequest)(nil), "nodestats.UptimeCheckRequest")
|
|
|
|
proto.RegisterType((*UptimeCheckResponse)(nil), "nodestats.UptimeCheckResponse")
|
2019-07-02 11:42:09 +01:00
|
|
|
proto.RegisterType((*DailyStorageUsageRequest)(nil), "nodestats.DailyStorageUsageRequest")
|
|
|
|
proto.RegisterType((*DailyStorageUsageResponse)(nil), "nodestats.DailyStorageUsageResponse")
|
|
|
|
proto.RegisterType((*DailyStorageUsageResponse_StorageUsage)(nil), "nodestats.DailyStorageUsageResponse.StorageUsage")
|
2019-06-25 11:40:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("nodestats.proto", fileDescriptor_e0b184ee117142aa) }
|
|
|
|
|
|
|
|
var fileDescriptor_e0b184ee117142aa = []byte{
|
2019-07-02 11:42:09 +01:00
|
|
|
// 464 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6e, 0xd3, 0x40,
|
|
|
|
0x14, 0x86, 0x19, 0x27, 0x04, 0xf2, 0x9c, 0xb6, 0x74, 0xca, 0xc2, 0x58, 0x02, 0x47, 0x2e, 0x52,
|
|
|
|
0xc3, 0xc6, 0x15, 0x81, 0x05, 0x5b, 0x92, 0x6e, 0x2a, 0x21, 0x16, 0x4e, 0xbb, 0x61, 0xc1, 0x68,
|
|
|
|
0x62, 0x4f, 0xdd, 0x88, 0x24, 0xcf, 0x78, 0x9e, 0x85, 0xb8, 0x02, 0x2b, 0x8e, 0xc0, 0x35, 0xb8,
|
|
|
|
0x01, 0x67, 0xe8, 0xa2, 0x5c, 0x05, 0xcd, 0xd8, 0x25, 0x6e, 0x4a, 0x50, 0x96, 0xfe, 0xe6, 0x7f,
|
|
|
|
0xbf, 0xe7, 0xff, 0xe7, 0xc1, 0xde, 0x12, 0x53, 0xa5, 0x49, 0x92, 0x8e, 0xf2, 0x02, 0x09, 0x79,
|
|
|
|
0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ff, 0xdf, 0x57, 0xe5, 0xfc, 0x7c, 0x9b, 0x52, 0x47, 0xed, 0x0f, 0x4e, 0x3e, 0x9d, 0x76, 0x6c,
|
|
|
|
0xd4, 0x57, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x36, 0xbe, 0x1b, 0x7e, 0xb6, 0x03, 0x00, 0x00,
|
2019-06-25 11:40:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// NodeStatsClient is the client API for NodeStats service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type NodeStatsClient interface {
|
|
|
|
UptimeCheck(ctx context.Context, in *UptimeCheckRequest, opts ...grpc.CallOption) (*UptimeCheckResponse, error)
|
2019-07-02 11:42:09 +01:00
|
|
|
DailyStorageUsage(ctx context.Context, in *DailyStorageUsageRequest, opts ...grpc.CallOption) (*DailyStorageUsageResponse, error)
|
2019-06-25 11:40:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type nodeStatsClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewNodeStatsClient(cc *grpc.ClientConn) NodeStatsClient {
|
|
|
|
return &nodeStatsClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *nodeStatsClient) UptimeCheck(ctx context.Context, in *UptimeCheckRequest, opts ...grpc.CallOption) (*UptimeCheckResponse, error) {
|
|
|
|
out := new(UptimeCheckResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/nodestats.NodeStats/UptimeCheck", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-07-02 11:42:09 +01:00
|
|
|
func (c *nodeStatsClient) DailyStorageUsage(ctx context.Context, in *DailyStorageUsageRequest, opts ...grpc.CallOption) (*DailyStorageUsageResponse, error) {
|
|
|
|
out := new(DailyStorageUsageResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/nodestats.NodeStats/DailyStorageUsage", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-06-25 11:40:32 +01:00
|
|
|
// NodeStatsServer is the server API for NodeStats service.
|
|
|
|
type NodeStatsServer interface {
|
|
|
|
UptimeCheck(context.Context, *UptimeCheckRequest) (*UptimeCheckResponse, error)
|
2019-07-02 11:42:09 +01:00
|
|
|
DailyStorageUsage(context.Context, *DailyStorageUsageRequest) (*DailyStorageUsageResponse, error)
|
2019-06-25 11:40:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterNodeStatsServer(s *grpc.Server, srv NodeStatsServer) {
|
|
|
|
s.RegisterService(&_NodeStats_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _NodeStats_UptimeCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(UptimeCheckRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(NodeStatsServer).UptimeCheck(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/nodestats.NodeStats/UptimeCheck",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(NodeStatsServer).UptimeCheck(ctx, req.(*UptimeCheckRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-07-02 11:42:09 +01:00
|
|
|
func _NodeStats_DailyStorageUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DailyStorageUsageRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(NodeStatsServer).DailyStorageUsage(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/nodestats.NodeStats/DailyStorageUsage",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(NodeStatsServer).DailyStorageUsage(ctx, req.(*DailyStorageUsageRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-06-25 11:40:32 +01:00
|
|
|
var _NodeStats_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "nodestats.NodeStats",
|
|
|
|
HandlerType: (*NodeStatsServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "UptimeCheck",
|
|
|
|
Handler: _NodeStats_UptimeCheck_Handler,
|
|
|
|
},
|
2019-07-02 11:42:09 +01:00
|
|
|
{
|
|
|
|
MethodName: "DailyStorageUsage",
|
|
|
|
Handler: _NodeStats_DailyStorageUsage_Handler,
|
|
|
|
},
|
2019-06-25 11:40:32 +01:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "nodestats.proto",
|
|
|
|
}
|