package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 25, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package twin provides network protocol digital twin modeling.
type Link struct {
From string `json:"from"`
To string `json:"to"`
Bandwidth string `json:"bandwidth"`
Latency string `json:"latency"`
}
Link represents a network link.
type Model struct {
Name string `json:"name"`
Nodes []Node `json:"nodes"`
Links []Link `json:"links"`
}
Model represents a digital twin model.
NewModel creates a new digital twin model.
Describe returns a model description.
ToMermaid generates a Mermaid network diagram.
WhatIf performs a what-if analysis by modifying a parameter.
type Node struct {
ID string `json:"id"`
Type string `json:"type"`
Protocols []string `json:"protocols"`
}
Node represents a network node in the digital twin.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.