status-go/vendor/github.com/lucas-clemente/quic-go
Richard Ramos ad326fa290
feat: wakuv2 store (#2780)
Allows runnning a store node depending on node config settings.
2022-08-19 12:34:07 -04:00
..
internal feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
logging feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
qlog chore: bump go-waku 2022-04-06 10:36:06 -04:00
quicvarint feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
.gitignore chore: bump go-waku 2022-04-06 10:36:06 -04:00
.golangci.yml feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -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 feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
buffer_pool.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
client.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
closed_conn.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
codecov.yml chore: bump go-waku 2022-04-06 10:36:06 -04:00
config.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -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
connection.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -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 feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
mockgen.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
mockgen_private.sh chore: bump go-waku 2022-04-06 10:36:06 -04:00
mtu_discoverer.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
multiplexer.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
packet_handler_map.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -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 feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
retransmission_queue.go chore: bump go-waku 2022-04-06 10:36:06 -04:00
send_conn.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
send_queue.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
send_stream.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
server.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -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
sys_conn.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_df.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_df_linux.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_df_windows.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_helper_darwin.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_helper_freebsd.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_helper_linux.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_no_oob.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_oob.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -04:00
sys_conn_windows.go feat: wakuv2 store (#2780) 2022-08-19 12:34:07 -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 Code Coverage

quic-go is an implementation of the QUIC protocol, RFC 9000 protocol in Go, including the Unreliable Datagram Extension, RFC 9221.

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
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.