Documentation
¶
Overview ¶
Package tlsutil 提供集中式 TLS 配置, 为 HTTP 客户端、服务端和 Redis 连接提供安全加固的 TLS 设置(TLS 1.2+,仅 AEAD 密码套件)。
Package tlsutil provides centralized TLS configuration for all HTTP clients, servers, and Redis connections in agentflow. 安全加固:TLS 1.2+,仅 AEAD 密码套件。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTLSConfig ¶
DefaultTLSConfig returns a hardened TLS configuration. MinVersion TLS 1.2, AEAD-only cipher suites.
func SecureHTTPClient ¶
SecureHTTPClient returns an http.Client with TLS hardening. Drop-in replacement for &http.Client{Timeout: timeout}.
func SecureTransport ¶
SecureTransport returns an http.Transport with TLS hardening.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.