Directories
¶
| Path | Synopsis |
|---|---|
|
Package apikit is the API framework the anfra hosts share: an operation is declared once, as a Def, and served by every host and transport the same way — its input validated against the schema of its type, its errors rendered from their codes, its OpenAPI derived from both.
|
Package apikit is the API framework the anfra hosts share: an operation is declared once, as a Def, and served by every host and transport the same way — its input validated against the schema of its type, its errors rendered from their codes, its OpenAPI derived from both. |
|
internal/decode
Package decode is how apikit reads an op's input and checks its output, against the schemas huma generates from the Go types.
|
Package decode is how apikit reads an op's input and checks its output, against the schemas huma generates from the Go types. |
|
Package apperr gives errors their meaning: a code a caller can handle, which side is responsible (scope), a default message for quick display, typed details for programmatic handling, and the steps the error passed through.
|
Package apperr gives errors their meaning: a code a caller can handle, which side is responsible (scope), a default message for quick display, typed details for programmatic handling, and the steps the error passed through. |
|
Package appstep defines the steps a request goes through: what a step is, and how it describes itself.
|
Package appstep defines the steps a request goes through: what a step is, and how it describes itself. |
|
Package apptracing runs the steps appstep defines.
|
Package apptracing runs the steps appstep defines. |
|
Package httpkit is what every HTTP server built on the anfra packages shares: the request id, the root span, the request log line, panic recovery, and the one renderer of an error, with the HTTP status of each code served.
|
Package httpkit is what every HTTP server built on the anfra packages shares: the request id, the root span, the request log line, panic recovery, and the one renderer of an error, with the HTTP status of each code served. |
|
Package jsonkit is how anfra reads and writes JSON: encoding/json/v2 with one set of options, used by every package, so a value is encoded the same way whichever door it leaves by.
|
Package jsonkit is how anfra reads and writes JSON: encoding/json/v2 with one set of options, used by every package, so a value is encoded the same way whichever door it leaves by. |
|
Package logkit is what a log record names: its event, defined once, and the trace it was written in.
|
Package logkit is what a log record names: its event, defined once, and the trace it was written in. |
|
Package repoformat is what an anfra repo is, as anything handling one outside the engine needs it: which files make up a repo (Publishable), which of them are Data Apps and what they are called (DataApp, AppLabel), and how a file's content is named (BlobID).
|
Package repoformat is what an anfra repo is, as anything handling one outside the engine needs it: which files make up a repo (Publishable), which of them are Data Apps and what they are called (DataApp, AppLabel), and how a file's content is named (BlobID). |
|
Package requestid identifies one request: the id an error body carries, and that leads to the request's log line and its trace.
|
Package requestid identifies one request: the id an error body carries, and that leads to the request's log line and its trace. |
|
Package routine runs a server's background routines: the work it does beside its requests (docs/designs/background-routines.md).
|
Package routine runs a server's background routines: the work it does beside its requests (docs/designs/background-routines.md). |
|
Package textmerge merges three versions of one file's text: a base, and two sides ("ours" and "theirs") that each changed it.
|
Package textmerge merges three versions of one file's text: a base, and two sides ("ours" and "theirs") that each changed it. |
|
Package treemerge merges three versions of a set of files: a base, and two sides ("ours" and "theirs") that each changed it.
|
Package treemerge merges three versions of a set of files: a base, and two sides ("ours" and "theirs") that each changed it. |
Click to show internal directories.
Click to hide internal directories.