Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultMovingAverageWeight is the weight of the moving average.
DefaultMovingAverageWeight = 0.1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probes ¶
type Probes interface { // Peek returns the oldest probe without removing it. Peek() (*Probe, bool) // Enqueue enqueues probe into the queue. Enqueue(*Probe) error // Dequeue removes and returns the oldest probe. Dequeue() (*Probe, bool) // Items returns the probes list. Items() *list.List // Length gets the length of probes. Length() int // CreatedAt is the creation time of probes. CreatedAt() time.Time // UpdatedAt is the updated time to store probe. UpdatedAt() time.Time // AverageRTT is the average round-trip time of probes. AverageRTT() time.Duration }
Click to show internal directories.
Click to hide internal directories.