server

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package server wires all services together and starts the HTTP servers. Dashboard and /v1 API run on separate ports with independent muxes.

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 is the fully-wired llm-router application with two listeners.

func New

func New(cfg *config.Config, logger *slog.Logger) (*Server, error)

New builds the full Server from config.

func (*Server) Close

func (s *Server) Close() error

Close releases the database handle. Call after Run returns.

func (*Server) Run

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

Run starts the maintenance loop and blocks on both HTTP servers.

Jump to

Keyboard shortcuts

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