config

package
v0.2.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTLSClientCertsDirNotSpecified = errors.New("client certs dir not specified, while mtls enabled")
	ErrTLSServerCertPathNotSpecified = errors.New("server cert path not specified")
	ErrTLSServerKeyPathNotSpecified  = errors.New("server cert path not specified")
)

Functions

This section is empty.

Types

type TLSConfig

type TLSConfig struct {
	Enabled                    bool   `yaml:"enabled"`
	ClientCertsDir             string `yaml:"client_certs_dir"`
	ServerCertPEMPath          string `yaml:"server_cert_pem_path"`
	ServerKeyPEMPath           string `yaml:"server_key_pem_path"`
	RequireAndVerifyClientCert bool   `yaml:"require_and_verify_client_cert"`

	Config *tls.Config `yaml:"-"`
}

func (*TLSConfig) Parse

func (c *TLSConfig) Parse() error

Jump to

Keyboard shortcuts

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