Documentation ¶
Overview ¶
Package spathmeta implements basic types for working with SCIOND paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppPath ¶
type AppPath struct {
Entry *sciond.PathReplyEntry
}
AppPath contains a SCIOND path entry.
type AppPathSet ¶
AppPathSet represents a set of SCIOND path entries, keyed by AppPath.Key().
func NewAppPathSet ¶
func NewAppPathSet(reply *sciond.PathReply) AppPathSet
NewAppPathSet creates a new set of paths from a SCIOND path reply.
func (AppPathSet) Add ¶
func (aps AppPathSet) Add(entry *sciond.PathReplyEntry) *AppPath
Add converts the SCIOND path entry to an AppPath and adds it to the set.
func (AppPathSet) Copy ¶
func (aps AppPathSet) Copy() AppPathSet
func (AppPathSet) GetAppPath ¶
func (aps AppPathSet) GetAppPath(pref PathKey) *AppPath
GetAppPath returns an AppPath from the set. It first tries to find a path with key pref; if one cannot be found, an arbitrary one is returned.
func (AppPathSet) String ¶
func (aps AppPathSet) String() string
Click to show internal directories.
Click to hide internal directories.