https

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package https provides a simple launcher for a Mux as HTTPS server. The certificate is retrieved from Let's Encrypt https://letsencrypt.org/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogHandler

func LogHandler(handler http.Handler) http.HandlerFunc

func LogHandlerFunc

func LogHandlerFunc(handler http.HandlerFunc) http.HandlerFunc

func MustServeHttp

func MustServeHttp(mux *http.ServeMux)

func MustServeHttpPort

func MustServeHttpPort(addr string, mux *http.ServeMux)

func MustServeHttps

func MustServeHttps(certDir string, mux *http.ServeMux, hostnames ...string)

func MustServeHttpsPort

func MustServeHttpsPort(httpAddr, httpsAddr string, certDir string, mux *http.ServeMux, hostnames ...string)

func WaitForIntOrTerm

func WaitForIntOrTerm()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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