https

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPSRedirect

func HTTPSRedirect(portHTTPS string, fallback http.Handler) http.HandlerFunc

func Serve

func Serve(handler http.Handler, cfg Config) error

func TLSConfig

func TLSConfig(tlsConfig *tls.Config) *tls.Config

Types

type Config

type Config struct {
	Addr      string
	PortHTTP  string
	PortHTTPS string
	HTTPOnly  bool

	StoragePath string
	Domain      string
	Email       string

	Cert string
	Key  string
}

Jump to

Keyboard shortcuts

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