| 1 | // +build !windows |
| 2 | |
| 3 | package blescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ |
| 4 | |
| 5 | import ( |
| 6 | "github.com/bettercap/bettercap/networkscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/" |
| 7 | ) |
| 8 | |
| 9 | type ByBLERSSISorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLERSSISorter# []*networkscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/.BLEDevicescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice# |
| 10 | |
| 11 | func (a ByBLERSSISorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLERSSISorter#) Lenscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLERSSISorter#Len().() int { return len(a) } |
| 12 | func (a ByBLERSSISorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLERSSISorter#) Swapscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLERSSISorter#Swap().(i, j int) { a[i], a[j] = a[j], a[i] } |
| 13 | func (a ByBLERSSISorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLERSSISorter#) Lessscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLERSSISorter#Less().(i, j int) bool { |
| 14 | if a[i].RSSIscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#RSSI. == a[j].RSSIscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#RSSI. { |
| 15 | return a[i].Devicescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#Device..IDscip-go gomod github.com/bettercap/gatt ec4935e8c4a0 `github.com/bettercap/gatt`/Peripheral#ID().() < a[j].Devicescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#Device..IDscip-go gomod github.com/bettercap/gatt ec4935e8c4a0 `github.com/bettercap/gatt`/Peripheral#ID().() |
| 16 | } |
| 17 | return a[i].RSSIscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#RSSI. > a[j].RSSIscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#RSSI. |
| 18 | } |
| 19 | |
| 20 | type ByBLEMacSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLEMacSorter# []*networkscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/.BLEDevicescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice# |
| 21 | |
| 22 | func (a ByBLEMacSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLEMacSorter#) Lenscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLEMacSorter#Len().() int { return len(a) } |
| 23 | func (a ByBLEMacSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLEMacSorter#) Swapscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLEMacSorter#Swap().(i, j int) { a[i], a[j] = a[j], a[i] } |
| 24 | func (a ByBLEMacSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLEMacSorter#) Lessscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLEMacSorter#Less().(i, j int) bool { |
| 25 | return a[i].Devicescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#Device..IDscip-go gomod github.com/bettercap/gatt ec4935e8c4a0 `github.com/bettercap/gatt`/Peripheral#ID().() < a[j].Devicescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#Device..IDscip-go gomod github.com/bettercap/gatt ec4935e8c4a0 `github.com/bettercap/gatt`/Peripheral#ID().() |
| 26 | } |
| 27 | |
| 28 | type ByBLESeenSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLESeenSorter# []*networkscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/.BLEDevicescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice# |
| 29 | |
| 30 | func (a ByBLESeenSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLESeenSorter#) Lenscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLESeenSorter#Len().() int { return len(a) } |
| 31 | func (a ByBLESeenSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLESeenSorter#) Swapscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLESeenSorter#Swap().(i, j int) { a[i], a[j] = a[j], a[i] } |
| 32 | func (a ByBLESeenSorterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLESeenSorter#) Lessscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/ble`/ByBLESeenSorter#Less().(i, j int) bool { return a[i].LastSeenscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#LastSeen..Beforescip-go gomod github.com/golang/go/src go1.16 time/Time#Before().(a[j].LastSeenscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/network`/BLEDevice#LastSeen.) } |