tls

package
v1.313.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 2 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 tls.

func (*Config) GetCert

func (c *Config) GetCert() (string, error)

GetCert for tls.

func (*Config) GetKey

func (c *Config) GetKey() (string, error)

GetKey for tls.

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