Documentation ¶
Index ¶
- type HttpHandler
- func (h *HttpHandler) DeleteDevice(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) DeleteWifi(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) GetDeviceList(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) GetWifiBySSID(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) GetWifiList(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) Init(router *chi.Mux, configData *model.ConfigData, devices *model.Devices)
- func (h *HttpHandler) PostDeviceAdopt(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) PostWifi(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) PutWifi(w http.ResponseWriter, r *http.Request)
- func (h *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type UnifiHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHandler ¶
type HttpHandler struct {
// contains filtered or unexported fields
}
func (*HttpHandler) DeleteDevice ¶
func (h *HttpHandler) DeleteDevice(w http.ResponseWriter, r *http.Request)
Forgets a network device by MAC address
func (*HttpHandler) DeleteWifi ¶
func (h *HttpHandler) DeleteWifi(w http.ResponseWriter, r *http.Request)
deletes a wifi network by SSID
func (*HttpHandler) GetDeviceList ¶
func (h *HttpHandler) GetDeviceList(w http.ResponseWriter, r *http.Request)
Gets a list of all devices
func (*HttpHandler) GetWifiBySSID ¶
func (h *HttpHandler) GetWifiBySSID(w http.ResponseWriter, r *http.Request)
Returns a wifi network with the given SSID
func (*HttpHandler) GetWifiList ¶
func (h *HttpHandler) GetWifiList(w http.ResponseWriter, r *http.Request)
Returns a list of all wifi networks
func (*HttpHandler) Init ¶
func (h *HttpHandler) Init(router *chi.Mux, configData *model.ConfigData, devices *model.Devices)
func (*HttpHandler) PostDeviceAdopt ¶
func (h *HttpHandler) PostDeviceAdopt(w http.ResponseWriter, r *http.Request)
Adopts a device by MAC address
func (*HttpHandler) PostWifi ¶
func (h *HttpHandler) PostWifi(w http.ResponseWriter, r *http.Request)
Creates a new wifi network using model.WifiNetworkConfig
func (*HttpHandler) PutWifi ¶
func (h *HttpHandler) PutWifi(w http.ResponseWriter, r *http.Request)
Update existing wifi network using model.WifiNetworkConfig
func (*HttpHandler) ServeHTTP ¶
func (h *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UnifiHandler ¶
type UnifiHandler struct {
// contains filtered or unexported fields
}
func (*UnifiHandler) Init ¶
func (h *UnifiHandler) Init(router *chi.Mux, configData *model.ConfigData, devices *model.Devices)
Click to show internal directories.
Click to hide internal directories.