Directories
¶
| Path | Synopsis |
|---|---|
|
authmw demonstrates a production-ish middleware stack:
|
authmw demonstrates a production-ish middleware stack: |
|
graceful demonstrates signal-driven single-app graceful shutdown.
|
graceful demonstrates signal-driven single-app graceful shutdown. |
|
hello demonstrates the smallest gogo~ server: one sync route and one async route, plus a static reply served entirely from C++.
|
hello demonstrates the smallest gogo~ server: one sync route and one async route, plus a static reply served entirely from C++. |
|
httpadapter demonstrates using stdlib net/http handlers inside gogo.
|
httpadapter demonstrates using stdlib net/http handlers inside gogo. |
|
restapi demonstrates a tiny in-memory REST API with GET/POST/JSON + route params + query strings.
|
restapi demonstrates a tiny in-memory REST API with GET/POST/JSON + route params + query strings. |
|
sse demonstrates the simplest SSE pattern in gogo: register an async route, install Server-Sent Events via res.SSE, and emit events on a timer with a keepalive ping every few seconds.
|
sse demonstrates the simplest SSE pattern in gogo: register an async route, install Server-Sent Events via res.SSE, and emit events on a timer with a keepalive ping every few seconds. |
|
upload demonstrates POST body collection with a max-body limit.
|
upload demonstrates POST body collection with a max-body limit. |
|
websocket demonstrates a browser-friendly WebSocket route:
|
websocket demonstrates a browser-friendly WebSocket route: |
Click to show internal directories.
Click to hide internal directories.