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

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.