server

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package server wires up the chi router and all route handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB, ownerUserID string) http.Handler

New returns an http.Handler with all routes registered.

func NewWithOptions

func NewWithOptions(db *sql.DB, ownerUserID string, opts Options) http.Handler

NewWithOptions is New with optional components.

Types

type Options

type Options struct {
	ContextPolicy  admission.Policy
	EvidencePolicy evidence.Policy
	// Embedding enables semantic search status reporting (nil = disabled).
	Embedding *embedding.Service
	// DownloadsDir serves client binaries at /downloads/ ("" = none).
	DownloadsDir string
	// LatestRelease returns the latest release on GitHub ("" when unknown).
	LatestRelease func() string
}

Options are optional server components.

Directories

Path Synopsis
Package handler — context packs and MCP token management.
Package handler — context packs and MCP token management.

Jump to

Keyboard shortcuts

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