webapi: github.com/gowebapi/webapi/media/midi Index | Files

package midi

import "github.com/gowebapi/webapi/media/midi"

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

Package Files

doc.go midi.go

type Access Uses

type Access struct {
    domcore.EventTarget
}

class: MIDIAccess

func AccessFromJS Uses

func AccessFromJS(value js.Wrapper) *Access

AccessFromJS is casting a js.Wrapper into Access.

func (*Access) AddEventStateChange Uses

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) Inputs Uses

func (_this *Access) Inputs() *InputMap

Inputs returning attribute 'inputs' with type InputMap (idl: MIDIInputMap).

func (*Access) OnStateChange Uses

func (_this *Access) OnStateChange() domcore.EventHandlerFunc

OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Access) Outputs Uses

func (_this *Access) Outputs() *OutputMap

Outputs returning attribute 'outputs' with type OutputMap (idl: MIDIOutputMap).

func (*Access) SetOnStateChange Uses

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 Uses

func (_this *Access) SysexEnabled() bool

SysexEnabled returning attribute 'sysexEnabled' with type bool (idl: boolean).

type ConnectionEvent Uses

type ConnectionEvent struct {
    domcore.Event
}

class: MIDIConnectionEvent

func ConnectionEventFromJS Uses

func ConnectionEventFromJS(value js.Wrapper) *ConnectionEvent

ConnectionEventFromJS is casting a js.Wrapper into ConnectionEvent.

func NewMIDIConnectionEvent Uses

func NewMIDIConnectionEvent(_type string, eventInitDict *ConnectionEventInit) (_result *ConnectionEvent)

func (*ConnectionEvent) Port Uses

func (_this *ConnectionEvent) Port() *Port

Port returning attribute 'port' with type Port (idl: MIDIPort).

type ConnectionEventInit Uses

type ConnectionEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Port       *Port
}

dictionary: MIDIConnectionEventInit

func ConnectionEventInitFromJS Uses

func ConnectionEventInitFromJS(value js.Wrapper) *ConnectionEventInit

ConnectionEventInitFromJS is allocating a new ConnectionEventInit object and copy all values from input javascript object

func (*ConnectionEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Input Uses

type Input struct {
    Port
}

class: MIDIInput

func InputFromJS Uses

func InputFromJS(value js.Wrapper) *Input

InputFromJS is casting a js.Wrapper into Input.

func (*Input) AddEventMIDIMessage Uses

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 Uses

func (_this *Input) OnMIDIMessage() domcore.EventHandlerFunc

OnMIDIMessage returning attribute 'onmidimessage' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Input) SetOnMIDIMessage Uses

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 Uses

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

class: MIDIInputMap

func InputMapFromJS Uses

func InputMapFromJS(value js.Wrapper) *InputMap

InputMapFromJS is casting a js.Wrapper into InputMap.

func (*InputMap) Entries Uses

func (_this *InputMap) Entries() (_result *InputMapEntryIterator)

func (*InputMap) ForEach Uses

func (_this *InputMap) ForEach(callback *InputMapForEach, optionalThisForCallbackArgument interface{})

func (*InputMap) Get Uses

func (_this *InputMap) Get(key string) (_result *Input)

func (*InputMap) Has Uses

func (_this *InputMap) Has(key string) (_result bool)

func (*InputMap) JSValue Uses

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

func (*InputMap) Keys Uses

func (_this *InputMap) Keys() (_result *InputMapKeyIterator)

func (*InputMap) Size Uses

func (_this *InputMap) Size() int

Size returning attribute 'size' with type int (idl: long).

func (*InputMap) Values Uses

func (_this *InputMap) Values() (_result *InputMapValueIterator)

type InputMapEntryIterator Uses

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

class: MIDIInputMapEntryIterator

func InputMapEntryIteratorFromJS Uses

func InputMapEntryIteratorFromJS(value js.Wrapper) *InputMapEntryIterator

InputMapEntryIteratorFromJS is casting a js.Wrapper into InputMapEntryIterator.

func (*InputMapEntryIterator) JSValue Uses

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

func (*InputMapEntryIterator) Next Uses

func (_this *InputMapEntryIterator) Next() (_result *InputMapEntryIteratorValue)

type InputMapEntryIteratorValue Uses

type InputMapEntryIteratorValue struct {
    Value []js.Value
    Done  bool
}

dictionary: MIDIInputMapEntryIteratorValue

func InputMapEntryIteratorValueFromJS Uses

func InputMapEntryIteratorValueFromJS(value js.Wrapper) *InputMapEntryIteratorValue

InputMapEntryIteratorValueFromJS is allocating a new InputMapEntryIteratorValue object and copy all values from input javascript object

func (*InputMapEntryIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type InputMapForEach Uses

type InputMapForEach js.Func

InputMapForEach is a javascript function type.

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

func InputMapForEachToJS Uses

func InputMapForEachToJS(callback InputMapForEachFunc) *InputMapForEach

type InputMapForEachFunc Uses

type InputMapForEachFunc func(currentValue *Input, currentKey string, listObj *InputMap)

callback: MIDIInputMapForEach

func InputMapForEachFromJS Uses

func InputMapForEachFromJS(_value js.Value) InputMapForEachFunc

type InputMapKeyIterator Uses

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

class: MIDIInputMapKeyIterator

func InputMapKeyIteratorFromJS Uses

func InputMapKeyIteratorFromJS(value js.Wrapper) *InputMapKeyIterator

InputMapKeyIteratorFromJS is casting a js.Wrapper into InputMapKeyIterator.

func (*InputMapKeyIterator) JSValue Uses

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

func (*InputMapKeyIterator) Next Uses

func (_this *InputMapKeyIterator) Next() (_result *InputMapKeyIteratorValue)

type InputMapKeyIteratorValue Uses

type InputMapKeyIteratorValue struct {
    Value string
    Done  bool
}

dictionary: MIDIInputMapKeyIteratorValue

func InputMapKeyIteratorValueFromJS Uses

func InputMapKeyIteratorValueFromJS(value js.Wrapper) *InputMapKeyIteratorValue

InputMapKeyIteratorValueFromJS is allocating a new InputMapKeyIteratorValue object and copy all values from input javascript object

func (*InputMapKeyIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type InputMapValueIterator Uses

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

class: MIDIInputMapValueIterator

func InputMapValueIteratorFromJS Uses

func InputMapValueIteratorFromJS(value js.Wrapper) *InputMapValueIterator

InputMapValueIteratorFromJS is casting a js.Wrapper into InputMapValueIterator.

func (*InputMapValueIterator) JSValue Uses

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

func (*InputMapValueIterator) Next Uses

func (_this *InputMapValueIterator) Next() (_result *InputMapValueIteratorValue)

type InputMapValueIteratorValue Uses

type InputMapValueIteratorValue struct {
    Value *Input
    Done  bool
}

dictionary: MIDIInputMapValueIteratorValue

func InputMapValueIteratorValueFromJS Uses

func InputMapValueIteratorValueFromJS(value js.Wrapper) *InputMapValueIteratorValue

InputMapValueIteratorValueFromJS is allocating a new InputMapValueIteratorValue object and copy all values from input javascript object

func (*InputMapValueIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MessageEvent Uses

type MessageEvent struct {
    domcore.Event
}

class: MIDIMessageEvent

func MessageEventFromJS Uses

func MessageEventFromJS(value js.Wrapper) *MessageEvent

MessageEventFromJS is casting a js.Wrapper into MessageEvent.

func NewMIDIMessageEvent Uses

func NewMIDIMessageEvent(_type string, eventInitDict *MessageEventInit) (_result *MessageEvent)

func (*MessageEvent) Data Uses

func (_this *MessageEvent) Data() *javascript.Uint8Array

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

type MessageEventInit Uses

type MessageEventInit struct {
    Bubbles    bool
    Cancelable bool
    Composed   bool
    Data       *javascript.Uint8Array
}

dictionary: MIDIMessageEventInit

func MessageEventInitFromJS Uses

func MessageEventInitFromJS(value js.Wrapper) *MessageEventInit

MessageEventInitFromJS is allocating a new MessageEventInit object and copy all values from input javascript object

func (*MessageEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Options Uses

type Options struct {
    Sysex    bool
    Software bool
}

dictionary: MIDIOptions

func OptionsFromJS Uses

func OptionsFromJS(value js.Wrapper) *Options

OptionsFromJS is allocating a new Options object and copy all values from input javascript object

func (*Options) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Output Uses

type Output struct {
    Port
}

class: MIDIOutput

func OutputFromJS Uses

func OutputFromJS(value js.Wrapper) *Output

OutputFromJS is casting a js.Wrapper into Output.

func (*Output) Clear Uses

func (_this *Output) Clear()

func (*Output) Send Uses

func (_this *Output) Send(data []int, timestamp *float64)

type OutputMap Uses

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

class: MIDIOutputMap

func OutputMapFromJS Uses

func OutputMapFromJS(value js.Wrapper) *OutputMap

OutputMapFromJS is casting a js.Wrapper into OutputMap.

func (*OutputMap) Entries Uses

func (_this *OutputMap) Entries() (_result *OutputMapEntryIterator)

func (*OutputMap) ForEach Uses

func (_this *OutputMap) ForEach(callback *OutputMapForEach, optionalThisForCallbackArgument interface{})

func (*OutputMap) Get Uses

func (_this *OutputMap) Get(key string) (_result *Output)

func (*OutputMap) Has Uses

func (_this *OutputMap) Has(key string) (_result bool)

func (*OutputMap) JSValue Uses

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

func (*OutputMap) Keys Uses

func (_this *OutputMap) Keys() (_result *OutputMapKeyIterator)

func (*OutputMap) Size Uses

func (_this *OutputMap) Size() int

Size returning attribute 'size' with type int (idl: long).

func (*OutputMap) Values Uses

func (_this *OutputMap) Values() (_result *OutputMapValueIterator)

type OutputMapEntryIterator Uses

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

class: MIDIOutputMapEntryIterator

func OutputMapEntryIteratorFromJS Uses

func OutputMapEntryIteratorFromJS(value js.Wrapper) *OutputMapEntryIterator

OutputMapEntryIteratorFromJS is casting a js.Wrapper into OutputMapEntryIterator.

func (*OutputMapEntryIterator) JSValue Uses

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

func (*OutputMapEntryIterator) Next Uses

func (_this *OutputMapEntryIterator) Next() (_result *OutputMapEntryIteratorValue)

type OutputMapEntryIteratorValue Uses

type OutputMapEntryIteratorValue struct {
    Value []js.Value
    Done  bool
}

dictionary: MIDIOutputMapEntryIteratorValue

func OutputMapEntryIteratorValueFromJS Uses

func OutputMapEntryIteratorValueFromJS(value js.Wrapper) *OutputMapEntryIteratorValue

OutputMapEntryIteratorValueFromJS is allocating a new OutputMapEntryIteratorValue object and copy all values from input javascript object

func (*OutputMapEntryIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type OutputMapForEach Uses

type OutputMapForEach js.Func

OutputMapForEach is a javascript function type.

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

func OutputMapForEachToJS Uses

func OutputMapForEachToJS(callback OutputMapForEachFunc) *OutputMapForEach

type OutputMapForEachFunc Uses

type OutputMapForEachFunc func(currentValue *Output, currentKey string, listObj *OutputMap)

callback: MIDIOutputMapForEach

func OutputMapForEachFromJS Uses

func OutputMapForEachFromJS(_value js.Value) OutputMapForEachFunc

type OutputMapKeyIterator Uses

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

class: MIDIOutputMapKeyIterator

func OutputMapKeyIteratorFromJS Uses

func OutputMapKeyIteratorFromJS(value js.Wrapper) *OutputMapKeyIterator

OutputMapKeyIteratorFromJS is casting a js.Wrapper into OutputMapKeyIterator.

func (*OutputMapKeyIterator) JSValue Uses

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

func (*OutputMapKeyIterator) Next Uses

func (_this *OutputMapKeyIterator) Next() (_result *OutputMapKeyIteratorValue)

type OutputMapKeyIteratorValue Uses

type OutputMapKeyIteratorValue struct {
    Value string
    Done  bool
}

dictionary: MIDIOutputMapKeyIteratorValue

func OutputMapKeyIteratorValueFromJS Uses

func OutputMapKeyIteratorValueFromJS(value js.Wrapper) *OutputMapKeyIteratorValue

OutputMapKeyIteratorValueFromJS is allocating a new OutputMapKeyIteratorValue object and copy all values from input javascript object

func (*OutputMapKeyIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type OutputMapValueIterator Uses

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

class: MIDIOutputMapValueIterator

func OutputMapValueIteratorFromJS Uses

func OutputMapValueIteratorFromJS(value js.Wrapper) *OutputMapValueIterator

OutputMapValueIteratorFromJS is casting a js.Wrapper into OutputMapValueIterator.

func (*OutputMapValueIterator) JSValue Uses

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

func (*OutputMapValueIterator) Next Uses

func (_this *OutputMapValueIterator) Next() (_result *OutputMapValueIteratorValue)

type OutputMapValueIteratorValue Uses

type OutputMapValueIteratorValue struct {
    Value *Output
    Done  bool
}

dictionary: MIDIOutputMapValueIteratorValue

func OutputMapValueIteratorValueFromJS Uses

func OutputMapValueIteratorValueFromJS(value js.Wrapper) *OutputMapValueIteratorValue

OutputMapValueIteratorValueFromJS is allocating a new OutputMapValueIteratorValue object and copy all values from input javascript object

func (*OutputMapValueIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Port Uses

type Port struct {
    domcore.EventTarget
}

class: MIDIPort

func PortFromJS Uses

func PortFromJS(value js.Wrapper) *Port

PortFromJS is casting a js.Wrapper into Port.

func (*Port) AddEventStateChange Uses

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 Uses

func (_this *Port) Close() (_result *PromisePort)

func (*Port) Connection Uses

func (_this *Port) Connection() PortConnectionState

Connection returning attribute 'connection' with type PortConnectionState (idl: MIDIPortConnectionState).

func (*Port) Id Uses

func (_this *Port) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*Port) Manufacturer Uses

func (_this *Port) Manufacturer() *string

Manufacturer returning attribute 'manufacturer' with type string (idl: DOMString).

func (*Port) Name Uses

func (_this *Port) Name() *string

Name returning attribute 'name' with type string (idl: DOMString).

func (*Port) OnStateChange Uses

func (_this *Port) OnStateChange() domcore.EventHandlerFunc

OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*Port) Open Uses

func (_this *Port) Open() (_result *PromisePort)

func (*Port) SetOnStateChange Uses

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 Uses

func (_this *Port) State() PortDeviceState

State returning attribute 'state' with type PortDeviceState (idl: MIDIPortDeviceState).

func (*Port) Type Uses

func (_this *Port) Type() PortType

Type returning attribute 'type' with type PortType (idl: MIDIPortType).

func (*Port) Version Uses

func (_this *Port) Version() *string

Version returning attribute 'version' with type string (idl: DOMString).

type PortConnectionState Uses

type PortConnectionState int

enum: MIDIPortConnectionState

const (
    Open PortConnectionState = iota
    Closed
    Pending
)

func PortConnectionStateFromJS Uses

func PortConnectionStateFromJS(value js.Value) PortConnectionState

PortConnectionStateFromJS is converting a javascript value into a PortConnectionState enum value.

func (*PortConnectionState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PortConnectionState) Value Uses

func (this PortConnectionState) Value() string

Value is converting this into javascript defined string value

type PortDeviceState Uses

type PortDeviceState int

enum: MIDIPortDeviceState

const (
    Disconnected PortDeviceState = iota
    Connected
)

func PortDeviceStateFromJS Uses

func PortDeviceStateFromJS(value js.Value) PortDeviceState

PortDeviceStateFromJS is converting a javascript value into a PortDeviceState enum value.

func (*PortDeviceState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PortDeviceState) Value Uses

func (this PortDeviceState) Value() string

Value is converting this into javascript defined string value

type PortType Uses

type PortType int

enum: MIDIPortType

const (
    InputPort PortType = iota
    OutputPort
)

func PortTypeFromJS Uses

func PortTypeFromJS(value js.Value) PortType

PortTypeFromJS is converting a javascript value into a PortType enum value.

func (*PortType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PortType) Value Uses

func (this PortType) Value() string

Value is converting this into javascript defined string value

type PromiseAccess Uses

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

class: Promise

func PromiseAccessFromJS Uses

func PromiseAccessFromJS(value js.Wrapper) *PromiseAccess

PromiseAccessFromJS is casting a js.Wrapper into PromiseAccess.

func (*PromiseAccess) Catch Uses

func (_this *PromiseAccess) Catch(onRejected *PromiseAccessOnRejected) (_result *PromiseAccess)

func (*PromiseAccess) Finally Uses

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

func (*PromiseAccess) JSValue Uses

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

func (*PromiseAccess) Then Uses

func (_this *PromiseAccess) Then(onFulfilled *PromiseAccessOnFulfilled, onRejected *PromiseAccessOnRejected) (_result *PromiseAccess)

type PromiseAccessOnFulfilled Uses

type PromiseAccessOnFulfilled js.Func

PromiseAccessOnFulfilled is a javascript function type.

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

func PromiseAccessOnFulfilledToJS Uses

func PromiseAccessOnFulfilledToJS(callback PromiseAccessOnFulfilledFunc) *PromiseAccessOnFulfilled

type PromiseAccessOnFulfilledFunc Uses

type PromiseAccessOnFulfilledFunc func(value *Access)

callback: PromiseTemplateOnFulfilled

func PromiseAccessOnFulfilledFromJS Uses

func PromiseAccessOnFulfilledFromJS(_value js.Value) PromiseAccessOnFulfilledFunc

type PromiseAccessOnRejected Uses

type PromiseAccessOnRejected js.Func

PromiseAccessOnRejected is a javascript function type.

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

func PromiseAccessOnRejectedToJS Uses

func PromiseAccessOnRejectedToJS(callback PromiseAccessOnRejectedFunc) *PromiseAccessOnRejected

type PromiseAccessOnRejectedFunc Uses

type PromiseAccessOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseAccessOnRejectedFromJS Uses

func PromiseAccessOnRejectedFromJS(_value js.Value) PromiseAccessOnRejectedFunc

type PromisePort Uses

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

class: Promise

func PromisePortFromJS Uses

func PromisePortFromJS(value js.Wrapper) *PromisePort

PromisePortFromJS is casting a js.Wrapper into PromisePort.

func (*PromisePort) Catch Uses

func (_this *PromisePort) Catch(onRejected *PromisePortOnRejected) (_result *PromisePort)

func (*PromisePort) Finally Uses

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

func (*PromisePort) JSValue Uses

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

func (*PromisePort) Then Uses

func (_this *PromisePort) Then(onFulfilled *PromisePortOnFulfilled, onRejected *PromisePortOnRejected) (_result *PromisePort)

type PromisePortOnFulfilled Uses

type PromisePortOnFulfilled js.Func

PromisePortOnFulfilled is a javascript function type.

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

func PromisePortOnFulfilledToJS Uses

func PromisePortOnFulfilledToJS(callback PromisePortOnFulfilledFunc) *PromisePortOnFulfilled

type PromisePortOnFulfilledFunc Uses

type PromisePortOnFulfilledFunc func(value *Port)

callback: PromiseTemplateOnFulfilled

func PromisePortOnFulfilledFromJS Uses

func PromisePortOnFulfilledFromJS(_value js.Value) PromisePortOnFulfilledFunc

type PromisePortOnRejected Uses

type PromisePortOnRejected js.Func

PromisePortOnRejected is a javascript function type.

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

func PromisePortOnRejectedToJS Uses

func PromisePortOnRejectedToJS(callback PromisePortOnRejectedFunc) *PromisePortOnRejected

type PromisePortOnRejectedFunc Uses

type PromisePortOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePortOnRejectedFromJS Uses

func PromisePortOnRejectedFromJS(_value js.Value) PromisePortOnRejectedFunc

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 midi imports 3 packages (graph) and is imported by 1 packages. Updated 2019-09-21. Refresh now. Tools for package owners.