listen

package
v0.0.0-...-2ab56da Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHandler http.Handler = nil

Functions

func GenerateTestCertificate

func GenerateTestCertificate(host string, orgname string) ([]byte, []byte, error)

GenerateTestCertificate generates a test certificate and private key based on the given host.

func Listen

func Listen(network, addr string) (ln net.Listener, err error)

Listen returns a TCP listener with the SO_REUSEADDR and SO_REUSEPORT options set.

func NewListen

func NewListen(handerfunc http.HandlerFunc) *listen

func Serve

func Serve(network string, addr string, handler http.Handler, tlsconf ...*tls.Config)

func Shutdown

func Shutdown(keys ...interface{})

func ShutdownAll

func ShutdownAll()

Types

This section is empty.

Jump to

Keyboard shortcuts

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