tls

package
v0.0.0-...-5d26837 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: BSD-3-Clause Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateLoader

type CertificateLoader interface {
	GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)
}

type ErrCertificateNotFound

type ErrCertificateNotFound struct {
	ServerName string
}

func (ErrCertificateNotFound) Error

func (e ErrCertificateNotFound) Error() string

type FSCertificateLoader

type FSCertificateLoader struct {
	// contains filtered or unexported fields
}

func NewFSCertificateLoader

func NewFSCertificateLoader(path string) *FSCertificateLoader

func (*FSCertificateLoader) GetCertificate

func (f *FSCertificateLoader) GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)

type RedisCertificateLoader

type RedisCertificateLoader struct {
	*redis.Client
	// contains filtered or unexported fields
}

func NewRedisCertificateLoader

func NewRedisCertificateLoader(client *redis.Client) *RedisCertificateLoader

func (*RedisCertificateLoader) GetCertificate

func (r *RedisCertificateLoader) GetCertificate(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error)

Jump to

Keyboard shortcuts

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