api

package
v0.0.0-...-14e1c19 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRoutes

func SetupRoutes(handler *Handler) *mux.Router

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

func NewHandler(manager *discovery.Manager) *Handler

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

Jump to

Keyboard shortcuts

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