Documentation ¶
Index ¶
Constants ¶
View Source
const ( // commands used by the protocol CmdDump = "dump" CmdGet = "get" // station event actions ActionConnect = "connect" ActionDisconnect = "disconnect" // message types TypeError = "error" TypeStationEvent = "station-event" TypeCmdGetResponse = CmdGet + "-response" TypeCmdDumpResponse = CmdDump + "-response" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Type string `json:"type"` Data json.RawMessage `json:"data"` }
Message is the generic wrapper for messages
func NewMessage ¶
type Station ¶
type Station struct { Wifi wifi.StationInfo `json:"wifi"` IP net.IP `json:"ip"` }
Station is a wifi station info and IP address
func NewStation ¶
func NewStation(station *wifi.StationInfo) Station
NewStation returns a station given the station info
func NewStations ¶
func NewStations(stations []*wifi.StationInfo) []Station
NewStations returns stations given the station infos
Click to show internal directories.
Click to hide internal directories.