Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NodePersistence func([]Node)
NodePersistence just prevent import cycle
Functions ¶
func UpdateLinkStates ¶
func UpdateLinkStates(infos ...LinkStates)
UpdateLinkStates Update the latency between nodes All link from the node included in the infos will be cleared before update
Types ¶
type LinkStates ¶
type LinkStates = []LinkState
func EstimateAndStoreLatencies ¶
func EstimateAndStoreLatencies() LinkStates
EstimateAndStoreLatencies Estimate the latency between nodes and store it in the router info
func EstimateLatencies ¶
func EstimateLatencies(nodes []Node, from string) LinkStates
func GetLinkStates ¶
func GetLinkStates() LinkStates
Click to show internal directories.
Click to hide internal directories.