Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRoutes ¶
SetupRoutes configures all API routes with proper parameter handling
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds the discovery manager
func NewHandler ¶
NewHandler creates a new API handler
func (*Handler) DeviceHandler ¶
func (h *Handler) DeviceHandler(w http.ResponseWriter, r *http.Request)
DeviceHandler returns a specific device by ID
func (*Handler) DevicesHandler ¶
func (h *Handler) DevicesHandler(w http.ResponseWriter, r *http.Request)
DevicesHandler returns all discovered devices
func (*Handler) GetLastScanHandler ¶
func (h *Handler) GetLastScanHandler(w http.ResponseWriter, r *http.Request)
GetLastScanHandler returns the time of the last scan
func (*Handler) ScanHandler ¶
func (h *Handler) ScanHandler(w http.ResponseWriter, r *http.Request)
ScanHandler triggers a new discovery scan
Click to show internal directories.
Click to hide internal directories.