Examples
The Fountain repository ships runnable examples per component. They are vendored into this site under docs/.examples/ and embedded in the component guides. The table below maps each example set to the guide that explains it.
| Example set | What it shows | Guide |
|---|---|---|
grpc | gRPC server, client, interceptors, metadata | Servers |
http | HTTP server | Servers |
http/encryption | HTTP server with payload encryption | Servers |
http/client | HTTP client calling an encrypted endpoint | Clients |
tcp | Raw and wrapped TCP servers | Servers |
udp | UDP server | Servers |
quic | QUIC server, streams, datagrams | Servers |
task | Invokers, jobs, and crons | Workers & Tasks |
trace | Distributed tracing over HTTP and gRPC | Observability |
sentinel | Flow control and circuit breaking | Resilience |