func()

in collector/collector.go [119:129]


func (rs resultStore) add(target string, QosDSCPIndex uint8, srcPort layers.TCPPort, r report) {

	if rs[target] == nil {
		var resDSCP [defines.NumQOSDCSPValues]map[layers.TCPPort]report
		rs[target] = &resDSCP
	}
	if rs[target][QosDSCPIndex] == nil {
		rs[target][QosDSCPIndex] = make(map[layers.TCPPort]report)
	}
	rs[target][QosDSCPIndex][srcPort] = r
}