Help us shape the future of Go! Take the 2026 Go Developer Survey

runtime

package
v2.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DesktopIPC []byte
View Source
var RuntimeAssetsBundle = &RuntimeAssets{
	desktopIPC:       DesktopIPC,
	runtimeDesktopJS: RuntimeDesktopJS,
}
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) *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) OffAll added in v2.2.0

func (e *Events) OffAll()

func (*Events) On

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

func (*Events) OnMultiple

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

func (*Events) Once

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

type Logger added in v2.2.0

type Logger interface {
	Trace(format string, v ...interface{})
}

type RuntimeAssets added in v2.4.0

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

func (*RuntimeAssets) DesktopIPC added in v2.4.0

func (r *RuntimeAssets) DesktopIPC() []byte

func (*RuntimeAssets) RuntimeDesktopJS added in v2.4.0

func (r *RuntimeAssets) RuntimeDesktopJS() []byte

func (*RuntimeAssets) WebsocketIPC added in v2.4.0

func (r *RuntimeAssets) WebsocketIPC() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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