status-go/vendor/github.com/lucas-clemente/quic-go
Andrea Maria Piana 4d15ae8a85 Upgrade to go 1.18 2022-05-11 12:39:54 +01:00
..
internal chore: bump go-waku 2022-04-06 10:36:06 -04:00
logging chore: bump go-waku 2022-04-06 10:36:06 -04:00
qlog chore: bump go-waku 2022-04-06 10:36:06 -04:00
quicvarint chore: bump go-waku 2022-04-06 10:36:06 -04:00
.gitignore chore: bump go-waku 2022-04-06 10:36:06 -04:00
.golangci.yml chore: bump go-waku 2022-04-06 10:36:06 -04:00
Changelog.md chore: bump go-waku 2022-04-06 10:36:06 -04:00
LICENSE chore: bump go-waku 2022-04-06 10:36:06 -04:00
README.md chore: bump go-waku 2022-04-06 10:36:06 -04:00
buffer_pool.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
client.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
closed_session.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
codecov.yml chore: bump go-waku 2022-04-06 10:36:06 -04:00
config.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_generic.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_helper_darwin.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_helper_freebsd.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_helper_linux.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_id_generator.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_id_manager.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_oob.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
conn_windows.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
crypto_stream.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
crypto_stream_manager.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
datagram_queue.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
errors.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
frame_sorter.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
framer.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
interface.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
mockgen.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
mockgen_private.sh chore: bump go-waku 2022-04-06 10:36:06 -04:00
mtu_discoverer.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
multiplexer.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
packet_handler_map.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
packet_packer.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
packet_unpacker.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
receive_stream.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
retransmission_queue.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
send_conn.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
send_queue.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
send_stream.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
server.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
session.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
stream.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map_generic_helper.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map_incoming_bidi.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map_incoming_generic.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map_incoming_uni.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map_outgoing_bidi.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map_outgoing_generic.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
streams_map_outgoing_uni.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
token_store.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
tools.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
window_update_queue.go chore: bump go-waku 2022-04-06 10:36:06 -04:00

README.md

A QUIC implementation in pure Go

PkgGoDev Travis Build Status CircleCI Build Status Windows Build Status 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 and Go 1.17.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

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.