Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathKey ¶
func PathKey(path sciond.PathReplyEntry) string
PathKey is the mapping of a path reply entry to a key that is returned in GetStatuses.
Types ¶
type Prober ¶
Prober can be used to get the status of a path.
func (Prober) GetStatuses ¶
func (p Prober) GetStatuses(ctx context.Context, paths []sciond.PathReplyEntry) (map[string]Status, error)
GetStatuses probes the paths and returns the statuses of the paths. The returned map is keyed with path.Path.FwdPath.
type Status ¶
type Status struct { Status StatusName AdditionalInfo string }
Status indicates the state a path is in.
type StatusName ¶
type StatusName string
StatusName defines the different states a path can be in.
const ( // StatusUnknown indicates that it is not clear what state the path is in. StatusUnknown StatusName = "Unknown" // StatusTimeout indicates that a reply did come back in time for the path. StatusTimeout StatusName = "Timeout" // StatusAlive indicates that the expected reply did come back in time. StatusAlive StatusName = "Alive" // StatusSCMP indicates that an unexpected SCMP packet came in the reply. StatusSCMP StatusName = "SCMP" )
Click to show internal directories.
Click to hide internal directories.