handler

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BusCreate

func BusCreate(s *usb.Server) api.HandlerFunc

BusCreate returns a handler that creates a new bus. Error logging is centralized in the API server; this handler only returns errors.

func BusDeviceAdd

func BusDeviceAdd(s *usbs.Server, apiSrv *api.Server) api.HandlerFunc

BusDeviceAdd returns a handler to add devices to a bus.

func BusDeviceRemove

func BusDeviceRemove(s *usb.Server) api.HandlerFunc

BusDeviceRemove returns a handler that removes a device by device number.

func BusDevicesList

func BusDevicesList(s *usb.Server) api.HandlerFunc

BusDevicesList returns a handler that lists devices on a bus.

func BusList

func BusList(s *usb.Server) api.HandlerFunc

BusList returns a handler that lists registered busses. Error logging is centralized in the API server.

func BusRemove

func BusRemove(s *usb.Server) api.HandlerFunc

BusRemove returns a handler that removes a bus.

func Ping added in v0.3.0

func Ping() api.HandlerFunc

Ping returns a handler for the "ping" endpoint. It provides a minimal identity + version response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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