Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
api
command
Command api is NovaTrail's platform service, one binary with a command for each thing it is run for: serve, migrate, invite and version.
|
Command api is NovaTrail's platform service, one binary with a command for each thing it is run for: serve, migrate, invite and version. |
|
internal
|
|
|
account
Package account is api's AccountService of the contract novatrail.api.v1: the account and its invite code, and, task by task, its PIN, profiles and deletion (R04, R34).
|
Package account is api's AccountService of the contract novatrail.api.v1: the account and its invite code, and, task by task, its PIN, profiles and deletion (R04, R34). |
|
authn
Package authn is api's port to the sign-in service.
|
Package authn is api's port to the sign-in service. |
|
authn/authntest
Package authntest is a fake of authn.Port for the tests of the code that holds it: a token is whatever the test says it is, and the users are the test's own.
|
Package authntest is a fake of authn.Port for the tests of the code that holds it: a token is whatever the test says it is, and the users are the test's own. |
|
authz
Package authz is api's rights: OpenFGA, a library in api's own process, on its store in the database openfga (R04, R31).
|
Package authz is api's rights: OpenFGA, a library in api's own process, on its store in the database openfga (R04, R31). |
|
config
Package config reads the service's configuration from the environment.
|
Package config reads the service's configuration from the environment. |
|
invite
Package invite is the invite codes of the closed slice (R04, R34): how a code is made, how one given back is read, and the SHA-256 that is all the database keeps of it.
|
Package invite is the invite codes of the closed slice (R04, R34): how a code is made, how one given back is read, and the SHA-256 that is all the database keeps of it. |
|
logging
Package logging is the service's log: JSON lines on one stream, in the keys Cloud Logging reads, held to the table of events in events.go.
|
Package logging is the service's log: JSON lines on one stream, in the keys Cloud Logging reads, held to the table of events in events.go. |
|
rpc
Package rpc is api's server of the contract novatrail.api.v1, on Connect v2 (R17, R18, R33): the methods of the contract, its codecs, and the interceptors every request goes through — its line of the log, its time limit and the checks of architecture 3.1, which run before any handler.
|
Package rpc is api's server of the contract novatrail.api.v1, on Connect v2 (R17, R18, R33): the methods of the contract, its codecs, and the interceptors every request goes through — its line of the log, its time limit and the checks of architecture 3.1, which run before any handler. |
|
server
Package server is the HTTP server of the service and its graceful stop.
|
Package server is the HTTP server of the service and its graceful stop. |
|
store
Package store is api's database: its schema, the migrations that make it, the pool requests take their connections from, and the transaction a write under an account runs in (R29).
|
Package store is api's database: its schema, the migrations that make it, the pool requests take their connections from, and the transaction a write under an account runs in (R29). |
|
store/storetest
Package storetest runs the tests of api's database on a real PostgreSQL with no Docker, as the devcontainer and CI have none: embedded-postgres starts one server for a test binary, when its first test asks for a database, migrates a template database once, and gives each test a database of its own made from it, which is a copy and takes milliseconds (R29; amendment of 2026-11-02 to R05).
|
Package storetest runs the tests of api's database on a real PostgreSQL with no Docker, as the devcontainer and CI have none: embedded-postgres starts one server for a test binary, when its first test asks for a database, migrates a template database once, and gives each test a database of its own made from it, which is a copy and takes milliseconds (R29; amendment of 2026-11-02 to R05). |
|
version
Package version holds the build identity of the binary.
|
Package version holds the build identity of the binary. |
Click to show internal directories.
Click to hide internal directories.