mirror of
https://github.com/rclone/rclone.git
synced 2024-12-11 17:51:12 +01:00
629 lines
24 KiB
Go
629 lines
24 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: nodestats.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
math "math"
|
|
time "time"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
drpc "storj.io/drpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
var _ = time.Kitchen
|
|
|
|
// 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 ReputationStats 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 *ReputationStats) Reset() { *m = ReputationStats{} }
|
|
func (m *ReputationStats) String() string { return proto.CompactTextString(m) }
|
|
func (*ReputationStats) ProtoMessage() {}
|
|
func (*ReputationStats) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e0b184ee117142aa, []int{0}
|
|
}
|
|
func (m *ReputationStats) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReputationStats.Unmarshal(m, b)
|
|
}
|
|
func (m *ReputationStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReputationStats.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReputationStats) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReputationStats.Merge(m, src)
|
|
}
|
|
func (m *ReputationStats) XXX_Size() int {
|
|
return xxx_messageInfo_ReputationStats.Size(m)
|
|
}
|
|
func (m *ReputationStats) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReputationStats.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReputationStats proto.InternalMessageInfo
|
|
|
|
func (m *ReputationStats) GetTotalCount() int64 {
|
|
if m != nil {
|
|
return m.TotalCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ReputationStats) GetSuccessCount() int64 {
|
|
if m != nil {
|
|
return m.SuccessCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ReputationStats) GetReputationAlpha() float64 {
|
|
if m != nil {
|
|
return m.ReputationAlpha
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ReputationStats) GetReputationBeta() float64 {
|
|
if m != nil {
|
|
return m.ReputationBeta
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ReputationStats) GetReputationScore() float64 {
|
|
if m != nil {
|
|
return m.ReputationScore
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetStatsRequest struct {
|
|
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_e0b184ee117142aa, []int{1}
|
|
}
|
|
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 {
|
|
UptimeCheck *ReputationStats `protobuf:"bytes,1,opt,name=uptime_check,json=uptimeCheck,proto3" json:"uptime_check,omitempty"`
|
|
AuditCheck *ReputationStats `protobuf:"bytes,2,opt,name=audit_check,json=auditCheck,proto3" json:"audit_check,omitempty"`
|
|
Disqualified *time.Time `protobuf:"bytes,3,opt,name=disqualified,proto3,stdtime" json:"disqualified,omitempty"`
|
|
Suspended *time.Time `protobuf:"bytes,4,opt,name=suspended,proto3,stdtime" json:"suspended,omitempty"`
|
|
JoinedAt time.Time `protobuf:"bytes,5,opt,name=joined_at,json=joinedAt,proto3,stdtime" json:"joined_at"`
|
|
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_e0b184ee117142aa, []int{2}
|
|
}
|
|
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) GetUptimeCheck() *ReputationStats {
|
|
if m != nil {
|
|
return m.UptimeCheck
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetStatsResponse) GetAuditCheck() *ReputationStats {
|
|
if m != nil {
|
|
return m.AuditCheck
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetStatsResponse) GetDisqualified() *time.Time {
|
|
if m != nil {
|
|
return m.Disqualified
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetStatsResponse) GetSuspended() *time.Time {
|
|
if m != nil {
|
|
return m.Suspended
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *GetStatsResponse) GetJoinedAt() time.Time {
|
|
if m != nil {
|
|
return m.JoinedAt
|
|
}
|
|
return time.Time{}
|
|
}
|
|
|
|
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{3}
|
|
}
|
|
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{4}
|
|
}
|
|
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,1,opt,name=at_rest_total,json=atRestTotal,proto3" json:"at_rest_total,omitempty"`
|
|
Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
|
|
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{4, 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{}
|
|
}
|
|
|
|
type PricingModelRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PricingModelRequest) Reset() { *m = PricingModelRequest{} }
|
|
func (m *PricingModelRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*PricingModelRequest) ProtoMessage() {}
|
|
func (*PricingModelRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e0b184ee117142aa, []int{5}
|
|
}
|
|
func (m *PricingModelRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PricingModelRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *PricingModelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PricingModelRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PricingModelRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PricingModelRequest.Merge(m, src)
|
|
}
|
|
func (m *PricingModelRequest) XXX_Size() int {
|
|
return xxx_messageInfo_PricingModelRequest.Size(m)
|
|
}
|
|
func (m *PricingModelRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PricingModelRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PricingModelRequest proto.InternalMessageInfo
|
|
|
|
type PricingModelResponse struct {
|
|
EgressBandwidthPrice int64 `protobuf:"varint,1,opt,name=egress_bandwidth_price,json=egressBandwidthPrice,proto3" json:"egress_bandwidth_price,omitempty"`
|
|
RepairBandwidthPrice int64 `protobuf:"varint,2,opt,name=repair_bandwidth_price,json=repairBandwidthPrice,proto3" json:"repair_bandwidth_price,omitempty"`
|
|
DiskSpacePrice int64 `protobuf:"varint,3,opt,name=disk_space_price,json=diskSpacePrice,proto3" json:"disk_space_price,omitempty"`
|
|
AuditBandwidthPrice int64 `protobuf:"varint,4,opt,name=audit_bandwidth_price,json=auditBandwidthPrice,proto3" json:"audit_bandwidth_price,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PricingModelResponse) Reset() { *m = PricingModelResponse{} }
|
|
func (m *PricingModelResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*PricingModelResponse) ProtoMessage() {}
|
|
func (*PricingModelResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_e0b184ee117142aa, []int{6}
|
|
}
|
|
func (m *PricingModelResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PricingModelResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *PricingModelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PricingModelResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PricingModelResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PricingModelResponse.Merge(m, src)
|
|
}
|
|
func (m *PricingModelResponse) XXX_Size() int {
|
|
return xxx_messageInfo_PricingModelResponse.Size(m)
|
|
}
|
|
func (m *PricingModelResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PricingModelResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PricingModelResponse proto.InternalMessageInfo
|
|
|
|
func (m *PricingModelResponse) GetEgressBandwidthPrice() int64 {
|
|
if m != nil {
|
|
return m.EgressBandwidthPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PricingModelResponse) GetRepairBandwidthPrice() int64 {
|
|
if m != nil {
|
|
return m.RepairBandwidthPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PricingModelResponse) GetDiskSpacePrice() int64 {
|
|
if m != nil {
|
|
return m.DiskSpacePrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *PricingModelResponse) GetAuditBandwidthPrice() int64 {
|
|
if m != nil {
|
|
return m.AuditBandwidthPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ReputationStats)(nil), "nodestats.ReputationStats")
|
|
proto.RegisterType((*GetStatsRequest)(nil), "nodestats.GetStatsRequest")
|
|
proto.RegisterType((*GetStatsResponse)(nil), "nodestats.GetStatsResponse")
|
|
proto.RegisterType((*DailyStorageUsageRequest)(nil), "nodestats.DailyStorageUsageRequest")
|
|
proto.RegisterType((*DailyStorageUsageResponse)(nil), "nodestats.DailyStorageUsageResponse")
|
|
proto.RegisterType((*DailyStorageUsageResponse_StorageUsage)(nil), "nodestats.DailyStorageUsageResponse.StorageUsage")
|
|
proto.RegisterType((*PricingModelRequest)(nil), "nodestats.PricingModelRequest")
|
|
proto.RegisterType((*PricingModelResponse)(nil), "nodestats.PricingModelResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("nodestats.proto", fileDescriptor_e0b184ee117142aa) }
|
|
|
|
var fileDescriptor_e0b184ee117142aa = []byte{
|
|
// 691 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x4e, 0xdb, 0x4a,
|
|
0x18, 0xbd, 0x76, 0xb8, 0x5c, 0xf2, 0x25, 0x10, 0x18, 0xc2, 0x55, 0x6e, 0xae, 0xd4, 0xa0, 0x50,
|
|
0x89, 0x74, 0x93, 0xa8, 0x29, 0x8b, 0x4a, 0x55, 0x17, 0x04, 0xa4, 0x96, 0x45, 0x7f, 0xe4, 0xd0,
|
|
0x4d, 0x17, 0xb5, 0x26, 0x9e, 0x0f, 0x33, 0x90, 0x78, 0x8c, 0x67, 0xdc, 0xaa, 0xcb, 0x6e, 0xbb,
|
|
0xea, 0x1b, 0xf4, 0x75, 0xfa, 0x04, 0x5d, 0x74, 0x01, 0x7d, 0x94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xbc, 0x03, 0x58, 0x19,
|
|
0xbf, 0x0b, 0x64, 0x76, 0x77, 0x73, 0x0f, 0x48, 0xfd, 0xff, 0x1b, 0x67, 0x59, 0x38, 0xef, 0x60,
|
|
0xe3, 0xda, 0x0d, 0x20, 0x3b, 0xbf, 0xbf, 0x1f, 0xd6, 0xf6, 0xfe, 0x22, 0x97, 0x88, 0xbc, 0x82,
|
|
0xf2, 0x6c, 0x29, 0xe4, 0xde, 0x8c, 0xea, 0x86, 0x16, 0xeb, 0x8d, 0x5b, 0xe7, 0xd6, 0xb0, 0x57,
|
|
0x7d, 0x4b, 0xf4, 0x95, 0x3e, 0x6b, 0x73, 0xd1, 0x09, 0xc4, 0x68, 0x24, 0xa2, 0x4e, 0x3c, 0x18,
|
|
0x2c, 0x9b, 0xcb, 0xf3, 0xe8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x90, 0x8d, 0x3b, 0x4a, 0x62,
|
|
0x06, 0x00, 0x00,
|
|
}
|
|
|
|
// --- DRPC BEGIN ---
|
|
|
|
type DRPCNodeStatsClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
GetStats(ctx context.Context, in *GetStatsRequest) (*GetStatsResponse, error)
|
|
DailyStorageUsage(ctx context.Context, in *DailyStorageUsageRequest) (*DailyStorageUsageResponse, error)
|
|
PricingModel(ctx context.Context, in *PricingModelRequest) (*PricingModelResponse, error)
|
|
}
|
|
|
|
type drpcNodeStatsClient struct {
|
|
cc drpc.Conn
|
|
}
|
|
|
|
func NewDRPCNodeStatsClient(cc drpc.Conn) DRPCNodeStatsClient {
|
|
return &drpcNodeStatsClient{cc}
|
|
}
|
|
|
|
func (c *drpcNodeStatsClient) DRPCConn() drpc.Conn { return c.cc }
|
|
|
|
func (c *drpcNodeStatsClient) GetStats(ctx context.Context, in *GetStatsRequest) (*GetStatsResponse, error) {
|
|
out := new(GetStatsResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.NodeStats/GetStats", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcNodeStatsClient) DailyStorageUsage(ctx context.Context, in *DailyStorageUsageRequest) (*DailyStorageUsageResponse, error) {
|
|
out := new(DailyStorageUsageResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.NodeStats/DailyStorageUsage", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *drpcNodeStatsClient) PricingModel(ctx context.Context, in *PricingModelRequest) (*PricingModelResponse, error) {
|
|
out := new(PricingModelResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.NodeStats/PricingModel", in, out)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
type DRPCNodeStatsServer interface {
|
|
GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
|
|
DailyStorageUsage(context.Context, *DailyStorageUsageRequest) (*DailyStorageUsageResponse, error)
|
|
PricingModel(context.Context, *PricingModelRequest) (*PricingModelResponse, error)
|
|
}
|
|
|
|
type DRPCNodeStatsDescription struct{}
|
|
|
|
func (DRPCNodeStatsDescription) NumMethods() int { return 3 }
|
|
|
|
func (DRPCNodeStatsDescription) Method(n int) (string, drpc.Receiver, interface{}, bool) {
|
|
switch n {
|
|
case 0:
|
|
return "/nodestats.NodeStats/GetStats",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCNodeStatsServer).
|
|
GetStats(
|
|
ctx,
|
|
in1.(*GetStatsRequest),
|
|
)
|
|
}, DRPCNodeStatsServer.GetStats, true
|
|
case 1:
|
|
return "/nodestats.NodeStats/DailyStorageUsage",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCNodeStatsServer).
|
|
DailyStorageUsage(
|
|
ctx,
|
|
in1.(*DailyStorageUsageRequest),
|
|
)
|
|
}, DRPCNodeStatsServer.DailyStorageUsage, true
|
|
case 2:
|
|
return "/nodestats.NodeStats/PricingModel",
|
|
func(srv interface{}, ctx context.Context, in1, in2 interface{}) (drpc.Message, error) {
|
|
return srv.(DRPCNodeStatsServer).
|
|
PricingModel(
|
|
ctx,
|
|
in1.(*PricingModelRequest),
|
|
)
|
|
}, DRPCNodeStatsServer.PricingModel, true
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterNodeStats(mux drpc.Mux, impl DRPCNodeStatsServer) error {
|
|
return mux.Register(impl, DRPCNodeStatsDescription{})
|
|
}
|
|
|
|
type DRPCNodeStats_GetStatsStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*GetStatsResponse) error
|
|
}
|
|
|
|
type drpcNodeStatsGetStatsStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcNodeStatsGetStatsStream) SendAndClose(m *GetStatsResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCNodeStats_DailyStorageUsageStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*DailyStorageUsageResponse) error
|
|
}
|
|
|
|
type drpcNodeStatsDailyStorageUsageStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcNodeStatsDailyStorageUsageStream) SendAndClose(m *DailyStorageUsageResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
type DRPCNodeStats_PricingModelStream interface {
|
|
drpc.Stream
|
|
SendAndClose(*PricingModelResponse) error
|
|
}
|
|
|
|
type drpcNodeStatsPricingModelStream struct {
|
|
drpc.Stream
|
|
}
|
|
|
|
func (x *drpcNodeStatsPricingModelStream) SendAndClose(m *PricingModelResponse) error {
|
|
if err := x.MsgSend(m); err != nil {
|
|
return err
|
|
}
|
|
return x.CloseSend()
|
|
}
|
|
|
|
// --- DRPC END ---
|