tlserve

package
v0.6.18 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HOST       = utils.EnvHost("localhost")
	CERT       = utils.EnvCert("localhost.pem")
	KEY        = utils.EnvKey("localhost-key.pem")
	PORT       = utils.EnvPort(":3000")
	HTTP_PORT  = utils.EnvHTTPPort(PORT)
	UDP_PORT   = utils.EnvUDPPort(PORT)
	HTTPS_PORT = utils.LookupEnvPort("HTTPS_PORT")
	ALT_SVC    = utils.EnvAltSvc("")
)
View Source
var NextProtos = []string{"http/1.1"}

disable HTTP/2, because http.Hijacker is not supported, which is required by https://github.com/elazarl/goproxy

Functions

func ListenAndServe

func ListenAndServe(router http.Handler) error

func ListenAndServeTLS

func ListenAndServeTLS(router http.Handler) error

func LocalTLSConfig

func LocalTLSConfig(certFile, keyFile string) *tls.Config

func Run

func Run(args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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