Directories
¶
| Path | Synopsis |
|---|---|
|
Package admintest serves admin panels in tests, as the route an app gives them, and reads their screens and actions.
|
Package admintest serves admin panels in tests, as the route an app gives them, and reads their screens and actions. |
|
Package batch sends items to an exporter in batches, from a goroutine, with a bounded queue and retries: what logging's sinks and tracing's exporters share.
|
Package batch sends items to an exporter in batches, from a goroutine, with a bounded queue and retries: what logging's sinks and tracing's exporters share. |
|
Package codegen generates the code that connects a Tern app's routes to the runtime: tern.gen.go for the Go server, the client route manifest for Vite, and TypeScript types for every route.
|
Package codegen generates the code that connects a Tern app's routes to the runtime: tern.gen.go for the Go server, the client route manifest for Vite, and TypeScript types for every route. |
|
Package dbtest opens the databases that Tern's database packages are tested against: a fresh SQLite file always, and PostgreSQL when TERN_TEST_POSTGRES holds a connection string (CI sets it).
|
Package dbtest opens the databases that Tern's database packages are tested against: a fresh SQLite file always, and PostgreSQL when TERN_TEST_POSTGRES holds a connection string (CI sets it). |
|
Package formrules parses validation tags and checks submitted form values against them.
|
Package formrules parses validation tags and checks submitted form values against them. |
|
Package htmltext turns HTML into readable plain text, for the text part of emails.
|
Package htmltext turns HTML into readable plain text, for the text part of emails. |
|
Package i18n formats translated messages.
|
Package i18n formats translated messages. |
|
Package jsondiff computes small patches between two JSON values, so live components send what changed in a list instead of the whole list.
|
Package jsondiff computes small patches between two JSON values, so live components send what changed in a list instead of the whole list. |
|
Package jsonenc encodes values as encoding/json does, byte for byte, except that a nil slice is written as [] instead of null: Tern sends [] for pages, typed endpoints and live components, so their TypeScript types are T[] rather than T[] | null.
|
Package jsonenc encodes values as encoding/json does, byte for byte, except that a nil slice is written as [] instead of null: Tern sends [] for pages, typed endpoints and live components, so their TypeScript types are T[] rather than T[] | null. |
|
Package jsvalue makes native rendering's JavaScript values straight from Go values: what JSON.parse would make of the JSON internal/jsonenc writes for them, value for value and in the same key order, without writing or parsing the JSON.
|
Package jsvalue makes native rendering's JavaScript values straight from Go values: what JSON.parse would make of the JSON internal/jsonenc writes for them, value for value and in the same key order, without writing or parsing the JSON. |
|
Package markdown renders Markdown with YAML front matter.
|
Package markdown renders Markdown with YAML front matter. |
|
Package mcp is a small Model Context Protocol server over stdio: tools and resources, as JSON-RPC 2.0 messages, one per line.
|
Package mcp is a small Model Context Protocol server over stdio: tools and resources, as JSON-RPC 2.0 messages, one per line. |
|
Package native compiles the modules of an app's server build to Go, so pages render without the JavaScript engine (ADR 0011).
|
Package native compiles the modules of an app's server build to Go, so pages render without the JavaScript engine (ADR 0011). |
|
Package nilslices makes nil slices empty before encoding/json sees them.
|
Package nilslices makes nil slices empty before encoding/json sees them. |
|
Package ratelimit holds the token buckets behind kit's default rate limit and plugins/ratelimit: per key, up to burst requests at once, refilled at a steady rate.
|
Package ratelimit holds the token buckets behind kit's default rate limit and plugins/ratelimit: per key, up to burst requests at once, refilled at a steady rate. |
|
Package routes discovers Tern routes on the filesystem and matches URLs against them.
|
Package routes discovers Tern routes on the filesystem and matches URLs against them. |
|
Package seal encrypts and authenticates small values, such as cookie contents, with AES-256-GCM.
|
Package seal encrypts and authenticates small values, such as cookie contents, with AES-256-GCM. |
|
Package sqlgen turns an app's queries/*.sql files into a Go package of typed functions (ADR 0028).
|
Package sqlgen turns an app's queries/*.sql files into a Go package of typed functions (ADR 0028). |
|
sqlgentest/migrations
Package migrations is the schema the sqlgen tests type queries against.
|
Package migrations is the schema the sqlgen tests type queries against. |
|
sqlgentest/queries
Package queries runs the app's SQL queries, typed from its schema (see docs/sql.md).
|
Package queries runs the app's SQL queries, typed from its schema (see docs/sql.md). |
|
Package ssr renders Svelte pages on the server by running the app's server bundle in embedded QuickJS VMs.
|
Package ssr renders Svelte pages on the server by running the app's server bundle in embedded QuickJS VMs. |
|
Package telemetry is what Tern's logging and tracing exporters share: sending a batch over HTTP with gzip, status codes mapped to retries and Retry-After, and OTLP's JSON encoding.
|
Package telemetry is what Tern's logging and tracing exporters share: sending a batch over HTTP with gzip, status codes mapped to retries and Retry-After, and OTLP's JSON encoding. |
|
Package ui formats the Tern CLI's terminal output: colors, symbols, spinners and tables.
|
Package ui formats the Tern CLI's terminal output: colors, symbols, spinners and tables. |
|
Package version reports the version of the Tern build.
|
Package version reports the version of the Tern build. |
Click to show internal directories.
Click to hide internal directories.