status

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthStatus        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStatus          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStatus = fmt.Errorf("proto: unexpected end of group")
)
View Source
var RewardType_name = map[int32]string{
	0: "FILESIZE",
	1: "REPAIR",
}
View Source
var RewardType_value = map[string]int32{
	"FILESIZE": 0,
	"REPAIR":   1,
}

Functions

func RegisterStatusServiceServer

func RegisterStatusServiceServer(s *grpc.Server, srv StatusServiceServer)

Types

type AirdropRewardHistoryReq

type AirdropRewardHistoryReq struct {
	RequesterPid         string        `protobuf:"bytes,1,opt,name=requester_pid,json=requesterPid,proto3" json:"requester_pid,omitempty" pg:"requester_pid"`
	Rewards              []*RewardInfo `protobuf:"bytes,2,rep,name=rewards,proto3" json:"rewards,omitempty" pg:"rewards"`
	PageIndex            uint32        `protobuf:"varint,3,opt,name=page_index,json=pageIndex,proto3" json:"page_index,omitempty" pg:"page_index"`
	PageTotal            uint32        `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total,omitempty" pg:"page_total"`
	DateAirdroped        time.Time     `protobuf:"bytes,5,opt,name=date_airdroped,json=dateAirdroped,proto3,stdtime" json:"date_airdroped" pg:"date_airdroped"`
	Signature            []byte        `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-" pg:"-"`
	XXX_unrecognized     []byte        `json:"-" pg:"-"`
	XXX_sizecache        int32         `json:"-" pg:"-"`
}

func (*AirdropRewardHistoryReq) Descriptor

func (*AirdropRewardHistoryReq) Descriptor() ([]byte, []int)

func (*AirdropRewardHistoryReq) GetDateAirdroped

func (m *AirdropRewardHistoryReq) GetDateAirdroped() time.Time

func (*AirdropRewardHistoryReq) GetPageIndex

func (m *AirdropRewardHistoryReq) GetPageIndex() uint32

func (*AirdropRewardHistoryReq) GetPageTotal

func (m *AirdropRewardHistoryReq) GetPageTotal() uint32

func (*AirdropRewardHistoryReq) GetRequesterPid

func (m *AirdropRewardHistoryReq) GetRequesterPid() string

func (*AirdropRewardHistoryReq) GetRewards

func (m *AirdropRewardHistoryReq) GetRewards() []*RewardInfo

func (*AirdropRewardHistoryReq) GetSignature

func (m *AirdropRewardHistoryReq) GetSignature() []byte

func (*AirdropRewardHistoryReq) Marshal

func (m *AirdropRewardHistoryReq) Marshal() (dAtA []byte, err error)

func (*AirdropRewardHistoryReq) MarshalTo

func (m *AirdropRewardHistoryReq) MarshalTo(dAtA []byte) (int, error)

func (*AirdropRewardHistoryReq) MarshalToSizedBuffer

func (m *AirdropRewardHistoryReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AirdropRewardHistoryReq) ProtoMessage

func (*AirdropRewardHistoryReq) ProtoMessage()

func (*AirdropRewardHistoryReq) Reset

func (m *AirdropRewardHistoryReq) Reset()

func (*AirdropRewardHistoryReq) Size

func (m *AirdropRewardHistoryReq) Size() (n int)

func (*AirdropRewardHistoryReq) String

func (m *AirdropRewardHistoryReq) String() string

func (*AirdropRewardHistoryReq) Unmarshal

func (m *AirdropRewardHistoryReq) Unmarshal(dAtA []byte) error

func (*AirdropRewardHistoryReq) XXX_DiscardUnknown

func (m *AirdropRewardHistoryReq) XXX_DiscardUnknown()

func (*AirdropRewardHistoryReq) XXX_Marshal

func (m *AirdropRewardHistoryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AirdropRewardHistoryReq) XXX_Merge

func (m *AirdropRewardHistoryReq) XXX_Merge(src proto.Message)

func (*AirdropRewardHistoryReq) XXX_MessageName

func (*AirdropRewardHistoryReq) XXX_MessageName() string

func (*AirdropRewardHistoryReq) XXX_Size

func (m *AirdropRewardHistoryReq) XXX_Size() int

func (*AirdropRewardHistoryReq) XXX_Unmarshal

func (m *AirdropRewardHistoryReq) XXX_Unmarshal(b []byte) error

type BtfsScanAggrReq

type BtfsScanAggrReq struct {
	StorageVolumeLeft       float64          `` /* 141-byte string literal not displayed */
	OnlineMinersNumber      uint32           `` /* 144-byte string literal not displayed */
	CountryDistribute       map[string]int32 `` /* 225-byte string literal not displayed */
	ScoreDistribute         map[string]int32 `` /* 217-byte string literal not displayed */
	TimeCreated             time.Time        `protobuf:"bytes,6,opt,name=time_created,json=timeCreated,proto3,stdtime" json:"time_created" pg:"time_created"`
	StorageAlreadyUsed      float64          `` /* 145-byte string literal not displayed */
	Price                   float64          `protobuf:"fixed64,8,opt,name=price,proto3" json:"price,omitempty" pg:"price"`
	DateCreated             time.Time        `protobuf:"bytes,9,opt,name=date_created,json=dateCreated,proto3,stdtime" json:"date_created" pg:"date_created"`
	NewRank                 string           `protobuf:"bytes,10,opt,name=new_rank,json=newRank,proto3" json:"new_rank,omitempty" pg:"new_rank"`
	TotalRank               string           `protobuf:"bytes,11,opt,name=total_rank,json=totalRank,proto3" json:"total_rank,omitempty" pg:"total_rank"`
	ContractAllCount        uint32           `` /* 137-byte string literal not displayed */
	ContractFailCount       uint32           `` /* 141-byte string literal not displayed */
	ContractAllStorage      float64          `` /* 146-byte string literal not displayed */
	ContractFailStorage     float64          `` /* 150-byte string literal not displayed */
	StorageLeftWhenContract float64          `` /* 169-byte string literal not displayed */
	SuperOnlineMinersCount  uint32           `` /* 164-byte string literal not displayed */
	NewOnlineMinersCount    uint32           `` /* 156-byte string literal not displayed */
	MinersAllAmount         int64            `` /* 133-byte string literal not displayed */
	TotalMiners             int64            `protobuf:"varint,20,opt,name=total_miners,json=totalMiners,proto3" json:"total_miners,omitempty" pg:"total_miners"`
	BigMiners               int64            `protobuf:"varint,21,opt,name=big_miners,json=bigMiners,proto3" json:"big_miners,omitempty" pg:"big_miners"`
	VersionDistribute       map[string]int32 `` /* 226-byte string literal not displayed */
	XXX_NoUnkeyedLiteral    struct{}         `json:"-" pg:"-"`
	XXX_unrecognized        []byte           `json:"-" pg:"-"`
	XXX_sizecache           int32            `json:"-" pg:"-"`
	// contains filtered or unexported fields
}

func (*BtfsScanAggrReq) Descriptor

func (*BtfsScanAggrReq) Descriptor() ([]byte, []int)

func (*BtfsScanAggrReq) GetBigMiners

func (m *BtfsScanAggrReq) GetBigMiners() int64

func (*BtfsScanAggrReq) GetContractAllCount

func (m *BtfsScanAggrReq) GetContractAllCount() uint32

func (*BtfsScanAggrReq) GetContractAllStorage

func (m *BtfsScanAggrReq) GetContractAllStorage() float64

func (*BtfsScanAggrReq) GetContractFailCount

func (m *BtfsScanAggrReq) GetContractFailCount() uint32

func (*BtfsScanAggrReq) GetContractFailStorage

func (m *BtfsScanAggrReq) GetContractFailStorage() float64

func (*BtfsScanAggrReq) GetCountryDistribute

func (m *BtfsScanAggrReq) GetCountryDistribute() map[string]int32

func (*BtfsScanAggrReq) GetDateCreated

func (m *BtfsScanAggrReq) GetDateCreated() time.Time

func (*BtfsScanAggrReq) GetMinersAllAmount

func (m *BtfsScanAggrReq) GetMinersAllAmount() int64

func (*BtfsScanAggrReq) GetNewOnlineMinersCount

func (m *BtfsScanAggrReq) GetNewOnlineMinersCount() uint32

func (*BtfsScanAggrReq) GetNewRank

func (m *BtfsScanAggrReq) GetNewRank() string

func (*BtfsScanAggrReq) GetOnlineMinersNumber

func (m *BtfsScanAggrReq) GetOnlineMinersNumber() uint32

func (*BtfsScanAggrReq) GetPrice

func (m *BtfsScanAggrReq) GetPrice() float64

func (*BtfsScanAggrReq) GetScoreDistribute

func (m *BtfsScanAggrReq) GetScoreDistribute() map[string]int32

func (*BtfsScanAggrReq) GetStorageAlreadyUsed

func (m *BtfsScanAggrReq) GetStorageAlreadyUsed() float64

func (*BtfsScanAggrReq) GetStorageLeftWhenContract

func (m *BtfsScanAggrReq) GetStorageLeftWhenContract() float64

func (*BtfsScanAggrReq) GetStorageVolumeLeft

func (m *BtfsScanAggrReq) GetStorageVolumeLeft() float64

func (*BtfsScanAggrReq) GetSuperOnlineMinersCount

func (m *BtfsScanAggrReq) GetSuperOnlineMinersCount() uint32

func (*BtfsScanAggrReq) GetTimeCreated

func (m *BtfsScanAggrReq) GetTimeCreated() time.Time

func (*BtfsScanAggrReq) GetTotalMiners

func (m *BtfsScanAggrReq) GetTotalMiners() int64

func (*BtfsScanAggrReq) GetTotalRank

func (m *BtfsScanAggrReq) GetTotalRank() string

func (*BtfsScanAggrReq) GetVersionDistribute

func (m *BtfsScanAggrReq) GetVersionDistribute() map[string]int32

func (*BtfsScanAggrReq) GettableName

func (m *BtfsScanAggrReq) GettableName() string

func (*BtfsScanAggrReq) Marshal

func (m *BtfsScanAggrReq) Marshal() (dAtA []byte, err error)

func (*BtfsScanAggrReq) MarshalTo

func (m *BtfsScanAggrReq) MarshalTo(dAtA []byte) (int, error)

func (*BtfsScanAggrReq) MarshalToSizedBuffer

func (m *BtfsScanAggrReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BtfsScanAggrReq) ProtoMessage

func (*BtfsScanAggrReq) ProtoMessage()

func (*BtfsScanAggrReq) Reset

func (m *BtfsScanAggrReq) Reset()

func (*BtfsScanAggrReq) Size

func (m *BtfsScanAggrReq) Size() (n int)

func (*BtfsScanAggrReq) String

func (m *BtfsScanAggrReq) String() string

func (*BtfsScanAggrReq) Unmarshal

func (m *BtfsScanAggrReq) Unmarshal(dAtA []byte) error

func (*BtfsScanAggrReq) XXX_DiscardUnknown

func (m *BtfsScanAggrReq) XXX_DiscardUnknown()

func (*BtfsScanAggrReq) XXX_Marshal

func (m *BtfsScanAggrReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BtfsScanAggrReq) XXX_Merge

func (m *BtfsScanAggrReq) XXX_Merge(src proto.Message)

func (*BtfsScanAggrReq) XXX_MessageName

func (*BtfsScanAggrReq) XXX_MessageName() string

func (*BtfsScanAggrReq) XXX_Size

func (m *BtfsScanAggrReq) XXX_Size() int

func (*BtfsScanAggrReq) XXX_Unmarshal

func (m *BtfsScanAggrReq) XXX_Unmarshal(b []byte) error

type Candidate

type Candidate struct {
	NodeId               string    `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" pg:"node_id"`
	DateAirdroped        time.Time `protobuf:"bytes,2,opt,name=date_airdroped,json=dateAirdroped,proto3,stdtime" json:"date_airdroped" pg:"date_airdroped"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-" pg:"-"`
	XXX_unrecognized     []byte    `json:"-" pg:"-"`
	XXX_sizecache        int32     `json:"-" pg:"-"`
}

func (*Candidate) Descriptor

func (*Candidate) Descriptor() ([]byte, []int)

func (*Candidate) GetDateAirdroped

func (m *Candidate) GetDateAirdroped() time.Time

func (*Candidate) GetNodeId

func (m *Candidate) GetNodeId() string

func (*Candidate) Marshal

func (m *Candidate) Marshal() (dAtA []byte, err error)

func (*Candidate) MarshalTo

func (m *Candidate) MarshalTo(dAtA []byte) (int, error)

func (*Candidate) MarshalToSizedBuffer

func (m *Candidate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) Reset

func (m *Candidate) Reset()

func (*Candidate) Size

func (m *Candidate) Size() (n int)

func (*Candidate) String

func (m *Candidate) String() string

func (*Candidate) Unmarshal

func (m *Candidate) Unmarshal(dAtA []byte) error

func (*Candidate) XXX_DiscardUnknown

func (m *Candidate) XXX_DiscardUnknown()

func (*Candidate) XXX_Marshal

func (m *Candidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Candidate) XXX_Merge

func (m *Candidate) XXX_Merge(src proto.Message)

func (*Candidate) XXX_MessageName

func (*Candidate) XXX_MessageName() string

func (*Candidate) XXX_Size

func (m *Candidate) XXX_Size() int

func (*Candidate) XXX_Unmarshal

func (m *Candidate) XXX_Unmarshal(b []byte) error

type NodeContractStatReq

type NodeContractStatReq struct {
	NodeContractStats    []*node.NodeContractStat `` /* 139-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                 `json:"-" pg:"-"`
	XXX_unrecognized     []byte                   `json:"-" pg:"-"`
	XXX_sizecache        int32                    `json:"-" pg:"-"`
}

func (*NodeContractStatReq) Descriptor

func (*NodeContractStatReq) Descriptor() ([]byte, []int)

func (*NodeContractStatReq) GetNodeContractStats

func (m *NodeContractStatReq) GetNodeContractStats() []*node.NodeContractStat

func (*NodeContractStatReq) Marshal

func (m *NodeContractStatReq) Marshal() (dAtA []byte, err error)

func (*NodeContractStatReq) MarshalTo

func (m *NodeContractStatReq) MarshalTo(dAtA []byte) (int, error)

func (*NodeContractStatReq) MarshalToSizedBuffer

func (m *NodeContractStatReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NodeContractStatReq) ProtoMessage

func (*NodeContractStatReq) ProtoMessage()

func (*NodeContractStatReq) Reset

func (m *NodeContractStatReq) Reset()

func (*NodeContractStatReq) Size

func (m *NodeContractStatReq) Size() (n int)

func (*NodeContractStatReq) String

func (m *NodeContractStatReq) String() string

func (*NodeContractStatReq) Unmarshal

func (m *NodeContractStatReq) Unmarshal(dAtA []byte) error

func (*NodeContractStatReq) XXX_DiscardUnknown

func (m *NodeContractStatReq) XXX_DiscardUnknown()

func (*NodeContractStatReq) XXX_Marshal

func (m *NodeContractStatReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeContractStatReq) XXX_Merge

func (m *NodeContractStatReq) XXX_Merge(src proto.Message)

func (*NodeContractStatReq) XXX_MessageName

func (*NodeContractStatReq) XXX_MessageName() string

func (*NodeContractStatReq) XXX_Size

func (m *NodeContractStatReq) XXX_Size() int

func (*NodeContractStatReq) XXX_Unmarshal

func (m *NodeContractStatReq) XXX_Unmarshal(b []byte) error

type NodeDiscoveryAggrReq

type NodeDiscoveryAggrReq struct {
	Source               string   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty" pg:"source"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*NodeDiscoveryAggrReq) Descriptor

func (*NodeDiscoveryAggrReq) Descriptor() ([]byte, []int)

func (*NodeDiscoveryAggrReq) GetSource

func (m *NodeDiscoveryAggrReq) GetSource() string

func (*NodeDiscoveryAggrReq) Marshal

func (m *NodeDiscoveryAggrReq) Marshal() (dAtA []byte, err error)

func (*NodeDiscoveryAggrReq) MarshalTo

func (m *NodeDiscoveryAggrReq) MarshalTo(dAtA []byte) (int, error)

func (*NodeDiscoveryAggrReq) MarshalToSizedBuffer

func (m *NodeDiscoveryAggrReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NodeDiscoveryAggrReq) ProtoMessage

func (*NodeDiscoveryAggrReq) ProtoMessage()

func (*NodeDiscoveryAggrReq) Reset

func (m *NodeDiscoveryAggrReq) Reset()

func (*NodeDiscoveryAggrReq) Size

func (m *NodeDiscoveryAggrReq) Size() (n int)

func (*NodeDiscoveryAggrReq) String

func (m *NodeDiscoveryAggrReq) String() string

func (*NodeDiscoveryAggrReq) Unmarshal

func (m *NodeDiscoveryAggrReq) Unmarshal(dAtA []byte) error

func (*NodeDiscoveryAggrReq) XXX_DiscardUnknown

func (m *NodeDiscoveryAggrReq) XXX_DiscardUnknown()

func (*NodeDiscoveryAggrReq) XXX_Marshal

func (m *NodeDiscoveryAggrReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDiscoveryAggrReq) XXX_Merge

func (m *NodeDiscoveryAggrReq) XXX_Merge(src proto.Message)

func (*NodeDiscoveryAggrReq) XXX_MessageName

func (*NodeDiscoveryAggrReq) XXX_MessageName() string

func (*NodeDiscoveryAggrReq) XXX_Size

func (m *NodeDiscoveryAggrReq) XXX_Size() int

func (*NodeDiscoveryAggrReq) XXX_Unmarshal

func (m *NodeDiscoveryAggrReq) XXX_Unmarshal(b []byte) error

type NodeMetricsAggrReq

type NodeMetricsAggrReq struct {
	Source               string   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty" pg:"source"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*NodeMetricsAggrReq) Descriptor

func (*NodeMetricsAggrReq) Descriptor() ([]byte, []int)

func (*NodeMetricsAggrReq) GetSource

func (m *NodeMetricsAggrReq) GetSource() string

func (*NodeMetricsAggrReq) Marshal

func (m *NodeMetricsAggrReq) Marshal() (dAtA []byte, err error)

func (*NodeMetricsAggrReq) MarshalTo

func (m *NodeMetricsAggrReq) MarshalTo(dAtA []byte) (int, error)

func (*NodeMetricsAggrReq) MarshalToSizedBuffer

func (m *NodeMetricsAggrReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NodeMetricsAggrReq) ProtoMessage

func (*NodeMetricsAggrReq) ProtoMessage()

func (*NodeMetricsAggrReq) Reset

func (m *NodeMetricsAggrReq) Reset()

func (*NodeMetricsAggrReq) Size

func (m *NodeMetricsAggrReq) Size() (n int)

func (*NodeMetricsAggrReq) String

func (m *NodeMetricsAggrReq) String() string

func (*NodeMetricsAggrReq) Unmarshal

func (m *NodeMetricsAggrReq) Unmarshal(dAtA []byte) error

func (*NodeMetricsAggrReq) XXX_DiscardUnknown

func (m *NodeMetricsAggrReq) XXX_DiscardUnknown()

func (*NodeMetricsAggrReq) XXX_Marshal

func (m *NodeMetricsAggrReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeMetricsAggrReq) XXX_Merge

func (m *NodeMetricsAggrReq) XXX_Merge(src proto.Message)

func (*NodeMetricsAggrReq) XXX_MessageName

func (*NodeMetricsAggrReq) XXX_MessageName() string

func (*NodeMetricsAggrReq) XXX_Size

func (m *NodeMetricsAggrReq) XXX_Size() int

func (*NodeMetricsAggrReq) XXX_Unmarshal

func (m *NodeMetricsAggrReq) XXX_Unmarshal(b []byte) error

type RewardInfo

type RewardInfo struct {
	Type                 RewardType `protobuf:"varint,1,opt,name=type,proto3,enum=status.RewardType" json:"type,omitempty" pg:"type"`
	NodeId               string     `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" pg:"node_id"`
	IsSuspect            bool       `protobuf:"varint,4,opt,name=is_suspect,json=isSuspect,proto3" json:"is_suspect,omitempty" pg:"is_suspect"`
	Weight               uint32     `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty" pg:"weight"`
	Stake                uint32     `protobuf:"varint,6,opt,name=stake,proto3" json:"stake,omitempty" pg:"stake"`
	FileCount            uint32     `protobuf:"varint,7,opt,name=file_count,json=fileCount,proto3" json:"file_count,omitempty" pg:"file_count"`
	FileSize             uint64     `protobuf:"varint,8,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty" pg:"file_size"`
	ShouldReward         uint64     `protobuf:"varint,9,opt,name=should_reward,json=shouldReward,proto3" json:"should_reward,omitempty" pg:"should_reward"`
	ActualReward         uint64     `protobuf:"varint,10,opt,name=actual_reward,json=actualReward,proto3" json:"actual_reward,omitempty" pg:"actual_reward"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-" pg:"-"`
	XXX_unrecognized     []byte     `json:"-" pg:"-"`
	XXX_sizecache        int32      `json:"-" pg:"-"`
}

func (*RewardInfo) Descriptor

func (*RewardInfo) Descriptor() ([]byte, []int)

func (*RewardInfo) GetActualReward

func (m *RewardInfo) GetActualReward() uint64

func (*RewardInfo) GetFileCount

func (m *RewardInfo) GetFileCount() uint32

func (*RewardInfo) GetFileSize

func (m *RewardInfo) GetFileSize() uint64

func (*RewardInfo) GetIsSuspect

func (m *RewardInfo) GetIsSuspect() bool

func (*RewardInfo) GetNodeId

func (m *RewardInfo) GetNodeId() string

func (*RewardInfo) GetShouldReward

func (m *RewardInfo) GetShouldReward() uint64

func (*RewardInfo) GetStake

func (m *RewardInfo) GetStake() uint32

func (*RewardInfo) GetType

func (m *RewardInfo) GetType() RewardType

func (*RewardInfo) GetWeight

func (m *RewardInfo) GetWeight() uint32

func (*RewardInfo) Marshal

func (m *RewardInfo) Marshal() (dAtA []byte, err error)

func (*RewardInfo) MarshalTo

func (m *RewardInfo) MarshalTo(dAtA []byte) (int, error)

func (*RewardInfo) MarshalToSizedBuffer

func (m *RewardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RewardInfo) ProtoMessage

func (*RewardInfo) ProtoMessage()

func (*RewardInfo) Reset

func (m *RewardInfo) Reset()

func (*RewardInfo) Size

func (m *RewardInfo) Size() (n int)

func (*RewardInfo) String

func (m *RewardInfo) String() string

func (*RewardInfo) Unmarshal

func (m *RewardInfo) Unmarshal(dAtA []byte) error

func (*RewardInfo) XXX_DiscardUnknown

func (m *RewardInfo) XXX_DiscardUnknown()

func (*RewardInfo) XXX_Marshal

func (m *RewardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RewardInfo) XXX_Merge

func (m *RewardInfo) XXX_Merge(src proto.Message)

func (*RewardInfo) XXX_MessageName

func (*RewardInfo) XXX_MessageName() string

func (*RewardInfo) XXX_Size

func (m *RewardInfo) XXX_Size() int

func (*RewardInfo) XXX_Unmarshal

func (m *RewardInfo) XXX_Unmarshal(b []byte) error

type RewardType

type RewardType int32
const (
	RewardType_FILESIZE RewardType = 0
	RewardType_REPAIR   RewardType = 1
)

func (RewardType) EnumDescriptor

func (RewardType) EnumDescriptor() ([]byte, []int)

func (RewardType) String

func (x RewardType) String() string

type ScoreHistoryReq

type ScoreHistoryReq struct {
	Scores               []*node.ScoreHistoryTab `protobuf:"bytes,1,rep,name=scores,proto3" json:"scores,omitempty" pg:"scores"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-" pg:"-"`
	XXX_unrecognized     []byte                  `json:"-" pg:"-"`
	XXX_sizecache        int32                   `json:"-" pg:"-"`
}

func (*ScoreHistoryReq) Descriptor

func (*ScoreHistoryReq) Descriptor() ([]byte, []int)

func (*ScoreHistoryReq) GetScores

func (m *ScoreHistoryReq) GetScores() []*node.ScoreHistoryTab

func (*ScoreHistoryReq) Marshal

func (m *ScoreHistoryReq) Marshal() (dAtA []byte, err error)

func (*ScoreHistoryReq) MarshalTo

func (m *ScoreHistoryReq) MarshalTo(dAtA []byte) (int, error)

func (*ScoreHistoryReq) MarshalToSizedBuffer

func (m *ScoreHistoryReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ScoreHistoryReq) ProtoMessage

func (*ScoreHistoryReq) ProtoMessage()

func (*ScoreHistoryReq) Reset

func (m *ScoreHistoryReq) Reset()

func (*ScoreHistoryReq) Size

func (m *ScoreHistoryReq) Size() (n int)

func (*ScoreHistoryReq) String

func (m *ScoreHistoryReq) String() string

func (*ScoreHistoryReq) Unmarshal

func (m *ScoreHistoryReq) Unmarshal(dAtA []byte) error

func (*ScoreHistoryReq) XXX_DiscardUnknown

func (m *ScoreHistoryReq) XXX_DiscardUnknown()

func (*ScoreHistoryReq) XXX_Marshal

func (m *ScoreHistoryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ScoreHistoryReq) XXX_Merge

func (m *ScoreHistoryReq) XXX_Merge(src proto.Message)

func (*ScoreHistoryReq) XXX_MessageName

func (*ScoreHistoryReq) XXX_MessageName() string

func (*ScoreHistoryReq) XXX_Size

func (m *ScoreHistoryReq) XXX_Size() int

func (*ScoreHistoryReq) XXX_Unmarshal

func (m *ScoreHistoryReq) XXX_Unmarshal(b []byte) error

type SignedMetrics

type SignedMetrics struct {
	PublicKey            []byte   `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" pg:"public_key"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" pg:"signature"`
	Payload              []byte   `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty" pg:"payload"`
	XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"`
	XXX_unrecognized     []byte   `json:"-" pg:"-"`
	XXX_sizecache        int32    `json:"-" pg:"-"`
}

func (*SignedMetrics) Descriptor

func (*SignedMetrics) Descriptor() ([]byte, []int)

func (*SignedMetrics) GetPayload

func (m *SignedMetrics) GetPayload() []byte

func (*SignedMetrics) GetPublicKey

func (m *SignedMetrics) GetPublicKey() []byte

func (*SignedMetrics) GetSignature

func (m *SignedMetrics) GetSignature() []byte

func (*SignedMetrics) Marshal

func (m *SignedMetrics) Marshal() (dAtA []byte, err error)

func (*SignedMetrics) MarshalTo

func (m *SignedMetrics) MarshalTo(dAtA []byte) (int, error)

func (*SignedMetrics) MarshalToSizedBuffer

func (m *SignedMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignedMetrics) ProtoMessage

func (*SignedMetrics) ProtoMessage()

func (*SignedMetrics) Reset

func (m *SignedMetrics) Reset()

func (*SignedMetrics) Size

func (m *SignedMetrics) Size() (n int)

func (*SignedMetrics) String

func (m *SignedMetrics) String() string

func (*SignedMetrics) Unmarshal

func (m *SignedMetrics) Unmarshal(dAtA []byte) error

func (*SignedMetrics) XXX_DiscardUnknown

func (m *SignedMetrics) XXX_DiscardUnknown()

func (*SignedMetrics) XXX_Marshal

func (m *SignedMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedMetrics) XXX_Merge

func (m *SignedMetrics) XXX_Merge(src proto.Message)

func (*SignedMetrics) XXX_MessageName

func (*SignedMetrics) XXX_MessageName() string

func (*SignedMetrics) XXX_Size

func (m *SignedMetrics) XXX_Size() int

func (*SignedMetrics) XXX_Unmarshal

func (m *SignedMetrics) XXX_Unmarshal(b []byte) error

type StatusServiceClient

type StatusServiceClient interface {
	UpdateMetrics(ctx context.Context, in *SignedMetrics, opts ...grpc.CallOption) (*types.Empty, error)
	UpdateMetricsAndDiscovery(ctx context.Context, in *SignedMetrics, opts ...grpc.CallOption) (*types.Empty, error)
	UpdateMetricsAggregation(ctx context.Context, in *NodeMetricsAggrReq, opts ...grpc.CallOption) (*types.Empty, error)
	UpdateDiscoveryAggregation(ctx context.Context, in *NodeDiscoveryAggrReq, opts ...grpc.CallOption) (*types.Empty, error)
	UpdateBtfsScanAggr(ctx context.Context, in *BtfsScanAggrReq, opts ...grpc.CallOption) (*types.Empty, error)
	UpdateScoreHistory(ctx context.Context, in *ScoreHistoryReq, opts ...grpc.CallOption) (*types.Empty, error)
	UpdateAirdropRewardHistory(ctx context.Context, in *AirdropRewardHistoryReq, opts ...grpc.CallOption) (*types.Empty, error)
	UpdateNodeContractStat(ctx context.Context, in *NodeContractStatReq, opts ...grpc.CallOption) (*types.Empty, error)
}

StatusServiceClient is the client API for StatusService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewStatusServiceClient

func NewStatusServiceClient(cc *grpc.ClientConn) StatusServiceClient

type StatusServiceServer

type StatusServiceServer interface {
	UpdateMetrics(context.Context, *SignedMetrics) (*types.Empty, error)
	UpdateMetricsAndDiscovery(context.Context, *SignedMetrics) (*types.Empty, error)
	UpdateMetricsAggregation(context.Context, *NodeMetricsAggrReq) (*types.Empty, error)
	UpdateDiscoveryAggregation(context.Context, *NodeDiscoveryAggrReq) (*types.Empty, error)
	UpdateBtfsScanAggr(context.Context, *BtfsScanAggrReq) (*types.Empty, error)
	UpdateScoreHistory(context.Context, *ScoreHistoryReq) (*types.Empty, error)
	UpdateAirdropRewardHistory(context.Context, *AirdropRewardHistoryReq) (*types.Empty, error)
	UpdateNodeContractStat(context.Context, *NodeContractStatReq) (*types.Empty, error)
}

StatusServiceServer is the server API for StatusService service.

type UnimplementedStatusServiceServer

type UnimplementedStatusServiceServer struct {
}

UnimplementedStatusServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedStatusServiceServer) UpdateAirdropRewardHistory

func (*UnimplementedStatusServiceServer) UpdateAirdropRewardHistory(ctx context.Context, req *AirdropRewardHistoryReq) (*types.Empty, error)

func (*UnimplementedStatusServiceServer) UpdateBtfsScanAggr

func (*UnimplementedStatusServiceServer) UpdateDiscoveryAggregation

func (*UnimplementedStatusServiceServer) UpdateDiscoveryAggregation(ctx context.Context, req *NodeDiscoveryAggrReq) (*types.Empty, error)

func (*UnimplementedStatusServiceServer) UpdateMetrics

func (*UnimplementedStatusServiceServer) UpdateMetricsAggregation

func (*UnimplementedStatusServiceServer) UpdateMetricsAggregation(ctx context.Context, req *NodeMetricsAggrReq) (*types.Empty, error)

func (*UnimplementedStatusServiceServer) UpdateMetricsAndDiscovery

func (*UnimplementedStatusServiceServer) UpdateMetricsAndDiscovery(ctx context.Context, req *SignedMetrics) (*types.Empty, error)

func (*UnimplementedStatusServiceServer) UpdateNodeContractStat

func (*UnimplementedStatusServiceServer) UpdateNodeContractStat(ctx context.Context, req *NodeContractStatReq) (*types.Empty, error)

func (*UnimplementedStatusServiceServer) UpdateScoreHistory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL