app

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime owns the product services exposed by the desktop sidecar.

func New

func New(ctx context.Context, dataDir string) (*Runtime, error)

New assembles the product runtime served by the authenticated Electron sidecar. dataDir is already resolved by the process host.

func (*Runtime) Close

func (r *Runtime) Close()

Close cancels in-flight work and releases session-owned background processes.

func (*Runtime) Handler

func (r *Runtime) Handler() http.Handler

Handler returns the complete desktop /api HTTP surface.

func (*Runtime) PreviewHandler added in v0.6.15

func (r *Runtime) PreviewHandler() http.Handler

PreviewHandler returns the grant-scoped, read-only workspace preview surface. The desktop host serves it on an origin that has no product authentication.

Jump to

Keyboard shortcuts

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