deftls

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package deftls.

This package contain some useful function for configuring tls.Config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(opts ...Option) (*tls.Config, error)

Config return default tls config with some options.

Types

type Option

type Option func(*tls.Config) error

func UseCertFile

func UseCertFile(certfile, keyfile string) Option

UseCertFile option.

func UseCertPem

func UseCertPem(certpem, keypem string) Option

UseCertPem option.

func UseCertSelfSigned

func UseCertSelfSigned() Option

UseCertSelfSigned option.

Jump to

Keyboard shortcuts

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