Documentation ¶
Overview ¶
Package midi is supporting the MIDI protocol to access synthesizers, keyboard and other controllers, and drum machines connected to their host computer or device.
Index ¶
- type Access
- func (_this *Access) AddEventStateChange(listener func(event *ConnectionEvent, currentTarget *Access)) js.Func
- func (_this *Access) Inputs() *InputMap
- func (_this *Access) OnStateChange() domcore.EventHandlerFunc
- func (_this *Access) Outputs() *OutputMap
- func (_this *Access) SetOnStateChange(listener func(event *ConnectionEvent, currentTarget *Access)) js.Func
- func (_this *Access) SysexEnabled() bool
- type ConnectionEvent
- type ConnectionEventInit
- type Input
- type InputMap
- func (_this *InputMap) Entries() (_result *InputMapEntryIterator)
- func (_this *InputMap) ForEach(callback *InputMapForEach, optionalThisForCallbackArgument interface{})
- func (_this *InputMap) Get(key string) (_result *Input)
- func (_this *InputMap) Has(key string) (_result bool)
- func (_this *InputMap) JSValue() js.Value
- func (_this *InputMap) Keys() (_result *InputMapKeyIterator)
- func (_this *InputMap) Size() int
- func (_this *InputMap) Values() (_result *InputMapValueIterator)
- type InputMapEntryIterator
- type InputMapEntryIteratorValue
- type InputMapForEach
- type InputMapForEachFunc
- type InputMapKeyIterator
- type InputMapKeyIteratorValue
- type InputMapValueIterator
- type InputMapValueIteratorValue
- type MessageEvent
- type MessageEventInit
- type Options
- type Output
- type OutputMap
- func (_this *OutputMap) Entries() (_result *OutputMapEntryIterator)
- func (_this *OutputMap) ForEach(callback *OutputMapForEach, optionalThisForCallbackArgument interface{})
- func (_this *OutputMap) Get(key string) (_result *Output)
- func (_this *OutputMap) Has(key string) (_result bool)
- func (_this *OutputMap) JSValue() js.Value
- func (_this *OutputMap) Keys() (_result *OutputMapKeyIterator)
- func (_this *OutputMap) Size() int
- func (_this *OutputMap) Values() (_result *OutputMapValueIterator)
- type OutputMapEntryIterator
- type OutputMapEntryIteratorValue
- type OutputMapForEach
- type OutputMapForEachFunc
- type OutputMapKeyIterator
- type OutputMapKeyIteratorValue
- type OutputMapValueIterator
- type OutputMapValueIteratorValue
- type Port
- func (_this *Port) AddEventStateChange(listener func(event *ConnectionEvent, currentTarget *Port)) js.Func
- func (_this *Port) Close() (_result *PromisePort)
- func (_this *Port) Connection() PortConnectionState
- func (_this *Port) Id() string
- func (_this *Port) Manufacturer() *string
- func (_this *Port) Name() *string
- func (_this *Port) OnStateChange() domcore.EventHandlerFunc
- func (_this *Port) Open() (_result *PromisePort)
- func (_this *Port) SetOnStateChange(listener func(event *ConnectionEvent, currentTarget *Port)) js.Func
- func (_this *Port) State() PortDeviceState
- func (_this *Port) Type() PortType
- func (_this *Port) Version() *string
- type PortConnectionState
- type PortDeviceState
- type PortType
- type PromiseAccess
- func (_this *PromiseAccess) Catch(onRejected *PromiseAccessOnRejected) (_result *PromiseAccess)
- func (_this *PromiseAccess) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseAccess)
- func (_this *PromiseAccess) JSValue() js.Value
- func (_this *PromiseAccess) Then(onFulfilled *PromiseAccessOnFulfilled, onRejected *PromiseAccessOnRejected) (_result *PromiseAccess)
- type PromiseAccessOnFulfilled
- type PromiseAccessOnFulfilledFunc
- type PromiseAccessOnRejected
- type PromiseAccessOnRejectedFunc
- type PromisePort
- func (_this *PromisePort) Catch(onRejected *PromisePortOnRejected) (_result *PromisePort)
- func (_this *PromisePort) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePort)
- func (_this *PromisePort) JSValue() js.Value
- func (_this *PromisePort) Then(onFulfilled *PromisePortOnFulfilled, onRejected *PromisePortOnRejected) (_result *PromisePort)
- type PromisePortOnFulfilled
- type PromisePortOnFulfilledFunc
- type PromisePortOnRejected
- type PromisePortOnRejectedFunc
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
domcore.EventTarget
}
class: MIDIAccess
func AccessFromJS ¶
AccessFromJS is casting a js.Value into Access.
func AccessFromWrapper ¶
AccessFromJS is casting from something that holds a js.Value into Access.
func (*Access) AddEventStateChange ¶
func (_this *Access) AddEventStateChange(listener func(event *ConnectionEvent, currentTarget *Access)) js.Func
AddStateChange is adding doing AddEventListener for 'StateChange' on target. This method is returning allocated javascript function that need to be released.
func (*Access) OnStateChange ¶
func (_this *Access) OnStateChange() domcore.EventHandlerFunc
OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Access) Outputs ¶
Outputs returning attribute 'outputs' with type OutputMap (idl: MIDIOutputMap).
func (*Access) SetOnStateChange ¶
func (_this *Access) SetOnStateChange(listener func(event *ConnectionEvent, currentTarget *Access)) js.Func
SetOnStateChange is assigning a function to 'onstatechange'. This This method is returning allocated javascript function that need to be released.
func (*Access) SysexEnabled ¶
SysexEnabled returning attribute 'sysexEnabled' with type bool (idl: boolean).
type ConnectionEvent ¶
class: MIDIConnectionEvent
func ConnectionEventFromJS ¶
func ConnectionEventFromJS(value js.Value) *ConnectionEvent
ConnectionEventFromJS is casting a js.Value into ConnectionEvent.
func ConnectionEventFromWrapper ¶
func ConnectionEventFromWrapper(input core.Wrapper) *ConnectionEvent
ConnectionEventFromJS is casting from something that holds a js.Value into ConnectionEvent.
func NewMIDIConnectionEvent ¶
func NewMIDIConnectionEvent(_type string, eventInitDict *ConnectionEventInit) (_result *ConnectionEvent)
func (*ConnectionEvent) Port ¶
func (_this *ConnectionEvent) Port() *Port
Port returning attribute 'port' with type Port (idl: MIDIPort).
type ConnectionEventInit ¶
dictionary: MIDIConnectionEventInit
func ConnectionEventInitFromJS ¶
func ConnectionEventInitFromJS(value js.Value) *ConnectionEventInit
ConnectionEventInitFromJS is allocating a new ConnectionEventInit object and copy all values in the value javascript object.
func (*ConnectionEventInit) JSValue ¶
func (_this *ConnectionEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Input ¶
type Input struct {
Port
}
class: MIDIInput
func InputFromJS ¶
InputFromJS is casting a js.Value into Input.
func InputFromWrapper ¶
InputFromJS is casting from something that holds a js.Value into Input.
func (*Input) AddEventMIDIMessage ¶
func (_this *Input) AddEventMIDIMessage(listener func(event *MessageEvent, currentTarget *Input)) js.Func
AddMIDIMessage is adding doing AddEventListener for 'MIDIMessage' on target. This method is returning allocated javascript function that need to be released.
func (*Input) OnMIDIMessage ¶
func (_this *Input) OnMIDIMessage() domcore.EventHandlerFunc
OnMIDIMessage returning attribute 'onmidimessage' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Input) SetOnMIDIMessage ¶
func (_this *Input) SetOnMIDIMessage(listener func(event *MessageEvent, currentTarget *Input)) js.Func
SetOnMIDIMessage is assigning a function to 'onmidimessage'. This This method is returning allocated javascript function that need to be released.
type InputMap ¶
class: MIDIInputMap
func InputMapFromJS ¶
InputMapFromJS is casting a js.Value into InputMap.
func InputMapFromWrapper ¶
InputMapFromJS is casting from something that holds a js.Value into InputMap.
func (*InputMap) Entries ¶
func (_this *InputMap) Entries() (_result *InputMapEntryIterator)
func (*InputMap) ForEach ¶
func (_this *InputMap) ForEach(callback *InputMapForEach, optionalThisForCallbackArgument interface{})
func (*InputMap) Keys ¶
func (_this *InputMap) Keys() (_result *InputMapKeyIterator)
func (*InputMap) Values ¶
func (_this *InputMap) Values() (_result *InputMapValueIterator)
type InputMapEntryIterator ¶
type InputMapEntryIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: MIDIInputMapEntryIterator
func InputMapEntryIteratorFromJS ¶
func InputMapEntryIteratorFromJS(value js.Value) *InputMapEntryIterator
InputMapEntryIteratorFromJS is casting a js.Value into InputMapEntryIterator.
func InputMapEntryIteratorFromWrapper ¶
func InputMapEntryIteratorFromWrapper(input core.Wrapper) *InputMapEntryIterator
InputMapEntryIteratorFromJS is casting from something that holds a js.Value into InputMapEntryIterator.
func (*InputMapEntryIterator) JSValue ¶
func (_this *InputMapEntryIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*InputMapEntryIterator) Next ¶
func (_this *InputMapEntryIterator) Next() (_result *InputMapEntryIteratorValue)
type InputMapEntryIteratorValue ¶
dictionary: MIDIInputMapEntryIteratorValue
func InputMapEntryIteratorValueFromJS ¶
func InputMapEntryIteratorValueFromJS(value js.Value) *InputMapEntryIteratorValue
InputMapEntryIteratorValueFromJS is allocating a new InputMapEntryIteratorValue object and copy all values in the value javascript object.
func (*InputMapEntryIteratorValue) JSValue ¶
func (_this *InputMapEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type InputMapForEach ¶
InputMapForEach is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func InputMapForEachToJS ¶
func InputMapForEachToJS(callback InputMapForEachFunc) *InputMapForEach
type InputMapForEachFunc ¶
callback: MIDIInputMapForEach
func InputMapForEachFromJS ¶
func InputMapForEachFromJS(_value js.Value) InputMapForEachFunc
type InputMapKeyIterator ¶
type InputMapKeyIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: MIDIInputMapKeyIterator
func InputMapKeyIteratorFromJS ¶
func InputMapKeyIteratorFromJS(value js.Value) *InputMapKeyIterator
InputMapKeyIteratorFromJS is casting a js.Value into InputMapKeyIterator.
func InputMapKeyIteratorFromWrapper ¶
func InputMapKeyIteratorFromWrapper(input core.Wrapper) *InputMapKeyIterator
InputMapKeyIteratorFromJS is casting from something that holds a js.Value into InputMapKeyIterator.
func (*InputMapKeyIterator) JSValue ¶
func (_this *InputMapKeyIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*InputMapKeyIterator) Next ¶
func (_this *InputMapKeyIterator) Next() (_result *InputMapKeyIteratorValue)
type InputMapKeyIteratorValue ¶
dictionary: MIDIInputMapKeyIteratorValue
func InputMapKeyIteratorValueFromJS ¶
func InputMapKeyIteratorValueFromJS(value js.Value) *InputMapKeyIteratorValue
InputMapKeyIteratorValueFromJS is allocating a new InputMapKeyIteratorValue object and copy all values in the value javascript object.
func (*InputMapKeyIteratorValue) JSValue ¶
func (_this *InputMapKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type InputMapValueIterator ¶
type InputMapValueIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: MIDIInputMapValueIterator
func InputMapValueIteratorFromJS ¶
func InputMapValueIteratorFromJS(value js.Value) *InputMapValueIterator
InputMapValueIteratorFromJS is casting a js.Value into InputMapValueIterator.
func InputMapValueIteratorFromWrapper ¶
func InputMapValueIteratorFromWrapper(input core.Wrapper) *InputMapValueIterator
InputMapValueIteratorFromJS is casting from something that holds a js.Value into InputMapValueIterator.
func (*InputMapValueIterator) JSValue ¶
func (_this *InputMapValueIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*InputMapValueIterator) Next ¶
func (_this *InputMapValueIterator) Next() (_result *InputMapValueIteratorValue)
type InputMapValueIteratorValue ¶
dictionary: MIDIInputMapValueIteratorValue
func InputMapValueIteratorValueFromJS ¶
func InputMapValueIteratorValueFromJS(value js.Value) *InputMapValueIteratorValue
InputMapValueIteratorValueFromJS is allocating a new InputMapValueIteratorValue object and copy all values in the value javascript object.
func (*InputMapValueIteratorValue) JSValue ¶
func (_this *InputMapValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type MessageEvent ¶
class: MIDIMessageEvent
func MessageEventFromJS ¶
func MessageEventFromJS(value js.Value) *MessageEvent
MessageEventFromJS is casting a js.Value into MessageEvent.
func MessageEventFromWrapper ¶
func MessageEventFromWrapper(input core.Wrapper) *MessageEvent
MessageEventFromJS is casting from something that holds a js.Value into MessageEvent.
func NewMIDIMessageEvent ¶
func NewMIDIMessageEvent(_type string, eventInitDict *MessageEventInit) (_result *MessageEvent)
func (*MessageEvent) Data ¶
func (_this *MessageEvent) Data() *javascript.Uint8Array
Data returning attribute 'data' with type javascript.Uint8Array (idl: Uint8Array).
type MessageEventInit ¶
type MessageEventInit struct { Bubbles bool Cancelable bool Composed bool Data *javascript.Uint8Array }
dictionary: MIDIMessageEventInit
func MessageEventInitFromJS ¶
func MessageEventInitFromJS(value js.Value) *MessageEventInit
MessageEventInitFromJS is allocating a new MessageEventInit object and copy all values in the value javascript object.
func (*MessageEventInit) JSValue ¶
func (_this *MessageEventInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Options ¶
dictionary: MIDIOptions
func OptionsFromJS ¶
OptionsFromJS is allocating a new Options object and copy all values in the value javascript object.
type Output ¶
type Output struct {
Port
}
class: MIDIOutput
func OutputFromJS ¶
OutputFromJS is casting a js.Value into Output.
func OutputFromWrapper ¶
OutputFromJS is casting from something that holds a js.Value into Output.
type OutputMap ¶
class: MIDIOutputMap
func OutputMapFromJS ¶
OutputMapFromJS is casting a js.Value into OutputMap.
func OutputMapFromWrapper ¶
OutputMapFromJS is casting from something that holds a js.Value into OutputMap.
func (*OutputMap) Entries ¶
func (_this *OutputMap) Entries() (_result *OutputMapEntryIterator)
func (*OutputMap) ForEach ¶
func (_this *OutputMap) ForEach(callback *OutputMapForEach, optionalThisForCallbackArgument interface{})
func (*OutputMap) Keys ¶
func (_this *OutputMap) Keys() (_result *OutputMapKeyIterator)
func (*OutputMap) Values ¶
func (_this *OutputMap) Values() (_result *OutputMapValueIterator)
type OutputMapEntryIterator ¶
type OutputMapEntryIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: MIDIOutputMapEntryIterator
func OutputMapEntryIteratorFromJS ¶
func OutputMapEntryIteratorFromJS(value js.Value) *OutputMapEntryIterator
OutputMapEntryIteratorFromJS is casting a js.Value into OutputMapEntryIterator.
func OutputMapEntryIteratorFromWrapper ¶
func OutputMapEntryIteratorFromWrapper(input core.Wrapper) *OutputMapEntryIterator
OutputMapEntryIteratorFromJS is casting from something that holds a js.Value into OutputMapEntryIterator.
func (*OutputMapEntryIterator) JSValue ¶
func (_this *OutputMapEntryIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*OutputMapEntryIterator) Next ¶
func (_this *OutputMapEntryIterator) Next() (_result *OutputMapEntryIteratorValue)
type OutputMapEntryIteratorValue ¶
dictionary: MIDIOutputMapEntryIteratorValue
func OutputMapEntryIteratorValueFromJS ¶
func OutputMapEntryIteratorValueFromJS(value js.Value) *OutputMapEntryIteratorValue
OutputMapEntryIteratorValueFromJS is allocating a new OutputMapEntryIteratorValue object and copy all values in the value javascript object.
func (*OutputMapEntryIteratorValue) JSValue ¶
func (_this *OutputMapEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type OutputMapForEach ¶
OutputMapForEach is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func OutputMapForEachToJS ¶
func OutputMapForEachToJS(callback OutputMapForEachFunc) *OutputMapForEach
type OutputMapForEachFunc ¶
callback: MIDIOutputMapForEach
func OutputMapForEachFromJS ¶
func OutputMapForEachFromJS(_value js.Value) OutputMapForEachFunc
type OutputMapKeyIterator ¶
type OutputMapKeyIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: MIDIOutputMapKeyIterator
func OutputMapKeyIteratorFromJS ¶
func OutputMapKeyIteratorFromJS(value js.Value) *OutputMapKeyIterator
OutputMapKeyIteratorFromJS is casting a js.Value into OutputMapKeyIterator.
func OutputMapKeyIteratorFromWrapper ¶
func OutputMapKeyIteratorFromWrapper(input core.Wrapper) *OutputMapKeyIterator
OutputMapKeyIteratorFromJS is casting from something that holds a js.Value into OutputMapKeyIterator.
func (*OutputMapKeyIterator) JSValue ¶
func (_this *OutputMapKeyIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*OutputMapKeyIterator) Next ¶
func (_this *OutputMapKeyIterator) Next() (_result *OutputMapKeyIteratorValue)
type OutputMapKeyIteratorValue ¶
dictionary: MIDIOutputMapKeyIteratorValue
func OutputMapKeyIteratorValueFromJS ¶
func OutputMapKeyIteratorValueFromJS(value js.Value) *OutputMapKeyIteratorValue
OutputMapKeyIteratorValueFromJS is allocating a new OutputMapKeyIteratorValue object and copy all values in the value javascript object.
func (*OutputMapKeyIteratorValue) JSValue ¶
func (_this *OutputMapKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type OutputMapValueIterator ¶
type OutputMapValueIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: MIDIOutputMapValueIterator
func OutputMapValueIteratorFromJS ¶
func OutputMapValueIteratorFromJS(value js.Value) *OutputMapValueIterator
OutputMapValueIteratorFromJS is casting a js.Value into OutputMapValueIterator.
func OutputMapValueIteratorFromWrapper ¶
func OutputMapValueIteratorFromWrapper(input core.Wrapper) *OutputMapValueIterator
OutputMapValueIteratorFromJS is casting from something that holds a js.Value into OutputMapValueIterator.
func (*OutputMapValueIterator) JSValue ¶
func (_this *OutputMapValueIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*OutputMapValueIterator) Next ¶
func (_this *OutputMapValueIterator) Next() (_result *OutputMapValueIteratorValue)
type OutputMapValueIteratorValue ¶
dictionary: MIDIOutputMapValueIteratorValue
func OutputMapValueIteratorValueFromJS ¶
func OutputMapValueIteratorValueFromJS(value js.Value) *OutputMapValueIteratorValue
OutputMapValueIteratorValueFromJS is allocating a new OutputMapValueIteratorValue object and copy all values in the value javascript object.
func (*OutputMapValueIteratorValue) JSValue ¶
func (_this *OutputMapValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Port ¶
type Port struct {
domcore.EventTarget
}
class: MIDIPort
func PortFromWrapper ¶
PortFromJS is casting from something that holds a js.Value into Port.
func (*Port) AddEventStateChange ¶
func (_this *Port) AddEventStateChange(listener func(event *ConnectionEvent, currentTarget *Port)) js.Func
AddStateChange is adding doing AddEventListener for 'StateChange' on target. This method is returning allocated javascript function that need to be released.
func (*Port) Close ¶
func (_this *Port) Close() (_result *PromisePort)
func (*Port) Connection ¶
func (_this *Port) Connection() PortConnectionState
Connection returning attribute 'connection' with type PortConnectionState (idl: MIDIPortConnectionState).
func (*Port) Manufacturer ¶
Manufacturer returning attribute 'manufacturer' with type string (idl: DOMString).
func (*Port) OnStateChange ¶
func (_this *Port) OnStateChange() domcore.EventHandlerFunc
OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Port) Open ¶
func (_this *Port) Open() (_result *PromisePort)
func (*Port) SetOnStateChange ¶
func (_this *Port) SetOnStateChange(listener func(event *ConnectionEvent, currentTarget *Port)) js.Func
SetOnStateChange is assigning a function to 'onstatechange'. This This method is returning allocated javascript function that need to be released.
func (*Port) State ¶
func (_this *Port) State() PortDeviceState
State returning attribute 'state' with type PortDeviceState (idl: MIDIPortDeviceState).
type PortConnectionState ¶
type PortConnectionState int
enum: MIDIPortConnectionState
const ( Open PortConnectionState = iota Closed Pending )
func PortConnectionStateFromJS ¶
func PortConnectionStateFromJS(value js.Value) PortConnectionState
PortConnectionStateFromJS is converting a javascript value into a PortConnectionState enum value.
func (*PortConnectionState) JSValue ¶
func (this *PortConnectionState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PortConnectionState) Value ¶
func (this PortConnectionState) Value() string
Value is converting this into javascript defined string value
type PortDeviceState ¶
type PortDeviceState int
enum: MIDIPortDeviceState
const ( Disconnected PortDeviceState = iota Connected )
func PortDeviceStateFromJS ¶
func PortDeviceStateFromJS(value js.Value) PortDeviceState
PortDeviceStateFromJS is converting a javascript value into a PortDeviceState enum value.
func (*PortDeviceState) JSValue ¶
func (this *PortDeviceState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PortDeviceState) Value ¶
func (this PortDeviceState) Value() string
Value is converting this into javascript defined string value
type PortType ¶
type PortType int
enum: MIDIPortType
func PortTypeFromJS ¶
PortTypeFromJS is converting a javascript value into a PortType enum value.
type PromiseAccess ¶
class: Promise
func PromiseAccessFromJS ¶
func PromiseAccessFromJS(value js.Value) *PromiseAccess
PromiseAccessFromJS is casting a js.Value into PromiseAccess.
func PromiseAccessFromWrapper ¶
func PromiseAccessFromWrapper(input core.Wrapper) *PromiseAccess
PromiseAccessFromJS is casting from something that holds a js.Value into PromiseAccess.
func (*PromiseAccess) Catch ¶
func (_this *PromiseAccess) Catch(onRejected *PromiseAccessOnRejected) (_result *PromiseAccess)
func (*PromiseAccess) Finally ¶
func (_this *PromiseAccess) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseAccess)
func (*PromiseAccess) JSValue ¶
func (_this *PromiseAccess) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromiseAccess) Then ¶
func (_this *PromiseAccess) Then(onFulfilled *PromiseAccessOnFulfilled, onRejected *PromiseAccessOnRejected) (_result *PromiseAccess)
type PromiseAccessOnFulfilled ¶
PromiseAccessOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseAccessOnFulfilledToJS ¶
func PromiseAccessOnFulfilledToJS(callback PromiseAccessOnFulfilledFunc) *PromiseAccessOnFulfilled
type PromiseAccessOnFulfilledFunc ¶
type PromiseAccessOnFulfilledFunc func(value *Access)
callback: PromiseTemplateOnFulfilled
func PromiseAccessOnFulfilledFromJS ¶
func PromiseAccessOnFulfilledFromJS(_value js.Value) PromiseAccessOnFulfilledFunc
type PromiseAccessOnRejected ¶
PromiseAccessOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseAccessOnRejectedToJS ¶
func PromiseAccessOnRejectedToJS(callback PromiseAccessOnRejectedFunc) *PromiseAccessOnRejected
type PromiseAccessOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseAccessOnRejectedFromJS ¶
func PromiseAccessOnRejectedFromJS(_value js.Value) PromiseAccessOnRejectedFunc
type PromisePort ¶
class: Promise
func PromisePortFromJS ¶
func PromisePortFromJS(value js.Value) *PromisePort
PromisePortFromJS is casting a js.Value into PromisePort.
func PromisePortFromWrapper ¶
func PromisePortFromWrapper(input core.Wrapper) *PromisePort
PromisePortFromJS is casting from something that holds a js.Value into PromisePort.
func (*PromisePort) Catch ¶
func (_this *PromisePort) Catch(onRejected *PromisePortOnRejected) (_result *PromisePort)
func (*PromisePort) Finally ¶
func (_this *PromisePort) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePort)
func (*PromisePort) JSValue ¶
func (_this *PromisePort) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*PromisePort) Then ¶
func (_this *PromisePort) Then(onFulfilled *PromisePortOnFulfilled, onRejected *PromisePortOnRejected) (_result *PromisePort)
type PromisePortOnFulfilled ¶
PromisePortOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePortOnFulfilledToJS ¶
func PromisePortOnFulfilledToJS(callback PromisePortOnFulfilledFunc) *PromisePortOnFulfilled
type PromisePortOnFulfilledFunc ¶
type PromisePortOnFulfilledFunc func(value *Port)
callback: PromiseTemplateOnFulfilled
func PromisePortOnFulfilledFromJS ¶
func PromisePortOnFulfilledFromJS(_value js.Value) PromisePortOnFulfilledFunc
type PromisePortOnRejected ¶
PromisePortOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromisePortOnRejectedToJS ¶
func PromisePortOnRejectedToJS(callback PromisePortOnRejectedFunc) *PromisePortOnRejected
type PromisePortOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromisePortOnRejectedFromJS ¶
func PromisePortOnRejectedFromJS(_value js.Value) PromisePortOnRejectedFunc