Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccessPoints = make([]*AccessPoint, 0) AccessPointsMutex sync.Mutex )
View Source
var ( Clients = make([]*Client, 0) ClientsMutex sync.Mutex )
Functions ¶
func GenerateID ¶
func GenerateID() int
func StoreAccessPoint ¶
func StoreAccessPoint(accessPoint *AccessPoint)
func StoreClient ¶
func StoreClient(client *Client)
Types ¶
type AccessPoint ¶
type AccessPoint struct { ID int `json:"id"` SSID string `json:"ssid"` MACAddrs []string `json:"macAddrs"` Vendors []string `json:"vendor"` RSSI int8 `json:"rssi"` Channels []int `json:"channels"` *sync.RWMutex `json:"-"` }
func GetAccessPoints ¶
func GetAccessPoints() []*AccessPoint
func (*AccessPoint) Update ¶
func (ap *AccessPoint) Update(latest *AccessPoint)
Click to show internal directories.
Click to hide internal directories.