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) DisconnectNodes(a, b string) error
- func (sim *Simulator) Distances() map[string]map[string]*Distance
- func (sim *Simulator) LookupCoords(target string) (types.Coordinates, error)
- func (sim *Simulator) LookupNodeID(target types.Coordinates) (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) PingSNEK(from, to string) (uint16, time.Duration, error)
- func (sim *Simulator) PingTree(from, to string) (uint16, time.Duration, error)
- func (sim *Simulator) PingingEnabled() bool
- func (sim *Simulator) ReportDeadLink(source, target types.PublicKey)
- func (sim *Simulator) ReportDistance(a, b string, l int64, snek bool)
- func (sim *Simulator) ReportNewLink(c net.Conn, source, target types.PublicKey)
- func (sim *Simulator) SNEKPathConvergence() map[string]map[string]bool
- func (sim *Simulator) TreePathConvergence() map[string]map[string]bool
- func (sim *Simulator) Uptime() time.Duration
- 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 (*Simulator) CalculateShortestPaths ¶
func (*Simulator) ConnectNodes ¶
func (*Simulator) CreateNode ¶
func (*Simulator) DisconnectNodes ¶
func (*Simulator) LookupCoords ¶
func (sim *Simulator) LookupCoords(target string) (types.Coordinates, error)
func (*Simulator) LookupNodeID ¶
func (sim *Simulator) LookupNodeID(target types.Coordinates) (string, error)
func (*Simulator) LookupPublicKey ¶
func (*Simulator) PingingEnabled ¶ added in v0.4.0
func (*Simulator) ReportDeadLink ¶
func (*Simulator) ReportDistance ¶
func (*Simulator) ReportNewLink ¶
func (*Simulator) SNEKPathConvergence ¶ added in v0.2.0
func (*Simulator) TreePathConvergence ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.