examples/

directory
v0.75.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: Apache-2.0

Directories

Path Synopsis
Package main is what a Dioad API server looks like using only dioad/net and dioad/lifecycle: an API listener, a management listener for the platform's health checks and metrics scrapes, readiness, and a drain on SIGTERM.
Package main is what a Dioad API server looks like using only dioad/net and dioad/lifecycle: an API listener, a management listener for the platform's health checks and metrics scrapes, readiness, and a drain on SIGTERM.
Package main demonstrates a minimal HTTP server built with dioad/net/http.
Package main demonstrates a minimal HTTP server built with dioad/net/http.
Package main demonstrates IP-based access control: authorizing individual requests against a network ACL and wrapping a net.Listener so that only connections from allowed IPs are accepted.
Package main demonstrates IP-based access control: authorizing individual requests against a network ACL and wrapping a net.Listener so that only connections from allowed IPs are accepted.
Package main demonstrates rate limiting an HTTP server with limits supplied dynamically by a custom RateLimitSource.
Package main demonstrates rate limiting an HTTP server with limits supplied dynamically by a custom RateLimitSource.
Package main demonstrates rate limiting an HTTP server with static, per-principal limits.
Package main demonstrates rate limiting an HTTP server with static, per-principal limits.
Package main demonstrates rate limiting a raw TCP listener by source IP using ratelimit.Listener.
Package main demonstrates rate limiting a raw TCP listener by source IP using ratelimit.Listener.
Package main demonstrates configuring an HTTPS server with a self-signed TLS certificate.
Package main demonstrates configuring an HTTPS server with a self-signed TLS certificate.
Package main is a daemon with no listener: a worker that does a unit of work on an interval, run by dioad/lifecycle.
Package main is a daemon with no listener: a worker that does a unit of work on an interval, run by dioad/lifecycle.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL