This repo is a experiment after:
- Reading Dave Cheney's article: "Don’t force allocations on the callers of your API".
- Reading Mat Ryer's article: How I write Go HTTP services after seven years
- Using gqlgen
The repo declares a custom handler type that is used internally in Go, supports middleware, and is internal to the server process but is only exposed through GraphQL.
HTTP Client -> Middleware -> GraphQL server -> Resolver -> Internal Middleware -> Method