Versions in this module Expand all Collapse all v0 v0.3.2 Dec 30, 2025 Changes in this version + func TestServerConfig(t *testing.T) *config.CLI + type Device struct + BcdDevice uint16 + BusID string + BusNum uint32 + Class uint8 + ConfigVal uint8 + DeviceNum uint32 + IDProduct uint16 + IDVendor uint16 + Interfaces []usbip.InterfaceDesc + NumConfigs uint8 + NumIfaces uint8 + Path string + Protocol uint8 + Speed uint32 + SubClass uint8 + type ImportResult struct + Conn net.Conn + Exported Device + RawDescriptor []byte + type MockServer struct + ApiServer *api.Server + UsbServer *usb.Server + func NewTestServer(t *testing.T) *MockServer + type TestUsbIpClient struct + func NewUsbIpClient(t *testing.T, addr string) *TestUsbIpClient + func (c *TestUsbIpClient) AttachDevice(busID string) (*ImportResult, error) + func (c *TestUsbIpClient) ListDevices() ([]Device, error) + func (c *TestUsbIpClient) PollInputReport(conn net.Conn, want []byte, timeout time.Duration) ([]byte, error) + func (c *TestUsbIpClient) ReadInputReport(conn net.Conn) ([]byte, error) + func (c *TestUsbIpClient) ReadInputReportWithTimeout(conn net.Conn, timeout time.Duration) ([]byte, error) + func (c *TestUsbIpClient) Submit(conn net.Conn, dir uint32, ep uint32, outPayload []byte, setup *[8]byte) error + func (c *TestUsbIpClient) SubmitWithTimeout(conn net.Conn, dir uint32, ep uint32, outPayload []byte, setup *[8]byte, ...) error