Documentation
¶
Index ¶
- func BusCreate(s *usb.Server) api.HandlerFunc
- func BusDeviceAdd(s *usbs.Server, apiSrv *api.Server) api.HandlerFunc
- func BusDeviceRemove(s *usb.Server) api.HandlerFunc
- func BusDevicesList(s *usb.Server) api.HandlerFunc
- func BusList(s *usb.Server) api.HandlerFunc
- func BusRemove(s *usb.Server) api.HandlerFunc
- func Ping() api.HandlerFunc
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.