runtime

package
v2.0.0-...-21d7e90 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DesktopIPC []byte
View Source
var RuntimeDesktopJS []byte

Functions

This section is empty.

Types

type Events

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

Events handles eventing

func NewEvents

func NewEvents(log *logger.Logger) *Events

NewEvents creates a new log subsystem

func (*Events) AddFrontend

func (e *Events) AddFrontend(appFrontend frontend.Frontend)

func (*Events) Emit

func (e *Events) Emit(eventName string, data ...interface{})

func (*Events) Notify

func (e *Events) Notify(sender frontend.Frontend, name string, data ...interface{})

func (*Events) Off

func (e *Events) Off(eventName string)

func (*Events) On

func (e *Events) On(eventName string, callback func(...interface{}))

func (*Events) OnMultiple

func (e *Events) OnMultiple(eventName string, callback func(...interface{}), counter int)

func (*Events) Once

func (e *Events) Once(eventName string, callback func(...interface{}))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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