Documentation ¶
Index ¶
- Constants
- Variables
- func ConvergenceToString() (output [][]string)
- func DropLink(x, y peer.ID, timestamp int64, list []Link) bool
- func LinksToString(linkList []Link) (output [][]string)
- func MessagesToString(nodeMap map[peer.ID]Node, status *StatusMap) (output [][]string)
- func NewLinkAnalysis(nodeMap map[peer.ID]Node) *linkAnalysis
- func WriteAdjlist(nodeMap map[peer.ID]Node, filename string) error
- func WriteCSV(records [][]string, filename string, header ...[]string) error
- type Convergence
- type ConvergenceList
- type Link
- type Node
- type Status
- type StatusMap
- type StatusSum
Constants ¶
View Source
const ( ACCEPTED = 'A' REJECTED = 'R' DROPPED = 'D' OUTBOUND = 'O' INCOMING = 'I' )
Variables ¶
View Source
var RecordConv = NewConvergenceList()
Functions ¶
func ConvergenceToString ¶
func ConvergenceToString() (output [][]string)
func LinksToString ¶
func MessagesToString ¶
func NewLinkAnalysis ¶
Types ¶
type Convergence ¶
type Convergence struct {
// contains filtered or unexported fields
}
type ConvergenceList ¶
func NewConvergenceList ¶
func NewConvergenceList() *ConvergenceList
func (*ConvergenceList) Append ¶
func (c *ConvergenceList) Append(t Convergence)
func (*ConvergenceList) GetAvgNeighbors ¶
func (c *ConvergenceList) GetAvgNeighbors() float64
func (*ConvergenceList) GetConvergence ¶
func (c *ConvergenceList) GetConvergence() float64
type Node ¶
type Node struct { Start func() Stop func() // contains filtered or unexported fields }
func NewNode ¶
func NewNode(name string, saltLifetime time.Duration, network *transport.ChanNetwork, dropOnUpdate bool, discover selection.DiscoverProtocol) Node
func (Node) GetNeighbors ¶
func (Node) GetOutgoingNeighbors ¶
type StatusMap ¶
func NewStatusMap ¶
func NewStatusMap() *StatusMap
Source Files ¶
Click to show internal directories.
Click to hide internal directories.