server

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package server is the HTTP/web frontend. Like the CLI, it is a thin adapter over the shared engine, so any connector (CI, webhook, UI) can drive the same analysis over HTTP.

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 exposes the engine over HTTP.

func New

func New(reg *engine.Registry) *Server

New builds an HTTP handler backed by the given module registry.

func (*Server) MountStore

func (s *Server) MountStore(dir string) error

MountStore opens a persistent scan-result store at dir and registers its query API (inventory, blast-radius, trends) on the server. Called by `dsecrat serve --store DIR`; without it the server is stateless.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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