internal/

directory
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT

Directories

Path Synopsis
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 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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL