示例#1
0
func GetProbeRequestCount(db store.DataStore) (int, string) {
	probes := db.GetAllProbeRequests()
	return http.StatusOK, fmt.Sprintf("%d", len(probes))
}
示例#2
0
func GetAllProbeRequests(db store.DataStore) (int, string) {
	probes := db.GetAllProbeRequests()
	return http.StatusOK, mustEncode(&probes)
}