ssl

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLoader

func DefaultLoader(options configures.Config) (serverTLS *tls.Config, clientTLS *tls.Config, err error)

func RegisterLoader

func RegisterLoader(kind string, loader Loader)

func SSCLoader

func SSCLoader(options configures.Config) (serverTLS *tls.Config, clientTLS *tls.Config, err error)

Types

type DefaultLoaderOptions

type DefaultLoaderOptions struct {
	Cert string `json:"cert"`
	Key  string `json:"key"`
}

type Loader

type Loader func(options configures.Config) (serverTLS *tls.Config, clientTLS *tls.Config, err error)

func GetLoader

func GetLoader(kind string) (loader Loader, has bool)

type SSCLoaderOptions

type SSCLoaderOptions struct {
	CA    string `json:"ca"`
	CAKEY string `json:"caKey"`
}

Jump to

Keyboard shortcuts

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