Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitProtocol ¶ added in v1.65.1
InitProtocol initials protocol
Types ¶
type Counter ¶ added in v1.68.1
type Counter struct {
// contains filtered or unexported fields
}
Counter ...
func (*Counter) AddTaskInfo ¶ added in v1.68.1
AddTaskInfo ...
func (*Counter) UpdateTaskInfo ¶ added in v1.68.1
UpdateTaskInfo ...
type PeerTaskCounter ¶ added in v1.68.1
type PeerTaskCounter struct {
// contains filtered or unexported fields
}
PeerTaskCounter ...
func NewPeerTaskCounter ¶ added in v1.68.1
func NewPeerTaskCounter(pid, taskID string) *PeerTaskCounter
NewPeerTaskCounter ...
func (*PeerTaskCounter) Append ¶ added in v1.68.1
func (p *PeerTaskCounter) Append(height, costTime int64)
Append add counter info
func (*PeerTaskCounter) AppendLatency ¶ added in v1.68.1
func (p *PeerTaskCounter) AppendLatency(latency time.Duration)
AppendLatency ...
func (*PeerTaskCounter) Counter ¶ added in v1.68.1
func (p *PeerTaskCounter) Counter() int64
Counter ..
func (*PeerTaskCounter) Pretty ¶ added in v1.68.1
func (p *PeerTaskCounter) Pretty() string
Pretty print information
Click to show internal directories.
Click to hide internal directories.