security

package
v1.114.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientTLSConfig added in v1.113.0

func ClientTLSConfig(sec Config) (*tls.Config, error)

ClientTLSConfig for security.

func TLSConfig added in v1.113.0

func TLSConfig(sec Config) (*tls.Config, error)

TLSConfig for security.

Types

type Config

type Config struct {
	CertFile       string `yaml:"cert_file" json:"cert_file" toml:"cert_file"`
	KeyFile        string `yaml:"key_file" json:"key_file" toml:"key_file"`
	ClientCertFile string `yaml:"client_cert_file" json:"client_cert_file" toml:"client_cert_file"`
	ClientKeyFile  string `yaml:"client_key_file" json:"client_key_file" toml:"client_key_file"`
}

Config for security.

func (*Config) IsClientEnabled added in v1.113.0

func (c *Config) IsClientEnabled() bool

IsEnabled security.

func (*Config) IsEnabled added in v1.113.0

func (c *Config) IsEnabled() bool

IsEnabled security.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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