MCPcopy Create free account
hub / github.com/prometheus/procfs / NetRoute

Method NetRoute

net_route.go:48–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func (fs FS) NetRoute() ([]NetRouteLine, error) {
49 return readNetRoute(fs.proc.Path("net", "route"))
50}
51
52func readNetRoute(path string) ([]NetRouteLine, error) {
53 b, err := parsers.ReadFileNoStat(path)

Callers

nothing calls this directly

Calls 2

readNetRouteFunction · 0.85
PathMethod · 0.45

Tested by

no test coverage detected