security

package
v1.134.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientTLSConfig added in v1.116.2

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

NewClientTLSConfig for security.

func NewTLSConfig added in v1.116.2

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

NewTLSConfig for security.

Types

type Config

type Config struct {
	Enabled  bool   `yaml:"enabled" json:"enabled" toml:"enabled"`
	CertFile string `yaml:"cert_file" json:"cert_file" toml:"cert_file"`
	KeyFile  string `yaml:"key_file" json:"key_file" toml:"key_file"`
}

Config for 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