api

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server serves the search API backed by SQLite FTS5.

func New

func New(db *sourcedb.DB, addr string, stderr io.Writer, allowedOrigins []string, bearerToken string) *Server

func (*Server) ConfigureZoneBriefLLM added in v1.4.0

func (s *Server) ConfigureZoneBriefLLM(cfg ZoneBriefLLMConfig)

func (*Server) Start

func (s *Server) Start() error

Start begins listening in a goroutine. Returns once the listener is bound.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop gracefully shuts down the server.

type ZoneBriefLLMConfig added in v1.4.0

type ZoneBriefLLMConfig struct {
	RuntimeDir         string
	VettingTimeoutMS   int
	VettingBaseURL     string
	VettingAPIKey      string
	VettingProvider    string
	VettingModel       string
	VettingTemperature float64
}

Jump to

Keyboard shortcuts

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