usb

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented USB")
	ErrNotAUSB        = errors.New("Object is not a USB")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface get the JS interface

Types

type USB

type USB struct {
	eventtarget.EventTarget
}

USB struct

func NewFromJSObject

func NewFromJSObject(obj js.Value) (USB, error)

func (USB) Clipboard_

func (u USB) Clipboard_() USB

func (USB) GetDevices

func (u USB) GetDevices() (promise.Promise, error)

func (USB) RequestDevices

func (u USB) RequestDevices(filter map[string]interface{}) (promise.Promise, error)

type USBFrom

type USBFrom interface {
	USB_() USB
}

Jump to

Keyboard shortcuts

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