webapi: github.com/gowebapi/webapi/device/usb Index | Files

package usb

import "github.com/gowebapi/webapi/device/usb"

Pacakge usb is for securely providing access to Universal Serial Bus devices from web pages.

Index

Package Files

doc.go usb.go

Constants

const PermissionName = "usb"

Persmission name to use in PermissionDescriptor

type AllowedUSBDevice Uses

type AllowedUSBDevice struct {
    VendorId     int
    ProductId    int
    SerialNumber string
}

dictionary: AllowedUSBDevice

func AllowedUSBDeviceFromJS Uses

func AllowedUSBDeviceFromJS(value js.Wrapper) *AllowedUSBDevice

AllowedUSBDeviceFromJS is allocating a new AllowedUSBDevice object and copy all values from input javascript object

func (*AllowedUSBDevice) JSValue Uses

func (_this *AllowedUSBDevice) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type PromiseSequenceUSBDevice Uses

type PromiseSequenceUSBDevice struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseSequenceUSBDeviceFromJS Uses

func PromiseSequenceUSBDeviceFromJS(value js.Wrapper) *PromiseSequenceUSBDevice

PromiseSequenceUSBDeviceFromJS is casting a js.Wrapper into PromiseSequenceUSBDevice.

func (*PromiseSequenceUSBDevice) Catch Uses

func (_this *PromiseSequenceUSBDevice) Catch(onRejected *PromiseSequenceUSBDeviceOnRejected) (_result *PromiseSequenceUSBDevice)

func (*PromiseSequenceUSBDevice) Finally Uses

func (_this *PromiseSequenceUSBDevice) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceUSBDevice)

func (*PromiseSequenceUSBDevice) JSValue Uses

func (_this *PromiseSequenceUSBDevice) JSValue() js.Value

func (*PromiseSequenceUSBDevice) Then Uses

func (_this *PromiseSequenceUSBDevice) Then(onFulfilled *PromiseSequenceUSBDeviceOnFulfilled, onRejected *PromiseSequenceUSBDeviceOnRejected) (_result *PromiseSequenceUSBDevice)

type PromiseSequenceUSBDeviceOnFulfilled Uses

type PromiseSequenceUSBDeviceOnFulfilled js.Func

PromiseSequenceUSBDeviceOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceUSBDeviceOnFulfilledToJS Uses

func PromiseSequenceUSBDeviceOnFulfilledToJS(callback PromiseSequenceUSBDeviceOnFulfilledFunc) *PromiseSequenceUSBDeviceOnFulfilled

type PromiseSequenceUSBDeviceOnFulfilledFunc Uses

type PromiseSequenceUSBDeviceOnFulfilledFunc func(value []*USBDevice)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceUSBDeviceOnFulfilledFromJS Uses

func PromiseSequenceUSBDeviceOnFulfilledFromJS(_value js.Value) PromiseSequenceUSBDeviceOnFulfilledFunc

type PromiseSequenceUSBDeviceOnRejected Uses

type PromiseSequenceUSBDeviceOnRejected js.Func

PromiseSequenceUSBDeviceOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceUSBDeviceOnRejectedToJS Uses

func PromiseSequenceUSBDeviceOnRejectedToJS(callback PromiseSequenceUSBDeviceOnRejectedFunc) *PromiseSequenceUSBDeviceOnRejected

type PromiseSequenceUSBDeviceOnRejectedFunc Uses

type PromiseSequenceUSBDeviceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceUSBDeviceOnRejectedFromJS Uses

func PromiseSequenceUSBDeviceOnRejectedFromJS(_value js.Value) PromiseSequenceUSBDeviceOnRejectedFunc

type PromiseUSBDevice Uses

type PromiseUSBDevice struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseUSBDeviceFromJS Uses

func PromiseUSBDeviceFromJS(value js.Wrapper) *PromiseUSBDevice

PromiseUSBDeviceFromJS is casting a js.Wrapper into PromiseUSBDevice.

func (*PromiseUSBDevice) Catch Uses

func (_this *PromiseUSBDevice) Catch(onRejected *PromiseUSBDeviceOnRejected) (_result *PromiseUSBDevice)

func (*PromiseUSBDevice) Finally Uses

func (_this *PromiseUSBDevice) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseUSBDevice)

func (*PromiseUSBDevice) JSValue Uses

func (_this *PromiseUSBDevice) JSValue() js.Value

func (*PromiseUSBDevice) Then Uses

func (_this *PromiseUSBDevice) Then(onFulfilled *PromiseUSBDeviceOnFulfilled, onRejected *PromiseUSBDeviceOnRejected) (_result *PromiseUSBDevice)

type PromiseUSBDeviceOnFulfilled Uses

type PromiseUSBDeviceOnFulfilled js.Func

PromiseUSBDeviceOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBDeviceOnFulfilledToJS Uses

func PromiseUSBDeviceOnFulfilledToJS(callback PromiseUSBDeviceOnFulfilledFunc) *PromiseUSBDeviceOnFulfilled

type PromiseUSBDeviceOnFulfilledFunc Uses

type PromiseUSBDeviceOnFulfilledFunc func(value *USBDevice)

callback: PromiseTemplateOnFulfilled

func PromiseUSBDeviceOnFulfilledFromJS Uses

func PromiseUSBDeviceOnFulfilledFromJS(_value js.Value) PromiseUSBDeviceOnFulfilledFunc

type PromiseUSBDeviceOnRejected Uses

type PromiseUSBDeviceOnRejected js.Func

PromiseUSBDeviceOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBDeviceOnRejectedToJS Uses

func PromiseUSBDeviceOnRejectedToJS(callback PromiseUSBDeviceOnRejectedFunc) *PromiseUSBDeviceOnRejected

type PromiseUSBDeviceOnRejectedFunc Uses

type PromiseUSBDeviceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseUSBDeviceOnRejectedFromJS Uses

func PromiseUSBDeviceOnRejectedFromJS(_value js.Value) PromiseUSBDeviceOnRejectedFunc

type PromiseUSBInTransferResult Uses

type PromiseUSBInTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseUSBInTransferResultFromJS Uses

func PromiseUSBInTransferResultFromJS(value js.Wrapper) *PromiseUSBInTransferResult

PromiseUSBInTransferResultFromJS is casting a js.Wrapper into PromiseUSBInTransferResult.

func (*PromiseUSBInTransferResult) Catch Uses

func (_this *PromiseUSBInTransferResult) Catch(onRejected *PromiseUSBInTransferResultOnRejected) (_result *PromiseUSBInTransferResult)

func (*PromiseUSBInTransferResult) Finally Uses

func (_this *PromiseUSBInTransferResult) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseUSBInTransferResult)

func (*PromiseUSBInTransferResult) JSValue Uses

func (_this *PromiseUSBInTransferResult) JSValue() js.Value

func (*PromiseUSBInTransferResult) Then Uses

func (_this *PromiseUSBInTransferResult) Then(onFulfilled *PromiseUSBInTransferResultOnFulfilled, onRejected *PromiseUSBInTransferResultOnRejected) (_result *PromiseUSBInTransferResult)

type PromiseUSBInTransferResultOnFulfilled Uses

type PromiseUSBInTransferResultOnFulfilled js.Func

PromiseUSBInTransferResultOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBInTransferResultOnFulfilledToJS Uses

func PromiseUSBInTransferResultOnFulfilledToJS(callback PromiseUSBInTransferResultOnFulfilledFunc) *PromiseUSBInTransferResultOnFulfilled

type PromiseUSBInTransferResultOnFulfilledFunc Uses

type PromiseUSBInTransferResultOnFulfilledFunc func(value *USBInTransferResult)

callback: PromiseTemplateOnFulfilled

func PromiseUSBInTransferResultOnFulfilledFromJS Uses

func PromiseUSBInTransferResultOnFulfilledFromJS(_value js.Value) PromiseUSBInTransferResultOnFulfilledFunc

type PromiseUSBInTransferResultOnRejected Uses

type PromiseUSBInTransferResultOnRejected js.Func

PromiseUSBInTransferResultOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBInTransferResultOnRejectedToJS Uses

func PromiseUSBInTransferResultOnRejectedToJS(callback PromiseUSBInTransferResultOnRejectedFunc) *PromiseUSBInTransferResultOnRejected

type PromiseUSBInTransferResultOnRejectedFunc Uses

type PromiseUSBInTransferResultOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseUSBInTransferResultOnRejectedFromJS Uses

func PromiseUSBInTransferResultOnRejectedFromJS(_value js.Value) PromiseUSBInTransferResultOnRejectedFunc

type PromiseUSBIsochronousInTransferResult Uses

type PromiseUSBIsochronousInTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseUSBIsochronousInTransferResultFromJS Uses

func PromiseUSBIsochronousInTransferResultFromJS(value js.Wrapper) *PromiseUSBIsochronousInTransferResult

PromiseUSBIsochronousInTransferResultFromJS is casting a js.Wrapper into PromiseUSBIsochronousInTransferResult.

func (*PromiseUSBIsochronousInTransferResult) Catch Uses

func (_this *PromiseUSBIsochronousInTransferResult) Catch(onRejected *PromiseUSBIsochronousInTransferResultOnRejected) (_result *PromiseUSBIsochronousInTransferResult)

func (*PromiseUSBIsochronousInTransferResult) Finally Uses

func (_this *PromiseUSBIsochronousInTransferResult) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseUSBIsochronousInTransferResult)

func (*PromiseUSBIsochronousInTransferResult) JSValue Uses

func (_this *PromiseUSBIsochronousInTransferResult) JSValue() js.Value

func (*PromiseUSBIsochronousInTransferResult) Then Uses

func (_this *PromiseUSBIsochronousInTransferResult) Then(onFulfilled *PromiseUSBIsochronousInTransferResultOnFulfilled, onRejected *PromiseUSBIsochronousInTransferResultOnRejected) (_result *PromiseUSBIsochronousInTransferResult)

type PromiseUSBIsochronousInTransferResultOnFulfilled Uses

type PromiseUSBIsochronousInTransferResultOnFulfilled js.Func

PromiseUSBIsochronousInTransferResultOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBIsochronousInTransferResultOnFulfilledToJS Uses

func PromiseUSBIsochronousInTransferResultOnFulfilledToJS(callback PromiseUSBIsochronousInTransferResultOnFulfilledFunc) *PromiseUSBIsochronousInTransferResultOnFulfilled

type PromiseUSBIsochronousInTransferResultOnFulfilledFunc Uses

type PromiseUSBIsochronousInTransferResultOnFulfilledFunc func(value *USBIsochronousInTransferResult)

callback: PromiseTemplateOnFulfilled

func PromiseUSBIsochronousInTransferResultOnFulfilledFromJS Uses

func PromiseUSBIsochronousInTransferResultOnFulfilledFromJS(_value js.Value) PromiseUSBIsochronousInTransferResultOnFulfilledFunc

type PromiseUSBIsochronousInTransferResultOnRejected Uses

type PromiseUSBIsochronousInTransferResultOnRejected js.Func

PromiseUSBIsochronousInTransferResultOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBIsochronousInTransferResultOnRejectedToJS Uses

func PromiseUSBIsochronousInTransferResultOnRejectedToJS(callback PromiseUSBIsochronousInTransferResultOnRejectedFunc) *PromiseUSBIsochronousInTransferResultOnRejected

type PromiseUSBIsochronousInTransferResultOnRejectedFunc Uses

type PromiseUSBIsochronousInTransferResultOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseUSBIsochronousInTransferResultOnRejectedFromJS Uses

func PromiseUSBIsochronousInTransferResultOnRejectedFromJS(_value js.Value) PromiseUSBIsochronousInTransferResultOnRejectedFunc

type PromiseUSBIsochronousOutTransferResult Uses

type PromiseUSBIsochronousOutTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseUSBIsochronousOutTransferResultFromJS Uses

func PromiseUSBIsochronousOutTransferResultFromJS(value js.Wrapper) *PromiseUSBIsochronousOutTransferResult

PromiseUSBIsochronousOutTransferResultFromJS is casting a js.Wrapper into PromiseUSBIsochronousOutTransferResult.

func (*PromiseUSBIsochronousOutTransferResult) Catch Uses

func (_this *PromiseUSBIsochronousOutTransferResult) Catch(onRejected *PromiseUSBIsochronousOutTransferResultOnRejected) (_result *PromiseUSBIsochronousOutTransferResult)

func (*PromiseUSBIsochronousOutTransferResult) Finally Uses

func (_this *PromiseUSBIsochronousOutTransferResult) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseUSBIsochronousOutTransferResult)

func (*PromiseUSBIsochronousOutTransferResult) JSValue Uses

func (_this *PromiseUSBIsochronousOutTransferResult) JSValue() js.Value

func (*PromiseUSBIsochronousOutTransferResult) Then Uses

func (_this *PromiseUSBIsochronousOutTransferResult) Then(onFulfilled *PromiseUSBIsochronousOutTransferResultOnFulfilled, onRejected *PromiseUSBIsochronousOutTransferResultOnRejected) (_result *PromiseUSBIsochronousOutTransferResult)

type PromiseUSBIsochronousOutTransferResultOnFulfilled Uses

type PromiseUSBIsochronousOutTransferResultOnFulfilled js.Func

PromiseUSBIsochronousOutTransferResultOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBIsochronousOutTransferResultOnFulfilledToJS Uses

func PromiseUSBIsochronousOutTransferResultOnFulfilledToJS(callback PromiseUSBIsochronousOutTransferResultOnFulfilledFunc) *PromiseUSBIsochronousOutTransferResultOnFulfilled

type PromiseUSBIsochronousOutTransferResultOnFulfilledFunc Uses

type PromiseUSBIsochronousOutTransferResultOnFulfilledFunc func(value *USBIsochronousOutTransferResult)

callback: PromiseTemplateOnFulfilled

func PromiseUSBIsochronousOutTransferResultOnFulfilledFromJS Uses

func PromiseUSBIsochronousOutTransferResultOnFulfilledFromJS(_value js.Value) PromiseUSBIsochronousOutTransferResultOnFulfilledFunc

type PromiseUSBIsochronousOutTransferResultOnRejected Uses

type PromiseUSBIsochronousOutTransferResultOnRejected js.Func

PromiseUSBIsochronousOutTransferResultOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBIsochronousOutTransferResultOnRejectedToJS Uses

func PromiseUSBIsochronousOutTransferResultOnRejectedToJS(callback PromiseUSBIsochronousOutTransferResultOnRejectedFunc) *PromiseUSBIsochronousOutTransferResultOnRejected

type PromiseUSBIsochronousOutTransferResultOnRejectedFunc Uses

type PromiseUSBIsochronousOutTransferResultOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseUSBIsochronousOutTransferResultOnRejectedFromJS Uses

func PromiseUSBIsochronousOutTransferResultOnRejectedFromJS(_value js.Value) PromiseUSBIsochronousOutTransferResultOnRejectedFunc

type PromiseUSBOutTransferResult Uses

type PromiseUSBOutTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseUSBOutTransferResultFromJS Uses

func PromiseUSBOutTransferResultFromJS(value js.Wrapper) *PromiseUSBOutTransferResult

PromiseUSBOutTransferResultFromJS is casting a js.Wrapper into PromiseUSBOutTransferResult.

func (*PromiseUSBOutTransferResult) Catch Uses

func (_this *PromiseUSBOutTransferResult) Catch(onRejected *PromiseUSBOutTransferResultOnRejected) (_result *PromiseUSBOutTransferResult)

func (*PromiseUSBOutTransferResult) Finally Uses

func (_this *PromiseUSBOutTransferResult) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseUSBOutTransferResult)

func (*PromiseUSBOutTransferResult) JSValue Uses

func (_this *PromiseUSBOutTransferResult) JSValue() js.Value

func (*PromiseUSBOutTransferResult) Then Uses

func (_this *PromiseUSBOutTransferResult) Then(onFulfilled *PromiseUSBOutTransferResultOnFulfilled, onRejected *PromiseUSBOutTransferResultOnRejected) (_result *PromiseUSBOutTransferResult)

type PromiseUSBOutTransferResultOnFulfilled Uses

type PromiseUSBOutTransferResultOnFulfilled js.Func

PromiseUSBOutTransferResultOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBOutTransferResultOnFulfilledToJS Uses

func PromiseUSBOutTransferResultOnFulfilledToJS(callback PromiseUSBOutTransferResultOnFulfilledFunc) *PromiseUSBOutTransferResultOnFulfilled

type PromiseUSBOutTransferResultOnFulfilledFunc Uses

type PromiseUSBOutTransferResultOnFulfilledFunc func(value *USBOutTransferResult)

callback: PromiseTemplateOnFulfilled

func PromiseUSBOutTransferResultOnFulfilledFromJS Uses

func PromiseUSBOutTransferResultOnFulfilledFromJS(_value js.Value) PromiseUSBOutTransferResultOnFulfilledFunc

type PromiseUSBOutTransferResultOnRejected Uses

type PromiseUSBOutTransferResultOnRejected js.Func

PromiseUSBOutTransferResultOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseUSBOutTransferResultOnRejectedToJS Uses

func PromiseUSBOutTransferResultOnRejectedToJS(callback PromiseUSBOutTransferResultOnRejectedFunc) *PromiseUSBOutTransferResultOnRejected

type PromiseUSBOutTransferResultOnRejectedFunc Uses

type PromiseUSBOutTransferResultOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseUSBOutTransferResultOnRejectedFromJS Uses

func PromiseUSBOutTransferResultOnRejectedFromJS(_value js.Value) PromiseUSBOutTransferResultOnRejectedFunc

type USB Uses

type USB struct {
    domcore.EventTarget
}

class: USB

func USBFromJS Uses

func USBFromJS(value js.Wrapper) *USB

USBFromJS is casting a js.Wrapper into USB.

func (*USB) AddEventConnect Uses

func (_this *USB) AddEventConnect(listener func(event *USBConnectionEvent, currentTarget *USB)) js.Func

AddConnect is adding doing AddEventListener for 'Connect' on target. This method is returning allocated javascript function that need to be released.

func (*USB) AddEventDisconnect Uses

func (_this *USB) AddEventDisconnect(listener func(event *USBConnectionEvent, currentTarget *USB)) js.Func

AddDisconnect is adding doing AddEventListener for 'Disconnect' on target. This method is returning allocated javascript function that need to be released.

func (*USB) GetDevices Uses

func (_this *USB) GetDevices() (_result *PromiseSequenceUSBDevice)

func (*USB) OnConnect Uses

func (_this *USB) OnConnect() domcore.EventHandlerFunc

OnConnect returning attribute 'onconnect' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*USB) OnDisconnect Uses

func (_this *USB) OnDisconnect() domcore.EventHandlerFunc

OnDisconnect returning attribute 'ondisconnect' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*USB) RequestDevice Uses

func (_this *USB) RequestDevice(options *USBDeviceRequestOptions) (_result *PromiseUSBDevice)

func (*USB) SetOnConnect Uses

func (_this *USB) SetOnConnect(listener func(event *USBConnectionEvent, currentTarget *USB)) js.Func

SetOnConnect is assigning a function to 'onconnect'. This This method is returning allocated javascript function that need to be released.

func (*USB) SetOnDisconnect Uses

func (_this *USB) SetOnDisconnect(listener func(event *USBConnectionEvent, currentTarget *USB)) js.Func

SetOnDisconnect is assigning a function to 'ondisconnect'. This This method is returning allocated javascript function that need to be released.

type USBAlternateInterface Uses

type USBAlternateInterface struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBAlternateInterface

func NewUSBAlternateInterface Uses

func NewUSBAlternateInterface(deviceInterface *USBInterface, alternateSetting int) (_result *USBAlternateInterface)

func USBAlternateInterfaceFromJS Uses

func USBAlternateInterfaceFromJS(value js.Wrapper) *USBAlternateInterface

USBAlternateInterfaceFromJS is casting a js.Wrapper into USBAlternateInterface.

func (*USBAlternateInterface) AlternateSetting Uses

func (_this *USBAlternateInterface) AlternateSetting() int

AlternateSetting returning attribute 'alternateSetting' with type int (idl: octet).

func (*USBAlternateInterface) Endpoints Uses

func (_this *USBAlternateInterface) Endpoints() *javascript.FrozenArray

Endpoints returning attribute 'endpoints' with type javascript.FrozenArray (idl: FrozenArray).

func (*USBAlternateInterface) InterfaceClass Uses

func (_this *USBAlternateInterface) InterfaceClass() int

InterfaceClass returning attribute 'interfaceClass' with type int (idl: octet).

func (*USBAlternateInterface) InterfaceName Uses

func (_this *USBAlternateInterface) InterfaceName() *string

InterfaceName returning attribute 'interfaceName' with type string (idl: DOMString).

func (*USBAlternateInterface) InterfaceProtocol Uses

func (_this *USBAlternateInterface) InterfaceProtocol() int

InterfaceProtocol returning attribute 'interfaceProtocol' with type int (idl: octet).

func (*USBAlternateInterface) InterfaceSubclass Uses

func (_this *USBAlternateInterface) InterfaceSubclass() int

InterfaceSubclass returning attribute 'interfaceSubclass' with type int (idl: octet).

func (*USBAlternateInterface) JSValue Uses

func (_this *USBAlternateInterface) JSValue() js.Value

type USBConfiguration Uses

type USBConfiguration struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBConfiguration

func NewUSBConfiguration Uses

func NewUSBConfiguration(device *USBDevice, configurationValue int) (_result *USBConfiguration)

func USBConfigurationFromJS Uses

func USBConfigurationFromJS(value js.Wrapper) *USBConfiguration

USBConfigurationFromJS is casting a js.Wrapper into USBConfiguration.

func (*USBConfiguration) ConfigurationName Uses

func (_this *USBConfiguration) ConfigurationName() *string

ConfigurationName returning attribute 'configurationName' with type string (idl: DOMString).

func (*USBConfiguration) ConfigurationValue Uses

func (_this *USBConfiguration) ConfigurationValue() int

ConfigurationValue returning attribute 'configurationValue' with type int (idl: octet).

func (*USBConfiguration) Interfaces Uses

func (_this *USBConfiguration) Interfaces() *javascript.FrozenArray

Interfaces returning attribute 'interfaces' with type javascript.FrozenArray (idl: FrozenArray).

func (*USBConfiguration) JSValue Uses

func (_this *USBConfiguration) JSValue() js.Value

type USBConnectionEvent Uses

type USBConnectionEvent struct {
    domcore.Event
}

class: USBConnectionEvent

func NewUSBConnectionEvent Uses

func NewUSBConnectionEvent(_type string, eventInitDict *USBConnectionEventInit) (_result *USBConnectionEvent)

func USBConnectionEventFromJS Uses

func USBConnectionEventFromJS(value js.Wrapper) *USBConnectionEvent

USBConnectionEventFromJS is casting a js.Wrapper into USBConnectionEvent.

func (*USBConnectionEvent) Device Uses

func (_this *USBConnectionEvent) Device() *USBDevice

Device returning attribute 'device' with type USBDevice (idl: USBDevice).

type USBConnectionEventInit Uses

type USBConnectionEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Device     *USBDevice
}

dictionary: USBConnectionEventInit

func USBConnectionEventInitFromJS Uses

func USBConnectionEventInitFromJS(value js.Wrapper) *USBConnectionEventInit

USBConnectionEventInitFromJS is allocating a new USBConnectionEventInit object and copy all values from input javascript object

func (*USBConnectionEventInit) JSValue Uses

func (_this *USBConnectionEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type USBControlTransferParameters Uses

type USBControlTransferParameters struct {
    RequestType USBRequestType
    Recipient   USBRecipient
    Request     int
    Value       int
    Index       int
}

dictionary: USBControlTransferParameters

func USBControlTransferParametersFromJS Uses

func USBControlTransferParametersFromJS(value js.Wrapper) *USBControlTransferParameters

USBControlTransferParametersFromJS is allocating a new USBControlTransferParameters object and copy all values from input javascript object

func (*USBControlTransferParameters) JSValue Uses

func (_this *USBControlTransferParameters) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type USBDevice Uses

type USBDevice struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBDevice

func USBDeviceFromJS Uses

func USBDeviceFromJS(value js.Wrapper) *USBDevice

USBDeviceFromJS is casting a js.Wrapper into USBDevice.

func (*USBDevice) ClaimInterface Uses

func (_this *USBDevice) ClaimInterface(interfaceNumber int) (_result *javascript.PromiseVoid)

func (*USBDevice) ClearHalt Uses

func (_this *USBDevice) ClearHalt(direction USBDirection, endpointNumber int) (_result *javascript.PromiseVoid)

func (*USBDevice) Close Uses

func (_this *USBDevice) Close() (_result *javascript.PromiseVoid)

func (*USBDevice) Configuration Uses

func (_this *USBDevice) Configuration() *USBConfiguration

Configuration returning attribute 'configuration' with type USBConfiguration (idl: USBConfiguration).

func (*USBDevice) Configurations Uses

func (_this *USBDevice) Configurations() *javascript.FrozenArray

Configurations returning attribute 'configurations' with type javascript.FrozenArray (idl: FrozenArray).

func (*USBDevice) ControlTransferIn Uses

func (_this *USBDevice) ControlTransferIn(setup *USBControlTransferParameters, length int) (_result *PromiseUSBInTransferResult)

func (*USBDevice) ControlTransferOut Uses

func (_this *USBDevice) ControlTransferOut(setup *USBControlTransferParameters, data *Union) (_result *PromiseUSBOutTransferResult)

func (*USBDevice) DeviceClass Uses

func (_this *USBDevice) DeviceClass() int

DeviceClass returning attribute 'deviceClass' with type int (idl: octet).

func (*USBDevice) DeviceProtocol Uses

func (_this *USBDevice) DeviceProtocol() int

DeviceProtocol returning attribute 'deviceProtocol' with type int (idl: octet).

func (*USBDevice) DeviceSubclass Uses

func (_this *USBDevice) DeviceSubclass() int

DeviceSubclass returning attribute 'deviceSubclass' with type int (idl: octet).

func (*USBDevice) DeviceVersionMajor Uses

func (_this *USBDevice) DeviceVersionMajor() int

DeviceVersionMajor returning attribute 'deviceVersionMajor' with type int (idl: octet).

func (*USBDevice) DeviceVersionMinor Uses

func (_this *USBDevice) DeviceVersionMinor() int

DeviceVersionMinor returning attribute 'deviceVersionMinor' with type int (idl: octet).

func (*USBDevice) DeviceVersionSubminor Uses

func (_this *USBDevice) DeviceVersionSubminor() int

DeviceVersionSubminor returning attribute 'deviceVersionSubminor' with type int (idl: octet).

func (*USBDevice) IsochronousTransferIn Uses

func (_this *USBDevice) IsochronousTransferIn(endpointNumber int, packetLengths []uint) (_result *PromiseUSBIsochronousInTransferResult)

func (*USBDevice) IsochronousTransferOut Uses

func (_this *USBDevice) IsochronousTransferOut(endpointNumber int, data *Union, packetLengths []uint) (_result *PromiseUSBIsochronousOutTransferResult)

func (*USBDevice) JSValue Uses

func (_this *USBDevice) JSValue() js.Value

func (*USBDevice) ManufacturerName Uses

func (_this *USBDevice) ManufacturerName() *string

ManufacturerName returning attribute 'manufacturerName' with type string (idl: DOMString).

func (*USBDevice) Open Uses

func (_this *USBDevice) Open() (_result *javascript.PromiseVoid)

func (*USBDevice) Opened Uses

func (_this *USBDevice) Opened() bool

Opened returning attribute 'opened' with type bool (idl: boolean).

func (*USBDevice) ProductId Uses

func (_this *USBDevice) ProductId() int

ProductId returning attribute 'productId' with type int (idl: unsigned short).

func (*USBDevice) ProductName Uses

func (_this *USBDevice) ProductName() *string

ProductName returning attribute 'productName' with type string (idl: DOMString).

func (*USBDevice) ReleaseInterface Uses

func (_this *USBDevice) ReleaseInterface(interfaceNumber int) (_result *javascript.PromiseVoid)

func (*USBDevice) Reset Uses

func (_this *USBDevice) Reset() (_result *javascript.PromiseVoid)

func (*USBDevice) SelectAlternateInterface Uses

func (_this *USBDevice) SelectAlternateInterface(interfaceNumber int, alternateSetting int) (_result *javascript.PromiseVoid)

func (*USBDevice) SelectConfiguration Uses

func (_this *USBDevice) SelectConfiguration(configurationValue int) (_result *javascript.PromiseVoid)

func (*USBDevice) SerialNumber Uses

func (_this *USBDevice) SerialNumber() *string

SerialNumber returning attribute 'serialNumber' with type string (idl: DOMString).

func (*USBDevice) TransferIn Uses

func (_this *USBDevice) TransferIn(endpointNumber int, length uint) (_result *PromiseUSBInTransferResult)

func (*USBDevice) TransferOut Uses

func (_this *USBDevice) TransferOut(endpointNumber int, data *Union) (_result *PromiseUSBOutTransferResult)

func (*USBDevice) UsbVersionMajor Uses

func (_this *USBDevice) UsbVersionMajor() int

UsbVersionMajor returning attribute 'usbVersionMajor' with type int (idl: octet).

func (*USBDevice) UsbVersionMinor Uses

func (_this *USBDevice) UsbVersionMinor() int

UsbVersionMinor returning attribute 'usbVersionMinor' with type int (idl: octet).

func (*USBDevice) UsbVersionSubminor Uses

func (_this *USBDevice) UsbVersionSubminor() int

UsbVersionSubminor returning attribute 'usbVersionSubminor' with type int (idl: octet).

func (*USBDevice) VendorId Uses

func (_this *USBDevice) VendorId() int

VendorId returning attribute 'vendorId' with type int (idl: unsigned short).

type USBDeviceFilter Uses

type USBDeviceFilter struct {
    VendorId     int
    ProductId    int
    ClassCode    int
    SubclassCode int
    ProtocolCode int
    SerialNumber string
}

dictionary: USBDeviceFilter

func USBDeviceFilterFromJS Uses

func USBDeviceFilterFromJS(value js.Wrapper) *USBDeviceFilter

USBDeviceFilterFromJS is allocating a new USBDeviceFilter object and copy all values from input javascript object

func (*USBDeviceFilter) JSValue Uses

func (_this *USBDeviceFilter) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type USBDeviceRequestOptions Uses

type USBDeviceRequestOptions struct {
    Filters []*USBDeviceFilter
}

dictionary: USBDeviceRequestOptions

func USBDeviceRequestOptionsFromJS Uses

func USBDeviceRequestOptionsFromJS(value js.Wrapper) *USBDeviceRequestOptions

USBDeviceRequestOptionsFromJS is allocating a new USBDeviceRequestOptions object and copy all values from input javascript object

func (*USBDeviceRequestOptions) JSValue Uses

func (_this *USBDeviceRequestOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type USBDirection Uses

type USBDirection int

enum: USBDirection

const (
    InUSBDirection USBDirection = iota
    OutUSBDirection
)

func USBDirectionFromJS Uses

func USBDirectionFromJS(value js.Value) USBDirection

USBDirectionFromJS is converting a javascript value into a USBDirection enum value.

func (*USBDirection) JSValue Uses

func (this *USBDirection) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (USBDirection) Value Uses

func (this USBDirection) Value() string

Value is converting this into javascript defined string value

type USBEndpoint Uses

type USBEndpoint struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBEndpoint

func NewUSBEndpoint Uses

func NewUSBEndpoint(alternate *USBAlternateInterface, endpointNumber int, direction USBDirection) (_result *USBEndpoint)

func USBEndpointFromJS Uses

func USBEndpointFromJS(value js.Wrapper) *USBEndpoint

USBEndpointFromJS is casting a js.Wrapper into USBEndpoint.

func (*USBEndpoint) Direction Uses

func (_this *USBEndpoint) Direction() USBDirection

Direction returning attribute 'direction' with type USBDirection (idl: USBDirection).

func (*USBEndpoint) EndpointNumber Uses

func (_this *USBEndpoint) EndpointNumber() int

EndpointNumber returning attribute 'endpointNumber' with type int (idl: octet).

func (*USBEndpoint) JSValue Uses

func (_this *USBEndpoint) JSValue() js.Value

func (*USBEndpoint) PacketSize Uses

func (_this *USBEndpoint) PacketSize() uint

PacketSize returning attribute 'packetSize' with type uint (idl: unsigned long).

func (*USBEndpoint) Type Uses

func (_this *USBEndpoint) Type() USBEndpointType

Type returning attribute 'type' with type USBEndpointType (idl: USBEndpointType).

type USBEndpointType Uses

type USBEndpointType int

enum: USBEndpointType

const (
    BulkUSBEndpointType USBEndpointType = iota
    InterruptUSBEndpointType
    IsochronousUSBEndpointType
)

func USBEndpointTypeFromJS Uses

func USBEndpointTypeFromJS(value js.Value) USBEndpointType

USBEndpointTypeFromJS is converting a javascript value into a USBEndpointType enum value.

func (*USBEndpointType) JSValue Uses

func (this *USBEndpointType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (USBEndpointType) Value Uses

func (this USBEndpointType) Value() string

Value is converting this into javascript defined string value

type USBInTransferResult Uses

type USBInTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBInTransferResult

func NewUSBInTransferResult Uses

func NewUSBInTransferResult(status USBTransferStatus, data *javascript.DataView) (_result *USBInTransferResult)

func USBInTransferResultFromJS Uses

func USBInTransferResultFromJS(value js.Wrapper) *USBInTransferResult

USBInTransferResultFromJS is casting a js.Wrapper into USBInTransferResult.

func (*USBInTransferResult) Data Uses

func (_this *USBInTransferResult) Data() *javascript.DataView

Data returning attribute 'data' with type javascript.DataView (idl: DataView).

func (*USBInTransferResult) JSValue Uses

func (_this *USBInTransferResult) JSValue() js.Value

func (*USBInTransferResult) Status Uses

func (_this *USBInTransferResult) Status() USBTransferStatus

Status returning attribute 'status' with type USBTransferStatus (idl: USBTransferStatus).

type USBInterface Uses

type USBInterface struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBInterface

func NewUSBInterface Uses

func NewUSBInterface(configuration *USBConfiguration, interfaceNumber int) (_result *USBInterface)

func USBInterfaceFromJS Uses

func USBInterfaceFromJS(value js.Wrapper) *USBInterface

USBInterfaceFromJS is casting a js.Wrapper into USBInterface.

func (*USBInterface) Alternate Uses

func (_this *USBInterface) Alternate() *USBAlternateInterface

Alternate returning attribute 'alternate' with type USBAlternateInterface (idl: USBAlternateInterface).

func (*USBInterface) Alternates Uses

func (_this *USBInterface) Alternates() *javascript.FrozenArray

Alternates returning attribute 'alternates' with type javascript.FrozenArray (idl: FrozenArray).

func (*USBInterface) Claimed Uses

func (_this *USBInterface) Claimed() bool

Claimed returning attribute 'claimed' with type bool (idl: boolean).

func (*USBInterface) InterfaceNumber Uses

func (_this *USBInterface) InterfaceNumber() int

InterfaceNumber returning attribute 'interfaceNumber' with type int (idl: octet).

func (*USBInterface) JSValue Uses

func (_this *USBInterface) JSValue() js.Value

type USBIsochronousInTransferPacket Uses

type USBIsochronousInTransferPacket struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBIsochronousInTransferPacket

func NewUSBIsochronousInTransferPacket Uses

func NewUSBIsochronousInTransferPacket(status USBTransferStatus, data *javascript.DataView) (_result *USBIsochronousInTransferPacket)

func USBIsochronousInTransferPacketFromJS Uses

func USBIsochronousInTransferPacketFromJS(value js.Wrapper) *USBIsochronousInTransferPacket

USBIsochronousInTransferPacketFromJS is casting a js.Wrapper into USBIsochronousInTransferPacket.

func (*USBIsochronousInTransferPacket) Data Uses

func (_this *USBIsochronousInTransferPacket) Data() *javascript.DataView

Data returning attribute 'data' with type javascript.DataView (idl: DataView).

func (*USBIsochronousInTransferPacket) JSValue Uses

func (_this *USBIsochronousInTransferPacket) JSValue() js.Value

func (*USBIsochronousInTransferPacket) Status Uses

func (_this *USBIsochronousInTransferPacket) Status() USBTransferStatus

Status returning attribute 'status' with type USBTransferStatus (idl: USBTransferStatus).

type USBIsochronousInTransferResult Uses

type USBIsochronousInTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBIsochronousInTransferResult

func NewUSBIsochronousInTransferResult Uses

func NewUSBIsochronousInTransferResult(packets []*USBIsochronousInTransferPacket, data *javascript.DataView) (_result *USBIsochronousInTransferResult)

func USBIsochronousInTransferResultFromJS Uses

func USBIsochronousInTransferResultFromJS(value js.Wrapper) *USBIsochronousInTransferResult

USBIsochronousInTransferResultFromJS is casting a js.Wrapper into USBIsochronousInTransferResult.

func (*USBIsochronousInTransferResult) Data Uses

func (_this *USBIsochronousInTransferResult) Data() *javascript.DataView

Data returning attribute 'data' with type javascript.DataView (idl: DataView).

func (*USBIsochronousInTransferResult) JSValue Uses

func (_this *USBIsochronousInTransferResult) JSValue() js.Value

func (*USBIsochronousInTransferResult) Packets Uses

func (_this *USBIsochronousInTransferResult) Packets() *javascript.FrozenArray

Packets returning attribute 'packets' with type javascript.FrozenArray (idl: FrozenArray).

type USBIsochronousOutTransferPacket Uses

type USBIsochronousOutTransferPacket struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBIsochronousOutTransferPacket

func NewUSBIsochronousOutTransferPacket Uses

func NewUSBIsochronousOutTransferPacket(status USBTransferStatus, bytesWritten *uint) (_result *USBIsochronousOutTransferPacket)

func USBIsochronousOutTransferPacketFromJS Uses

func USBIsochronousOutTransferPacketFromJS(value js.Wrapper) *USBIsochronousOutTransferPacket

USBIsochronousOutTransferPacketFromJS is casting a js.Wrapper into USBIsochronousOutTransferPacket.

func (*USBIsochronousOutTransferPacket) BytesWritten Uses

func (_this *USBIsochronousOutTransferPacket) BytesWritten() uint

BytesWritten returning attribute 'bytesWritten' with type uint (idl: unsigned long).

func (*USBIsochronousOutTransferPacket) JSValue Uses

func (_this *USBIsochronousOutTransferPacket) JSValue() js.Value

func (*USBIsochronousOutTransferPacket) Status Uses

func (_this *USBIsochronousOutTransferPacket) Status() USBTransferStatus

Status returning attribute 'status' with type USBTransferStatus (idl: USBTransferStatus).

type USBIsochronousOutTransferResult Uses

type USBIsochronousOutTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBIsochronousOutTransferResult

func NewUSBIsochronousOutTransferResult Uses

func NewUSBIsochronousOutTransferResult(packets []*USBIsochronousOutTransferPacket) (_result *USBIsochronousOutTransferResult)

func USBIsochronousOutTransferResultFromJS Uses

func USBIsochronousOutTransferResultFromJS(value js.Wrapper) *USBIsochronousOutTransferResult

USBIsochronousOutTransferResultFromJS is casting a js.Wrapper into USBIsochronousOutTransferResult.

func (*USBIsochronousOutTransferResult) JSValue Uses

func (_this *USBIsochronousOutTransferResult) JSValue() js.Value

func (*USBIsochronousOutTransferResult) Packets Uses

func (_this *USBIsochronousOutTransferResult) Packets() *javascript.FrozenArray

Packets returning attribute 'packets' with type javascript.FrozenArray (idl: FrozenArray).

type USBOutTransferResult Uses

type USBOutTransferResult struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: USBOutTransferResult

func NewUSBOutTransferResult Uses

func NewUSBOutTransferResult(status USBTransferStatus, bytesWritten *uint) (_result *USBOutTransferResult)

func USBOutTransferResultFromJS Uses

func USBOutTransferResultFromJS(value js.Wrapper) *USBOutTransferResult

USBOutTransferResultFromJS is casting a js.Wrapper into USBOutTransferResult.

func (*USBOutTransferResult) BytesWritten Uses

func (_this *USBOutTransferResult) BytesWritten() uint

BytesWritten returning attribute 'bytesWritten' with type uint (idl: unsigned long).

func (*USBOutTransferResult) JSValue Uses

func (_this *USBOutTransferResult) JSValue() js.Value

func (*USBOutTransferResult) Status Uses

func (_this *USBOutTransferResult) Status() USBTransferStatus

Status returning attribute 'status' with type USBTransferStatus (idl: USBTransferStatus).

type USBPermissionDescriptor Uses

type USBPermissionDescriptor struct {
    Name    string
    Filters []*USBDeviceFilter
}

dictionary: USBPermissionDescriptor

func USBPermissionDescriptorFromJS Uses

func USBPermissionDescriptorFromJS(value js.Wrapper) *USBPermissionDescriptor

USBPermissionDescriptorFromJS is allocating a new USBPermissionDescriptor object and copy all values from input javascript object

func (*USBPermissionDescriptor) JSValue Uses

func (_this *USBPermissionDescriptor) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type USBPermissionResult Uses

type USBPermissionResult struct {
    permissions.PermissionStatus
}

class: USBPermissionResult

func USBPermissionResultFromJS Uses

func USBPermissionResultFromJS(value js.Wrapper) *USBPermissionResult

USBPermissionResultFromJS is casting a js.Wrapper into USBPermissionResult.

func (*USBPermissionResult) Devices Uses

func (_this *USBPermissionResult) Devices() *javascript.FrozenArray

Devices returning attribute 'devices' with type javascript.FrozenArray (idl: FrozenArray).

func (*USBPermissionResult) SetDevices Uses

func (_this *USBPermissionResult) SetDevices(value *javascript.FrozenArray)

SetDevices setting attribute 'devices' with type javascript.FrozenArray (idl: FrozenArray).

type USBPermissionStorage Uses

type USBPermissionStorage struct {
    AllowedDevices []*AllowedUSBDevice
}

dictionary: USBPermissionStorage

func USBPermissionStorageFromJS Uses

func USBPermissionStorageFromJS(value js.Wrapper) *USBPermissionStorage

USBPermissionStorageFromJS is allocating a new USBPermissionStorage object and copy all values from input javascript object

func (*USBPermissionStorage) JSValue Uses

func (_this *USBPermissionStorage) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type USBRecipient Uses

type USBRecipient int

enum: USBRecipient

const (
    DeviceUSBRecipient USBRecipient = iota
    InterfaceUSBRecipient
    EndpointUSBRecipient
    OtherUSBRecipient
)

func USBRecipientFromJS Uses

func USBRecipientFromJS(value js.Value) USBRecipient

USBRecipientFromJS is converting a javascript value into a USBRecipient enum value.

func (*USBRecipient) JSValue Uses

func (this *USBRecipient) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (USBRecipient) Value Uses

func (this USBRecipient) Value() string

Value is converting this into javascript defined string value

type USBRequestType Uses

type USBRequestType int

enum: USBRequestType

const (
    StandardUSBRequestType USBRequestType = iota
    ClassUSBRequestType
    VendorUSBRequestType
)

func USBRequestTypeFromJS Uses

func USBRequestTypeFromJS(value js.Value) USBRequestType

USBRequestTypeFromJS is converting a javascript value into a USBRequestType enum value.

func (*USBRequestType) JSValue Uses

func (this *USBRequestType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (USBRequestType) Value Uses

func (this USBRequestType) Value() string

Value is converting this into javascript defined string value

type USBTransferStatus Uses

type USBTransferStatus int

enum: USBTransferStatus

const (
    OkUSBTransferStatus USBTransferStatus = iota
    StallUSBTransferStatus
    BabbleUSBTransferStatus
)

func USBTransferStatusFromJS Uses

func USBTransferStatusFromJS(value js.Value) USBTransferStatus

USBTransferStatusFromJS is converting a javascript value into a USBTransferStatus enum value.

func (*USBTransferStatus) JSValue Uses

func (this *USBTransferStatus) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (USBTransferStatus) Value Uses

func (this USBTransferStatus) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package usb imports 4 packages (graph) and is imported by 2 packages. Updated 2019-09-21. Refresh now. Tools for package owners.