Documentation
¶
Overview ¶
Package forge provides the small application kernel used by GoForge projects. Everything below it is ordinary net/http, database/sql, and explicit Go code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
func NewChecked ¶
NewChecked validates explicit lifecycle limits before applying defaults. Generated applications use it so invalid environment values fail before the server starts. New remains source-compatible for pre-v0.7 callers.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cache defines a deliberately small cache contract and an in-process implementation.
|
Package cache defines a deliberately small cache contract and an in-process implementation. |
|
cmd
|
|
|
forge
command
|
|
|
Package config provides explicit, typed environment configuration without reflection.
|
Package config provides explicit, typed environment configuration without reflection. |
|
Package database adds small, explicit helpers around database/sql.
|
Package database adds small, explicit helpers around database/sql. |
|
migrate
Package migrate applies paired .up.sql and .down.sql files using database/sql.
|
Package migrate applies paired .up.sql and .down.sql files using database/sql. |
|
Package httpx provides error-returning handlers and explicit middleware around the standard library HTTP server and router.
|
Package httpx provides error-returning handlers and explicit middleware around the standard library HTTP server and router. |
|
internal
|
|
|
Package job provides typed, explicit durable job dispatch and worker lifecycle.
|
Package job provides typed, explicit durable job dispatch and worker lifecycle. |
|
postgres
Package postgres provides an inspectable PostgreSQL job store.
|
Package postgres provides an inspectable PostgreSQL job store. |
|
Package orm provides a small, code-generation-oriented data mapper over database/sql.
|
Package orm provides a small, code-generation-oriented data mapper over database/sql. |
|
postgres
Package postgres adapts PostgreSQL driver errors to GoForge ORM errors.
|
Package postgres adapts PostgreSQL driver errors to GoForge ORM errors. |
|
security
|
|
|
csrf
Package csrf provides session-bound synchronizer tokens.
|
Package csrf provides session-bound synchronizer tokens. |
|
password
Package password hashes and verifies user passwords with the standard-library PBKDF2 implementation.
|
Package password hashes and verifies user passwords with the standard-library PBKDF2 implementation. |
|
ratelimit
Package ratelimit provides explicit fixed-window request throttling with a replaceable persistence contract.
|
Package ratelimit provides explicit fixed-window request throttling with a replaceable persistence contract. |
|
ratelimit/postgres
Package postgres provides an inspectable durable PostgreSQL rate-limit store.
|
Package postgres provides an inspectable durable PostgreSQL rate-limit store. |
|
Package session provides signed-ID, server-side HTTP sessions.
|
Package session provides signed-ID, server-side HTTP sessions. |
|
Package validation contains composable, typed validation rules without reflection.
|
Package validation contains composable, typed validation rules without reflection. |
|
Package view renders html/template files to a buffer before committing an HTTP response.
|
Package view renders html/template files to a buffer before committing an HTTP response. |
|
Package web provides the buffered request lifecycle used by browser routes.
|
Package web provides the buffered request lifecycle used by browser routes. |
Click to show internal directories.
Click to hide internal directories.