Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
spivot-server
command
Spivot Server is the backend API service for the Spivot iOS app.
|
Spivot Server is the backend API service for the Spivot iOS app. |
|
internal
|
|
|
app
Package app wires the process lifecycle around the HTTP API server.
|
Package app wires the process lifecycle around the HTTP API server. |
|
platform/auth/integrity
Package integrity verifies OpenCaravan opencaravan.Integrity envelopes against the public keys of enrolled client app certificates.
|
Package integrity verifies OpenCaravan opencaravan.Integrity envelopes against the public keys of enrolled client app certificates. |
|
platform/auth/macaroon
Package macaroon issues and verifies the session-bound macaroons spivot-server hands out in exchange for a successful POST /v1/sessions request.
|
Package macaroon issues and verifies the session-bound macaroons spivot-server hands out in exchange for a successful POST /v1/sessions request. |
|
platform/buildinfo
Package buildinfo holds version and build metadata stamped at compile time via ldflags.
|
Package buildinfo holds version and build metadata stamped at compile time via ldflags. |
|
platform/identity
Package identity manages Spivot Server's cryptographic identities: the server-local certificate authority that signs short-lived client app certificates, and the private-key storage backing it.
|
Package identity manages Spivot Server's cryptographic identities: the server-local certificate authority that signs short-lived client app certificates, and the private-key storage backing it. |
|
platform/logging
Package logging contains shared logging helpers.
|
Package logging contains shared logging helpers. |
|
platform/proxy
Package proxy contains helpers for interpreting reverse-proxy request metadata without making the HTTP server depend on a specific edge proxy.
|
Package proxy contains helpers for interpreting reverse-proxy request metadata without making the HTTP server depend on a specific edge proxy. |
|
platform/storage
Package storage owns database schema metadata for Spivot Server.
|
Package storage owns database schema metadata for Spivot Server. |
|
server/api
Package api implements the Spivot HTTP API.
|
Package api implements the Spivot HTTP API. |
|
server/api/spec
Package spec carries the generated OpenAPI contract artifacts for the native HTTP API.
|
Package spec carries the generated OpenAPI contract artifacts for the native HTTP API. |
|
server/docs
Package docs serves the embedded API reference explorer.
|
Package docs serves the embedded API reference explorer. |
|
server/middleware
Package middleware wires the HTTP authentication boundary for spivot-server: it lifts whatever client identity the lower layers presented (direct mTLS or trusted-proxy-forwarded cert headers, extracted by github.com/wheelsdown/spivot-server/internal/platform/proxy.RequestInfoFrom), resolves it to a server-side Identity via the issued-certificates audit table, attaches that Identity to the request context, and provides a per-handler guard that 401s when an Identity is required but absent.
|
Package middleware wires the HTTP authentication boundary for spivot-server: it lifts whatever client identity the lower layers presented (direct mTLS or trusted-proxy-forwarded cert headers, extracted by github.com/wheelsdown/spivot-server/internal/platform/proxy.RequestInfoFrom), resolves it to a server-side Identity via the issued-certificates audit table, attaches that Identity to the request context, and provides a per-handler guard that 401s when an Identity is required but absent. |
|
tools/openapigen
command
Command openapigen projects the native API's OpenAPI contract from the Go source.
|
Command openapigen projects the native API's OpenAPI contract from the Go source. |
Click to show internal directories.
Click to hide internal directories.