Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxPaths = 10
DefaultMaxPaths is the maximum number of paths that are displayed by default.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Local configures the local IP address to use. If this option is not provided,
// a local IP that can reach SCION hosts is selected with the help of the kernel.
Local net.IP
// Daemon configures a specific SCION Deamon address.
Daemon string
// MaxPaths configures the maximum number of displayed paths. If this option is
// not provided, the DefaultMaxPaths is used.
MaxPaths int
// Refresh configures whether the daemon is queried with the refresh flag.
Refresh bool
// NoProbe configures whether the path status is probed or not.
NoProbe bool
// Sequence is a string of space separated Hop Predicates that is used for
// filtering.
Sequence string
// Dispatcher is the path to the dispatcher socket. Leaving this empty uses
// the default dispatcher socket value.
Dispatcher string
// Epic filters paths for which EPIC is not available, and when probing, the
// EPIC path type header is used.
Epic bool
}
Config configures the showpath run.
type Path ¶
type Path struct {
FullPath snet.Path `json:"-"`
Fingerprint string `json:"fingerprint"`
Hops []Hop `json:"hops"`
NextHop string `json:"next_hop"`
Expiry time.Time `json:"expiry"`
MTU uint16 `json:"mtu"`
Latency []time.Duration `json:"latency"`
Status string `json:"status,omitempty"`
StatusInfo string `json:"status_info,omitempty"`
Local net.IP `json:"local_ip,omitempty"`
}
Path holds information about the discovered path.
type Result ¶
type Result struct {
LocalIA addr.IA `json:"local_isd_as"`
Destination addr.IA `json:"destination"`
Paths []Path `json:"paths,omitempty"`
}
Result contains all the discovered paths.
Click to show internal directories.
Click to hide internal directories.