Help us shape the future of Go! Take the 2026 Go Developer Survey

tlsutil

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

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

func DefaultTLSConfig() *tls.Config

DefaultTLSConfig returns a hardened TLS configuration. MinVersion TLS 1.2, AEAD-only cipher suites.

func SecureHTTPClient

func SecureHTTPClient(timeout time.Duration) *http.Client

SecureHTTPClient returns an http.Client with TLS hardening. Drop-in replacement for &http.Client{Timeout: timeout}.

func SecureTransport

func SecureTransport() *http.Transport

SecureTransport returns an http.Transport with TLS hardening.

Types

This section is empty.

Jump to

Keyboard shortcuts

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