https

package
v0.0.0-...-42776a7 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package https provides helpers for starting an HTTPS server and serving an application's handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServeAutocert

func ListenAndServeAutocert(httpsAddr, cachePath string, hosts []string, appHandlers http.Handler) error

ListenAndServeAutocert automatically gets Let's Encrypt certificates for the provided hosts and launches an HTTPS server to serve the application's handlers.

func ListenAndServeTLS

func ListenAndServeTLS(addr, certFile, keyFile string, handler http.Handler) error

ListenAndServeTLS launches an HTTPS server to serve the application's handlers using the provided TLS certificaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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