quic

package module
v0.0.0-...-08ea89a Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMASQUE

func InitMASQUE(auth *auth.Auth, port int, handler ugate.ConHandler,
	conPool ugate.MuxConPool) error

InitMASQUE will eventually support the MASQUE protocol, multiplexing proxy protocols over H3.

However using a dedicated port achieves the same result.

func InitQuicClient

func InitQuicClient(h2 *auth.Auth, destHost string) *http.Client

InitQuicClient will configure h2.QuicClient as mtls using the h2 private key QUIC_GO_LOG_LEVEL

func InitQuicServer

func InitQuicServer(h2 *auth.Auth, port int, handler http.Handler) error

InitQuicServer starts a regular QUIC server, bound to a port, using the H2 certificates.

func InitQuicServerConn

func InitQuicServerConn(auth *auth.Auth, port int, conn net.PacketConn, handler http.Handler) error

InitQuicServerConn starts a QUIC server, using H2 certs, on a connection.

func RoundTripper

func RoundTripper(h2 *auth.Auth) http.RoundTripper

Types

type UGateCon

type UGateCon struct {
	// contains filtered or unexported fields
}

func (*UGateCon) DialContext

func (ugs *UGateCon) DialContext(ctx context.Context, net, addr string) (net.Conn, error)

func (*UGateCon) ReceiveMessage

func (ugs *UGateCon) ReceiveMessage() ([]byte, error)

func (*UGateCon) SendMessage

func (ugs *UGateCon) SendMessage(d []byte) error

Jump to

Keyboard shortcuts

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