Documentation
¶
Index ¶
- func TestServerConfig(t *testing.T) *config.CLI
- type Device
- type ImportResult
- type MockServer
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockServer ¶
func NewTestServer ¶
func NewTestServer(t *testing.T) *MockServer
type TestUsbIpClient ¶
type TestUsbIpClient struct {
// contains filtered or unexported fields
}
func NewUsbIpClient ¶
func NewUsbIpClient(t *testing.T, addr string) *TestUsbIpClient
func (*TestUsbIpClient) AttachDevice ¶
func (c *TestUsbIpClient) AttachDevice(busID string) (*ImportResult, error)
func (*TestUsbIpClient) ListDevices ¶
func (c *TestUsbIpClient) ListDevices() ([]Device, error)
func (*TestUsbIpClient) PollInputReport ¶
func (*TestUsbIpClient) ReadInputReport ¶
func (c *TestUsbIpClient) ReadInputReport(conn net.Conn) ([]byte, error)
func (*TestUsbIpClient) ReadInputReportWithTimeout ¶
Click to show internal directories.
Click to hide internal directories.