dslapp

package
v0.0.0-...-ddc071b Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

func AssetDir

func AssetDir(name string) ([]string, error)

func RestoreAssets

func RestoreAssets(dir, name string) error

Types

type ElectronApp

type ElectronApp struct {
	App       *astilectron.Astilectron
	Endpoints map[string]*RemoteHandler
	Window    *astilectron.Window
	Finished  bool
	Port      int
}

func New

func New() (*ElectronApp, error)

func (*ElectronApp) Init

func (app *ElectronApp) Init() error

func (*ElectronApp) PassContext

func (app *ElectronApp) PassContext() (*astilectron.Astilectron, *astilectron.Window)

func (*ElectronApp) RunEventLoop

func (app *ElectronApp) RunEventLoop()

type RemoteHandler

type RemoteHandler struct {
	F func(string) (string, error)
}

Jump to

Keyboard shortcuts

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