https

package
v0.0.0-...-d3d53d6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDefaultTLS

func GenerateDefaultTLS(certPath string, keyPath string) (cert []byte, key []byte)

GenerateDefaultTLS will generate a certificate and a private key, on-the-fly This certificate will not be persistant (until you save it yourself) This is made by design to generate a new certificate at each server start, if you don't provide one yourself

func PrepareHTTP

func PrepareHTTP(bindAddress string, handler http.Handler) *http.Server

func PrepareHTTPS

func PrepareHTTPS(s *http.Server, cert string, key string, skipDev bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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