tls

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorParamsEmpty liberr.CodeError = iota + libcfg.MinErrorComponentTls
	ErrorParamsInvalid
	ErrorConfigInvalid
	ErrorComponentNotInitialized
	ErrorStartTLS
	ErrorReloadTLS
)
View Source
const (
	ComponentType = "tls"
)

Variables

This section is empty.

Functions

func IsCodeError

func IsCodeError() bool

func Register

func Register(cfg libcfg.Config, key string, cpt ComponentTlS)

func RegisterNew

func RegisterNew(cfg libcfg.Config, key string)

func SetDefaultConfig

func SetDefaultConfig(cfg []byte)

Types

type ComponentTlS

type ComponentTlS interface {
	libcfg.Component
	GetTLS() libtls.TLSConfig
	SetTLS(tls libtls.TLSConfig)
}

func Load

func Load(getCpt libcfg.FuncComponentGet, key string) ComponentTlS

func New

func New() ComponentTlS

type DefaultModel

type DefaultModel struct {
	libtls.Config
}

Jump to

Keyboard shortcuts

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