security

package
v0.0.0-...-5642128 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTLSConfig

func MakeTLSConfig(cfg TLSConf) (*tls.Config, error)

MakeTLSConfig takes in the custom config and creates a *tls.Config instance

Types

type TLSConf

type TLSConf struct {
	CertFile   string
	KeyFile    string
	CAFile     string
	IsServer   bool
	ServerAddr string
}

TLSConf stores all of the parameters the MakeTLSConfig

Jump to

Keyboard shortcuts

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