tls_config

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTLSDisabled = errors.New("tls disabled")

Functions

This section is empty.

Types

type TLSConfig

type TLSConfig struct {
	Enabled bool `json:"enabled" yaml:"enabled"`

	Certificates certificate.CertificateTLSSource
	Source       TLSSource
}

func NewTLSConfig

func NewTLSConfig(source TLSSource) *TLSConfig

func (*TLSConfig) Get

func (c *TLSConfig) Get() (*tls.Config, error)

func (*TLSConfig) ValidateConfigFields

func (c *TLSConfig) ValidateConfigFields() error

type TLSSource

type TLSSource interface {
	Get() (*tls.Config, error)
	RouteHandlers() router.RouteHandlers

	config.WithValidation
}

Directories

Path Synopsis
source

Jump to

Keyboard shortcuts

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