Documentation
¶
Index ¶
- type Distance
- type Node
- type Simulator
- func (sim *Simulator) CalculateShortestPaths(nodes map[string]struct{}, wires map[string]map[string]bool)
- func (sim *Simulator) ConnectNodes(a, b string) error
- func (sim *Simulator) CreateNode(t string) error
- func (sim *Simulator) DHTConvergence() map[string]map[string]bool
- func (sim *Simulator) DisconnectNodes(a, b string) error
- func (sim *Simulator) Distances() map[string]map[string]*Distance
- func (sim *Simulator) LookupCoords(target string) (types.SwitchPorts, error)
- func (sim *Simulator) LookupNodeID(target types.SwitchPorts) (string, error)
- func (sim *Simulator) LookupPublicKey(target types.PublicKey) (string, error)
- func (sim *Simulator) Node(t string) *Node
- func (sim *Simulator) Nodes() map[string]*Node
- func (sim *Simulator) PathConvergence() map[string]map[string]bool
- func (sim *Simulator) Pathfind(from, to string) error
- func (sim *Simulator) ReportDeadLink(source, target types.PublicKey)
- func (sim *Simulator) ReportDistance(a, b string, l int64)
- func (sim *Simulator) ReportNewLink(c net.Conn, source, target types.PublicKey)
- func (sim *Simulator) Wires() map[string]map[string]net.Conn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simulator ¶
type Simulator struct {
// contains filtered or unexported fields
}
func NewSimulator ¶
func (*Simulator) CalculateShortestPaths ¶
func (*Simulator) ConnectNodes ¶
func (*Simulator) CreateNode ¶
func (*Simulator) DHTConvergence ¶
func (*Simulator) DisconnectNodes ¶
func (*Simulator) LookupCoords ¶
func (sim *Simulator) LookupCoords(target string) (types.SwitchPorts, error)
func (*Simulator) LookupNodeID ¶
func (sim *Simulator) LookupNodeID(target types.SwitchPorts) (string, error)
func (*Simulator) LookupPublicKey ¶
func (*Simulator) PathConvergence ¶
func (*Simulator) ReportDeadLink ¶
func (*Simulator) ReportDistance ¶
func (*Simulator) ReportNewLink ¶
Click to show internal directories.
Click to hide internal directories.