Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hydra ¶
Hydra is a container for heads (sybils) and their shared belly bits.
func (*Hydra) GetUniquePeersCount ¶
GetUniquePeersCount retrieves the current total for unique peers
type Options ¶
type Options struct {
DatastorePath string
GetPort func() int
NSybils int
BucketSize int
BsCon int
Relay bool
Stagger time.Duration
MetricsPeriod time.Duration
}
Options are configuration for a new hydra
type PeriodicMetrics ¶
type PeriodicMetrics struct {
// contains filtered or unexported fields
}
PeriodicMetrics periodically collects and records statistics with prometheus.
func NewPeriodicMetrics ¶
NewPeriodicMetrics creates a new PeriodicMetrics that immeidately begins to periodically collect and record statistics with prometheus.
Click to show internal directories.
Click to hide internal directories.