Documentation ¶
Overview ¶
Package ippusbbridge provides functions for interacting with ippusb_bridge. ippusb_bridge provides support for connecting to IPP-over-USB printers and forwarding arbitrary protocols (IPP, eSCL, etc.) to those printers via HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContactPrinterEndpoint ¶
ContactPrinterEndpoint sends an HTTP request for url through the ippusb_bridge socket that matches devInfo. Returns nil if a response is received regardless of the HTTP status code or body contents.
func Kill ¶
func Kill(ctx context.Context, devInfo usbprinter.DevInfo) error
Kill searches the process tree to kill the ippusb_bridge process. It also removes the ippusb_bridge and ippusb_bridge keepalive sockets.
func SocketPath ¶
func SocketPath(devInfo usbprinter.DevInfo) string
SocketPath returns the path to ippusb_bridge's main socket.
func WaitForSocket ¶
func WaitForSocket(ctx context.Context, devInfo usbprinter.DevInfo) error
WaitForSocket waits for the ippusb_bridge socket that should match devInfo to appear in the filesystem.
Types ¶
This section is empty.