Documentation
¶
Index ¶
- Variables
- func DialQUIC(ctx context.Context, addr string, tlsConf *tls.Config) (*quic.Conn, error)
- func DialTCP(ctx context.Context, addr string) (*net.TCPConn, error)
- func DialTLS(ctx context.Context, addr string, tlsConfig *tls.Config) (*tls.Conn, error)
- func HTTPClient(tr *http.Transport) *http.Client
- func JoinHostPort(host string, port uint16) string
- func ListenHTTPAndServe(ctx context.Context, addr string, httpHandler http.Handler) error
- func ListenHTTPAndServeWithListenerCallback(ctx context.Context, addr string, httpHandler http.Handler, ...) error
- func ListenQUICAndServe(ctx context.Context, addr string, tlsConf *tls.Config, ...) error
- func ListenTCPAndServe(ctx context.Context, addr string, connHandler func(tcpConn *net.TCPConn)) error
- func ListenTCPAndServeWithListenerCallback(ctx context.Context, addr string, connHandler func(tcpConn *net.TCPConn), ...) error
- func ListenTLSAndAccept(ctx context.Context, addr string, tlsConfig *tls.Config, ...) error
- func StopAllServerListeners()
- func TLSClientConfig(host string, tlsCustomCertFile string, tlsKeyLog bool, http3 bool) (*tls.Config, error)
- func TLSServerConfig(host string, tlsCertKeyPair *conf.TLSCertKeyPair, http3 bool) (*tls.Config, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeepAliveIdleTimeout = 120 * time.Second KeepAliveInterval = 30 * time.Second KeepAliveConfig = net.KeepAliveConfig{Enable: true, Idle: KeepAliveIdleTimeout, Interval: KeepAliveInterval} )
Functions ¶
func JoinHostPort ¶ added in v0.3.0
func ListenHTTPAndServe ¶
func ListenHTTPAndServeWithListenerCallback ¶ added in v0.2.1
func ListenQUICAndServe ¶ added in v0.3.0
func ListenTCPAndServe ¶ added in v0.2.1
func ListenTCPAndServeWithListenerCallback ¶ added in v0.2.1
func ListenTLSAndAccept ¶
func StopAllServerListeners ¶ added in v0.2.1
func StopAllServerListeners()
func TLSClientConfig ¶ added in v0.2.1
func TLSServerConfig ¶ added in v0.2.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.