Documentation ¶
Index ¶
- func FindIndexByPathString(pq []PathQuality, s string) int
- func PathToString(path snet.Path) string
- func UnwrapPathset(pathset PathSet) []snet.Path
- type CustomPathSelection
- type InMemoryPathQualityDatabase
- func (db *InMemoryPathQualityDatabase) GetPathSet(addr *snet.UDPAddr) (PathSet, error)
- func (db *InMemoryPathQualityDatabase) SetConnections(conns []packets.UDPConn)
- func (db *InMemoryPathQualityDatabase) UpdateMetrics()
- func (db *InMemoryPathQualityDatabase) UpdatePathQualities(addr *snet.UDPAddr, metricsInterval time.Duration) error
- type PathEnumerator
- type PathQuality
- type PathQualityDatabase
- type PathSet
- type SelecteablePathSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindIndexByPathString ¶
func FindIndexByPathString(pq []PathQuality, s string) int
func PathToString ¶
func UnwrapPathset ¶
Types ¶
type CustomPathSelection ¶
type InMemoryPathQualityDatabase ¶
type InMemoryPathQualityDatabase struct {
// contains filtered or unexported fields
}
func NewInMemoryPathQualityDatabase ¶
func NewInMemoryPathQualityDatabase() *InMemoryPathQualityDatabase
func (*InMemoryPathQualityDatabase) GetPathSet ¶
func (db *InMemoryPathQualityDatabase) GetPathSet(addr *snet.UDPAddr) (PathSet, error)
func (*InMemoryPathQualityDatabase) SetConnections ¶
func (db *InMemoryPathQualityDatabase) SetConnections(conns []packets.UDPConn)
func (*InMemoryPathQualityDatabase) UpdateMetrics ¶
func (db *InMemoryPathQualityDatabase) UpdateMetrics()
func (*InMemoryPathQualityDatabase) UpdatePathQualities ¶
type PathEnumerator ¶
type PathQuality ¶
type PathQualityDatabase ¶
type PathSet ¶
type PathSet struct { Address snet.UDPAddr Paths []PathQuality }
func SelectPaths ¶
func (*PathSet) GetPathHighBandwidth ¶
GetPathHighBandwidth Select the shortest paths from given path array
func (*PathSet) GetPathLargeMTU ¶
func (*PathSet) GetPathLowLatency ¶
GetPathLowLatency Select the paths from given path array with lowest total latency
func (*PathSet) GetPathSmallHopCount ¶
GetPathSmallHopCount Select the shortest paths from given path array
Click to show internal directories.
Click to hide internal directories.