http

package
v0.0.0-...-3a1f9b1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package http composes the HTTP/2 listener that fronts the gRPC API, the optional embedded WebUI, and the security.txt endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, cfg *utils.Config, rts utils.RouterMap, webfs fs.FS) error

ListenAndServe builds the middleware stack and starts the HTTP/2 listener described by cfg. It blocks for the lifetime of the listener.

func SecurityTxtInjector

func SecurityTxtInjector(cfg utils.SecurityTxtConfig) http.Handler

SecurityTxtInjector returns an http.Handler that serves cfg as a plain-text RFC 9116 security.txt document.

Types

This section is empty.

Directories

Path Synopsis
Package grpc wires the LookingGlassService into a http.ServeMux and drives the background router health-check loop.
Package grpc wires the LookingGlassService into a http.ServeMux and drives the background router health-check loop.
Package webui hosts the runtime-config injector for the embedded WebUI.
Package webui hosts the runtime-config injector for the embedded WebUI.

Jump to

Keyboard shortcuts

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