tls

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLSClientConfig

type TLSClientConfig struct {
	KeyFile            string `mapstructure:"tls_key_file"`
	CertFile           string `mapstructure:"tls_cert_file"`
	CAFile             string `mapstructure:"tls_ca_file"`
	MinVersion         string `mapstructure:"tls_min_version"`
	ServerName         string `mapstructure:"tls_server_name"`
	InsecureSkipVerify bool   `mapstructure:"tls_insecure_skip_verify"`
	Enable             bool   `mapstructure:"tls_enable"`
}

func (*TLSClientConfig) Config

func (t *TLSClientConfig) Config() (*tls.Config, error)

type TLSServerConfig

type TLSServerConfig struct {
	KeyFile        string   `mapstructure:"tls_key_file"`
	CertFile       string   `mapstructure:"tls_cert_file"`
	AllovedCACerts []string `mapstructure:"tls_allowed_cacerts"`
	MinVersion     string   `mapstructure:"tls_min_version"`
	MaxVersion     string   `mapstructure:"tls_max_version"`
	Enable         bool     `mapstructure:"tls_enable"`
}

func (*TLSServerConfig) Config

func (t *TLSServerConfig) Config() (*tls.Config, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳