security

package
v1.176.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnabled added in v1.143.2

func IsEnabled(c *Config) bool

IsEnabled 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,omitempty" json:"enabled,omitempty" toml:"enabled,omitempty"`
	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 added in v1.174.0

func (c *Config) GetCert() string

GetCert for security.

func (*Config) GetKey added in v1.174.0

func (c *Config) GetKey() string

GetKey for security.

func (*Config) HasKeyPair added in v1.174.0

func (c *Config) HasKeyPair() bool

HasKeyPair for security.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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