Rod Hynes 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
..
http3 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
internal 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
logging 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
quicvarint 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
Changelog.md 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
LICENSE 32917dfb51 Vendor Psiphon-Labs/quic-go 6 år sedan
README.md 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
buffer_pool.go e5058296d5 Update vendored quic-go 4 år sedan
client.go c54981560c Update vendored quic-go 4 år sedan
closed_session.go 9b6aef8cec Updated vendored dependencies for IETF-draft-29 5 år sedan
codecov.yml e5058296d5 Update vendored quic-go 4 år sedan
config.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_df.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_df_linux.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_df_windows.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_generic.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_helper_darwin.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_helper_freebsd.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_helper_linux.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_id_generator.go c54981560c Update vendored quic-go 4 år sedan
conn_id_manager.go b3a4e9bc4a Update vendored quic-go 4 år sedan
conn_oob.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
conn_windows.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
crypto_stream.go b3a4e9bc4a Update vendored quic-go 4 år sedan
crypto_stream_manager.go 9b6aef8cec Updated vendored dependencies for IETF-draft-29 5 år sedan
datagram_queue.go e5058296d5 Update vendored quic-go 4 år sedan
errors.go b3a4e9bc4a Update vendored quic-go 4 år sedan
frame_sorter.go 9b6aef8cec Updated vendored dependencies for IETF-draft-29 5 år sedan
framer.go e5058296d5 Update vendored quic-go 4 år sedan
interface.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
mockgen.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
mockgen_private.sh 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
mtu_discoverer.go e5058296d5 Update vendored quic-go 4 år sedan
multiplexer.go 9b6aef8cec Updated vendored dependencies for IETF-draft-29 5 år sedan
packet_handler_map.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
packet_packer.go 62dd438c9b Add ServerEntry.LimitQUICVersions 4 år sedan
packet_unpacker.go c54981560c Update vendored quic-go 4 år sedan
receive_stream.go 1af7566400 Update vendored Psiphon-Labs/quic-go 4 år sedan
retransmission_queue.go 9b6aef8cec Updated vendored dependencies for IETF-draft-29 5 år sedan
send_conn.go e5058296d5 Update vendored quic-go 4 år sedan
send_queue.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
send_stream.go b3a4e9bc4a Update vendored quic-go 4 år sedan
server.go 92e768d3c3 Update/resync vendored quic-go and qtls 4 år sedan
session.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
stream.go b3a4e9bc4a Update vendored quic-go 4 år sedan
streams_map.go b3a4e9bc4a Update vendored quic-go 4 år sedan
streams_map_generic_helper.go e5058296d5 Update vendored quic-go 4 år sedan
streams_map_incoming_bidi.go b3a4e9bc4a Update vendored quic-go 4 år sedan
streams_map_incoming_generic.go b3a4e9bc4a Update vendored quic-go 4 år sedan
streams_map_incoming_uni.go b3a4e9bc4a Update vendored quic-go 4 år sedan
streams_map_outgoing_bidi.go b3a4e9bc4a Update vendored quic-go 4 år sedan
streams_map_outgoing_generic.go b3a4e9bc4a Update vendored quic-go 4 år sedan
streams_map_outgoing_uni.go b3a4e9bc4a Update vendored quic-go 4 år sedan
token_store.go 32917dfb51 Vendor Psiphon-Labs/quic-go 6 år sedan
tools.go 86379faa8a Update vendored Psiphon-Labs/quic-go 4 år sedan
window_update_queue.go 9b6aef8cec Updated vendored dependencies for IETF-draft-29 5 år sedan

README.md

A QUIC implementation in pure Go

PkgGoDev Code Coverage

quic-go is an implementation of the QUIC protocol, RFC 9000 protocol in Go. In addition to RFC 9000, it currently implements the IETF QUIC draft-29. Support for draft-29 will eventually be dropped, as it is phased out of the ecosystem.

Guides

We currently support Go 1.16.x, Go 1.17.x, and Go 1.18.x.

Running tests:

go test ./...

QUIC without HTTP/3

Take a look at this echo example.

Usage

As a server

See the example server. Starting a QUIC server is very similar to the standard lib http in go:

http.Handle("/", http.FileServer(http.Dir(wwwDir)))
http3.ListenAndServeQUIC("localhost:4242", "/path/to/cert/chain.pem", "/path/to/privkey.pem", nil)

As a client

See the example client. Use a http3.RoundTripper as a Transport in a http.Client.

http.Client{
  Transport: &http3.RoundTripper{},
}

Projects using quic-go

Project Description Stars
algernon Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support GitHub Repo stars
caddy Fast, multi-platform web server with automatic HTTPS GitHub Repo stars
go-ipfs IPFS implementation in go GitHub Repo stars
nextdns NextDNS CLI client (DoH Proxy) GitHub Repo stars
syncthing Open Source Continuous File Synchronization GitHub Repo stars
traefik The Cloud Native Application Proxy GitHub Repo stars
v2ray-core A platform for building proxies to bypass network restrictions GitHub Repo stars
cloudflared A tunneling daemon that proxies traffic from the Cloudflare network to your origins GitHub Repo stars
OONI Probe The Open Observatory of Network Interference (OONI) aims to empower decentralized efforts in documenting Internet censorship around the world. GitHub Repo stars

Contributing

We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with help wanted. If you have any questions, please feel free to reach out by opening an issue or leaving a comment.