Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct { // ReplyStartTimestamp describes the number of seconds that should pass after a fake SCIOND has // been created before serving paths from the entry. The last entry whose timestamp has passed // is selected. (so, if the seconds timestamps are 0, 4, 6, the paths selected at 5 seconds from // creation would be the ones associated with timestamp 4) ReplyStartTimestamp int `json:"reply_start_timestamp"` // Paths contains the paths for a fake SCIOND reply. Paths []*Path `json:"paths"` }
Entry describes a path reply.
type Path ¶
type Path struct { // JSONInterfaces encodes a list of interfaces JSONInterfaces []PathInterface `json:"interfaces,omitempty"` JSONNextHop *UDPAddr `json:"next_hop,omitempty"` // JSONExpirationTimestamp contains the point in time when the path expires, in seconds, // relative to the time of fake connector creation. Negative timestamps are also supported, and // would mean SCIOND served a path that expired in the past. JSONExpirationTimestamp int `json:"expiration_timestamp"` }
type PathInterface ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.