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

tlsconfig

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package tlsconfig loads the PEM certificate settings shared by native transports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(base *tls.Config, settings Settings) (*tls.Config, error)

Build preserves the caller's TLS policy without modifying its config or pools.

func Parse

func Parse(spec any) (*tls.Config, error)

Parse accepts the optional boolean/object TLS setting used by protocol links.

Types

type Settings

type Settings struct {
	ServerName string
	CACert     string
	Cert       string
	Key        string
}

Jump to

Keyboard shortcuts

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