Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PerfPolicy ¶
type Policies ¶
type Policies struct { // Path policies are used to determine which paths are eligible and which are not. PathPolicy PathPolicy // PerfPolicy determines how to select a path if there are several eligible // ones. If set to nil, arbitrary path is chosen. PerfPolicy PerfPolicy // PathCount is the max number of paths to return to the user. Defaults to 1. PathCount int }
Policies is a container for different kinds of policies.
type Stats ¶
type Stats struct { // Fingerprint is unique ID of the path. It can be used to achieve consistent ordering // and thus prevent random path switching even if all the other path metrics are the same. Fingerprint snet.PathFingerprint // Latency is median one-way latency of the path. Latency time.Duration // Jitter is the average of the difference between consecutive latencies. Jitter time.Duration // DropRate is a percentage of probes with no replies. From interval (0,1). DropRate float64 // Is Alive is true if the probes are passing through at the moment. IsAlive bool // IsCurrent is true when the path is currently the active one. IsCurrent bool // IsRevoked is true if a revocation was issued for one or more interfaces on the path. IsRevoked bool }
Stats contains all the metrics about a path.
Click to show internal directories.
Click to hide internal directories.