usbtool

package
v0.0.0-...-f4bcb24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeviceNotFound error = errors.New("device not found")
View Source
var ErrSearchTermTooBroad error = errors.New("search term too broad, multiple devices found")

Functions

This section is empty.

Types

type Device

type Device struct {
	Path        string
	VendorID    string
	VendorName  string
	ProductId   string
	ProductName string
}

func GetAllDevices

func GetAllDevices() (ret []Device)

func SearchDevice

func SearchDevice(term string) (Device, error)

func (*Device) GetPath

func (d *Device) GetPath()

func (Device) String

func (d Device) String() string

Jump to

Keyboard shortcuts

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