0dcbd3dc08
Change-Id: Id29f14b76a8c9cb2be31001b9a7a4356a4bda183
574 lines
22 KiB
Go
574 lines
22 KiB
Go
// 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"
|
|
_ "github.com/golang/protobuf/ptypes/timestamp"
|
|
grpc "google.golang.org/grpc"
|
|
math "math"
|
|
drpc "storj.io/drpc"
|
|
time "time"
|
|
)
|
|
|
|
// 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"`
|
|
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
|
|
}
|
|
|
|
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{}
|
|
}
|
|
|
|
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")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("nodestats.proto", fileDescriptor_e0b184ee117142aa) }
|
|
|
|
var fileDescriptor_e0b184ee117142aa = []byte{
|
|
// 524 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x41, 0x6e, 0xd3, 0x40,
|
|
0x14, 0x65, 0x9c, 0x10, 0x9a, 0xef, 0xb4, 0x69, 0x86, 0x8d, 0x09, 0x8b, 0x44, 0x2e, 0x52, 0xc3,
|
|
0xc6, 0x15, 0x81, 0x05, 0x12, 0x62, 0x81, 0x53, 0x09, 0xba, 0x61, 0xe1, 0x94, 0x0d, 0x0b, 0xac,
|
|
0x89, 0x3d, 0x71, 0x2d, 0x9c, 0x8c, 0xeb, 0xf9, 0x46, 0xe2, 0x0a, 0xac, 0xb8, 0x01, 0x57, 0xe0,
|
|
0x18, 0x9c, 0x00, 0x21, 0x16, 0xe5, 0x2a, 0x68, 0xc6, 0x8e, 0x9d, 0x9a, 0x52, 0xca, 0xd2, 0x6f,
|
|
0xde, 0x7b, 0x9e, 0xf7, 0xfe, 0x1f, 0xe8, 0xaf, 0x45, 0xc8, 0x25, 0x32, 0x94, 0x4e, 0x9a, 0x09,
|
|
0x14, 0xb4, 0x5b, 0x01, 0x43, 0x88, 0x44, 0x24, 0x0a, 0x78, 0x38, 0x8a, 0x84, 0x88, 0x12, 0x7e,
|
|
0xa4, 0xbf, 0x16, 0xf9, 0xf2, 0x08, 0xe3, 0x95, 0xa2, 0xad, 0xd2, 0x82, 0x60, 0x7f, 0x27, 0xd0,
|
|
0xf7, 0x78, 0x9a, 0x23,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0x79, 0x56, 0xd6, 0xfa, 0x0e, 0x06, 0x7f, 0xf4, 0x40, 0x0f, 0xae, 0x6f, 0xa9, 0xb0,
|
|
0x7d, 0x70, 0x93, 0x2a, 0xdd, 0xf6, 0x5b, 0x23, 0x5d, 0x2c, 0x3a, 0x3a, 0xe1, 0xe3, 0xdf, 0x01,
|
|
0x00, 0x00, 0xff, 0xff, 0xad, 0xd9, 0x13, 0x89, 0x80, 0x04, 0x00, 0x00,
|
|
}
|
|
|
|
type DRPCNodeStatsClient interface {
|
|
DRPCConn() drpc.Conn
|
|
|
|
GetStats(ctx context.Context, in *GetStatsRequest) (*GetStatsResponse, error)
|
|
DailyStorageUsage(ctx context.Context, in *DailyStorageUsageRequest) (*DailyStorageUsageResponse, 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
|
|
}
|
|
|
|
type DRPCNodeStatsServer interface {
|
|
GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
|
|
DailyStorageUsage(context.Context, *DailyStorageUsageRequest) (*DailyStorageUsageResponse, error)
|
|
}
|
|
|
|
type DRPCNodeStatsDescription struct{}
|
|
|
|
func (DRPCNodeStatsDescription) NumMethods() int { return 2 }
|
|
|
|
func (DRPCNodeStatsDescription) Method(n int) (string, drpc.Handler, 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
|
|
default:
|
|
return "", nil, nil, false
|
|
}
|
|
}
|
|
|
|
func DRPCRegisterNodeStats(srv drpc.Server, impl DRPCNodeStatsServer) {
|
|
srv.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()
|
|
}
|
|
|
|
// 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 {
|
|
GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
|
|
DailyStorageUsage(ctx context.Context, in *DailyStorageUsageRequest, opts ...grpc.CallOption) (*DailyStorageUsageResponse, error)
|
|
}
|
|
|
|
type nodeStatsClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewNodeStatsClient(cc *grpc.ClientConn) NodeStatsClient {
|
|
return &nodeStatsClient{cc}
|
|
}
|
|
|
|
func (c *nodeStatsClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) {
|
|
out := new(GetStatsResponse)
|
|
err := c.cc.Invoke(ctx, "/nodestats.NodeStats/GetStats", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
// NodeStatsServer is the server API for NodeStats service.
|
|
type NodeStatsServer interface {
|
|
GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
|
|
DailyStorageUsage(context.Context, *DailyStorageUsageRequest) (*DailyStorageUsageResponse, error)
|
|
}
|
|
|
|
func RegisterNodeStatsServer(s *grpc.Server, srv NodeStatsServer) {
|
|
s.RegisterService(&_NodeStats_serviceDesc, srv)
|
|
}
|
|
|
|
func _NodeStats_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.(NodeStatsServer).GetStats(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/nodestats.NodeStats/GetStats",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(NodeStatsServer).GetStats(ctx, req.(*GetStatsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
var _NodeStats_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "nodestats.NodeStats",
|
|
HandlerType: (*NodeStatsServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetStats",
|
|
Handler: _NodeStats_GetStats_Handler,
|
|
},
|
|
{
|
|
MethodName: "DailyStorageUsage",
|
|
Handler: _NodeStats_DailyStorageUsage_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "nodestats.proto",
|
|
}
|