tls

package
v1.191.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled for security.

func NewConfig

func NewConfig(cfg *Config) (*tls.Config, error)

NewConfig for tls.

Types

type Config

type Config struct {
	Cert string `yaml:"cert,omitempty" json:"cert,omitempty" toml:"cert,omitempty"`
	Key  string `yaml:"key,omitempty" json:"key,omitempty" toml:"key,omitempty"`
}

Config for security.

func (*Config) GetCert

func (c *Config) GetCert() string

GetCert for security.

func (*Config) GetKey

func (c *Config) GetKey() string

GetKey for security.

func (*Config) HasKeyPair

func (c *Config) HasKeyPair() bool

HasKeyPair for security.

Jump to

Keyboard shortcuts

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