Directories
¶
| Path | Synopsis |
|---|---|
|
taskapi
|
|
|
cmd/api
command
Command api runs the taskapi HTTP server.
|
Command api runs the taskapi HTTP server. |
|
internal/auth
Package auth contains the security primitives of the service: password hashing (Argon2id), signed JWTs (stateless bearer auth), opaque random tokens (database-backed sessions, email verification, password reset) and the GitHub OAuth client.
|
Package auth contains the security primitives of the service: password hashing (Argon2id), signed JWTs (stateless bearer auth), opaque random tokens (database-backed sessions, email verification, password reset) and the GitHub OAuth client. |
|
internal/auth/githubtest
Package githubtest is a minimal fake of GitHub's OAuth and REST endpoints for tests.
|
Package githubtest is a minimal fake of GitHub's OAuth and REST endpoints for tests. |
|
internal/config
Package config turns environment variables into a validated Config.
|
Package config turns environment variables into a validated Config. |
|
internal/domain
Package domain holds the application's core types and rules: entities, input validation and the error vocabulary.
|
Package domain holds the application's core types and rules: entities, input validation and the error vocabulary. |
|
internal/httpapi
Package httpapi is the HTTP transport layer: routing, middleware, JSON encoding and the mapping from domain errors to status codes.
|
Package httpapi is the HTTP transport layer: routing, middleware, JSON encoding and the mapping from domain errors to status codes. |
|
internal/mailer
Package mailer sends the transactional emails of the auth flows (verify your email, reset your password).
|
Package mailer sends the transactional emails of the auth flows (verify your email, reset your password). |
|
internal/service
Package service holds the application's business logic: validation, authorization rules ("you may only touch your own projects") and orchestration of repositories.
|
Package service holds the application's business logic: validation, authorization rules ("you may only touch your own projects") and orchestration of repositories. |
|
internal/store
Package store is the persistence layer: it implements the repository interfaces that the service package declares, on top of SQLite (via database/sql) and sqlc-generated queries.
|
Package store is the persistence layer: it implements the repository interfaces that the service package declares, on top of SQLite (via database/sql) and sqlc-generated queries. |
Click to show internal directories.
Click to hide internal directories.