tls

package
v0.0.0-...-388d6c9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tls support tls management

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientHelloInfo

func ClientHelloInfo(sni string) *tls.ClientHelloInfo

ClientHelloInfo get tls ClientHelloInfo

func GetTLSConfig

func GetTLSConfig(t ConfigType) *tls.Config

GetTLSConfig get tls Config

func New

func New(hostDomain string, conf *configs.TLS)

New create an tls Manager

Types

type ConfigType

type ConfigType int

ConfigType is a tls config type

const (
	// ConfigTypeServer is a tls config type for server
	ConfigTypeServer ConfigType = iota
	// ConfigTypeClient is a tls config type for client
	ConfigTypeClient ConfigType = iota
)

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is a tls management struct

Jump to

Keyboard shortcuts

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