Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotEnoughData = fmt.Errorf("not enough data") ErrWrongNumOfPeers = fmt.Errorf("expected bucket size number of peers") )
View Source
var ( MaxMeasurementAge = 2 * time.Hour MinMeasurementsThreshold = 5 MaxMeasurementsThreshold = 150 )
Functions ¶
Types ¶
type Estimator ¶
type Estimator struct {
// contains filtered or unexported fields
}
func NewEstimator ¶
func (*Estimator) NetworkSize ¶
NetworkSize 指示估计器计算当前网络大小估计。
Click to show internal directories.
Click to hide internal directories.