controller

package
v0.0.0-...-18e6872 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL