Discover Packages
github.com/hsqbyte/protospec
src
twin
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: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
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.