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

Function parseServerRPC

nfs/parse.go:93–105  ·  view source on GitHub ↗
(v []uint64)

Source from the content-addressed store, hash-verified

91}
92
93func parseServerRPC(v []uint64) (ServerRPC, error) {
94 if len(v) != 5 {
95 return ServerRPC{}, fmt.Errorf("invalid RPC line %v", v)
96 }
97
98 return ServerRPC{
99 RPCCount: v[0],
100 BadCnt: v[1],
101 BadFmt: v[2],
102 BadAuth: v[3],
103 BadcInt: v[4],
104 }, nil
105}
106
107func parseClientRPC(v []uint64) (ClientRPC, error) {
108 if len(v) != 3 {

Callers 1

ParseServerRPCStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…