app

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg config.Config) error

Run starts the standalone coding API at cfg.Addr.

Types

type Runtime

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

Runtime owns the product services shared by the server and desktop shells.

func New

func New(ctx context.Context, cfg config.Config) (*Runtime, error)

New assembles one product runtime without choosing how its HTTP handler is hosted. The CLI and authenticated Electron sidecar provide separate hosts.

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 /api HTTP surface.

Jump to

Keyboard shortcuts

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