event

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func Attached

func Attached(value js.Value) *Event

func New

func New(id string, c chan bool) *Event

func (*Event) Condition

func (event *Event) Condition(condition, expected string)

func (*Event) Match

func (event *Event) Match() bool

func (*Event) Run

func (event *Event) Run()

func (*Event) Running

func (event *Event) Running() bool

func (*Event) Subscribe

func (event *Event) Subscribe(name string, fn func(js.Value, []js.Value) interface{})

func (*Event) Unsubscribe

func (event *Event) Unsubscribe(name string)

func (*Event) Value

func (event *Event) Value() js.Value

Jump to

Keyboard shortcuts

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