Пример #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)
}