MCPcopy Create free account
hub / github.com/evilsocket/pwngrid / FindAccessPoint

Method FindAccessPoint

models/unit.go:40–50  ·  view source on GitHub ↗
(essid, bssid string)

Source from the content-addressed store, hash-verified

38}
39
40func (u Unit) FindAccessPoint(essid, bssid string) *AccessPoint {
41 var ap AccessPoint
42
43 if err := db.Where("unit_id = ? AND name = ? AND mac = ?", u.ID, essid, bssid).Take(&ap).Error; err != nil {
44 if err := db.Where("unit_id = ? AND mac = ?", u.ID, bssid).Take(&ap).Error; err != nil {
45 return nil
46 }
47 }
48
49 return &ap
50}
51
52func (u *Unit) updateToken() error {
53 claims := jwt.MapClaims{}

Callers 1

unitReportMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected