Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
poseidon-server
command
Command poseidon-server is a production-grade, 12-factor HTTP/2 server binary built on the Poseidon server, conn, and middleware packages.
|
Command poseidon-server is a production-grade, 12-factor HTTP/2 server binary built on the Poseidon server, conn, and middleware packages. |
|
Package conn implements the server-side HTTP/2 connection state machine.
|
Package conn implements the server-side HTTP/2 connection state machine. |
|
examples
|
|
|
grpc-server
command
Package main demonstrates Poseidon gRPC server with all 4 RPC patterns.
|
Package main demonstrates Poseidon gRPC server with all 4 RPC patterns. |
|
http-server
command
Package main demonstrates Poseidon HTTP/2 server with net/http.ServeMux (Go 1.22+ pattern routing) as a drop-in replacement.
|
Package main demonstrates Poseidon HTTP/2 server with net/http.ServeMux (Go 1.22+ pattern routing) as a drop-in replacement. |
|
observability-server
command
Package main demonstrates the Poseidon HTTP/2 server wired for production observability: a Prometheus /metrics endpoint, structured JSON access logs (log/slog), distributed-tracing hooks, opt-in pprof profiling endpoints, and Kubernetes-style liveness (/healthz) and readiness (/readyz) probes.
|
Package main demonstrates the Poseidon HTTP/2 server wired for production observability: a Prometheus /metrics endpoint, structured JSON access logs (log/slog), distributed-tracing hooks, opt-in pprof profiling endpoints, and Kubernetes-style liveness (/healthz) and readiness (/readyz) probes. |
|
push-server
command
Package main demonstrates HTTP/2 Server Push (RFC 7540 §8.2) with priority hints (RFC 7540 §5.3) on the Poseidon server.
|
Package main demonstrates HTTP/2 Server Push (RFC 7540 §8.2) with priority hints (RFC 7540 §5.3) on the Poseidon server. |
|
secure-server
command
Package main demonstrates a hardened Poseidon HTTP/2 server that stacks the production security primitives the library ships:
|
Package main demonstrates a hardened Poseidon HTTP/2 server that stacks the production security primitives the library ships: |
|
tls-server
command
Package main demonstrates Poseidon HTTP/2 server with TLS + ALPN.
|
Package main demonstrates Poseidon HTTP/2 server with TLS + ALPN. |
|
Package grpcserver implements gRPC-over-HTTP/2 using the server package.
|
Package grpcserver implements gRPC-over-HTTP/2 using the server package. |
|
Package http3server serves HTTP/3 (RFC 9114) to an ordinary http.Handler.
|
Package http3server serves HTTP/3 (RFC 9114) to an ordinary http.Handler. |
|
internal
|
|
|
httpfields
Package httpfields holds the inbound field rules that HTTP/2 and HTTP/3 share.
|
Package httpfields holds the inbound field rules that HTTP/2 and HTTP/3 share. |
|
loadtest
|
|
|
loadgen
command
Command loadgen is a self-contained load/soak + profiling harness for poseidon-http-server.
|
Command loadgen is a self-contained load/soak + profiling harness for poseidon-http-server. |
|
Package middleware provides standard production-ready middlewares for the Poseidon HTTP/2 server.
|
Package middleware provides standard production-ready middlewares for the Poseidon HTTP/2 server. |
|
Package server provides a high-level HTTP/2 server built on the conn package.
|
Package server provides a high-level HTTP/2 server built on the conn package. |
|
pprof
Package pprof serves the Go runtime profiling endpoints as a Poseidon server.Handler.
|
Package pprof serves the Go runtime profiling endpoints as a Poseidon server.Handler. |
Click to show internal directories.
Click to hide internal directories.