web

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package web serves a small self-contained UI that reuses the scanner engine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner(addr string) string

Banner is the human-readable startup line printed by the CLI.

Types

type Server

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

Server wraps an *http.Server plus the scanner options used per request.

func NewServer

func NewServer(opts scanner.Options) *Server

NewServer builds a web server that scans with the given options.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the HTTP router (exposed for testing / custom hosting).

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) error

ListenAndServe starts the server on addr (e.g. ":8080").

Jump to

Keyboard shortcuts

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