middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package middleware provides pipeline middleware implementations (logging, PII).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingMiddleware

func LoggingMiddleware() domain.Middleware

LoggingMiddleware логирует каждую стадию pipeline с длительностью. Использует стандартный log пакет. Для structured logging используйте domain.Logger через кастомную middleware.

func PIIDetectorMiddleware

func PIIDetectorMiddleware(detector domain.PIIDetector) domain.Middleware

PIIDetectorMiddleware создаёт middleware, которая применяет PII redaction к содержимому документов (stage=chunking) и запросов (stage=embed/search/generate).

Types

This section is empty.

Jump to

Keyboard shortcuts

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