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

tls

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTLS

func GenerateTLS(tlsDir string, tlsFileMode os.FileMode, logger *zap.Logger) (*tls.Config, error)

func LoadTLSConfig

func LoadTLSConfig(tlsDir string, isClient bool) (*tls.Config, error)

Types

type TLSFiles

type TLSFiles[T any] struct {
	Cert    T
	PrivKey T
}

Jump to

Keyboard shortcuts

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