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

localruntime

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package localruntime owns one private, loopback broker for local onboarding. It never constructs a model provider or imports conversation history.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPath

func CheckPath(path string) error

CheckPath rejects symlink components without changing the supplied path.

func Serve

func Serve(ctx context.Context, o Options) error

Serve is the detached child entry point. Only this process opens SQLite.

func Stop

func Stop(ctx context.Context, state string) error

Types

type Handle

type Handle struct {
	Client       *client.Client
	URL, Version string
}

func Ensure

func Ensure(ctx context.Context, o Options) (Handle, error)

Ensure starts one detached local broker, or connects to its authenticated identity. The child holds a lifetime owner lock; an unresponsive owner is never replaced.

type Options

type Options struct{ StateDir, Executable, Version string }

type Report

type Report struct {
	Status             string `json:"status"`
	Version            string `json:"version,omitempty"`
	Loopback           bool   `json:"loopback"`
	CredentialsPrivate bool   `json:"credentials_private"`
}

func Inspect

func Inspect(ctx context.Context, state string) (Report, error)

Inspect is read-only and never starts services, provisions tokens or calls a model.

Jump to

Keyboard shortcuts

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