server

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildServer added in v0.9.0

func BuildServer(cmd *cli.Command) (*router.Router, *types.Config, error)

BuildServer constructs the router/handler chain from the command flags and config file. It does NOT start a listener — callers (RunServer, the desktop entry point) are responsible for serving HTTP and for invoking r.StartBackgroundTasks() / r.Shutdown().

func BuildServerForDesktop added in v0.9.0

func BuildServerForDesktop(cmd *cli.Command) (*router.Router, *types.Config, error)

BuildServerForDesktop is like BuildServer but applies safe desktop defaults when no config file is loaded: host → 127.0.0.1 (localhost only, no network exposure), storage → ~/.llmrouter/data (persistent across restarts). When a config file IS present, its values take precedence (no overrides).

func RunServer

func RunServer(ctx context.Context, cmd *cli.Command) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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