Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeedTokenHash ¶ added in v0.2.26
FeedTokenHash is the lookup key for a presented feed token.
Types ¶
type Deps ¶ added in v0.2.31
type Deps struct {
KV store.Store
RuntimeDB *sql.DB
AuthDB *sql.DB
Dbc *dbcache.DbCache
Secrets *secrets.Resolver
Scheduled *scheduled.Store
Source *chsource.Store
IMAP *chimap.Store
Calendar *chcal.Store
Contacts *chcon.Store
Workspace *workspace.Store
Notebook *chnotebook.Store
Drive *chdrive.Store
IPP *chipp.Store
Identity *authn.Store
State *chstate.Store
}
Deps is everything app.go opens before the personalities start: the tenant KV, the runtime and auth databases, the dbcache mirror, the secrets resolver and one handle per store. A nil store means "this node opened none": its ops answer disabled and its controller (if it has one) is not started, exactly as before this struct existed. New stores are one field here, not one more positional parameter.
Source Files
¶
- account_principal.go
- allowance.go
- blob.go
- calendar.go
- calendar_ops.go
- cap_decls.go
- caps.go
- contacts.go
- contacts_ops.go
- dataset.go
- delegate.go
- drain.go
- drive.go
- drive_ops.go
- drive_sign.go
- grant.go
- html_extract.go
- identity.go
- imap.go
- imap_ops.go
- ipp_ops.go
- kv.go
- notebook.go
- outlet_decls.go
- readfile.go
- redact_registry.go
- runabort.go
- sandbox_decls.go
- schedule.go
- search.go
- server.go
- state.go
- vector.go
- websocket_ops.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin runs the second HTTP server fronting the rule-mutation API.
|
Package admin runs the second HTTP server fronting the rule-mutation API. |
|
ui
Package ui owns the embedded admin-ui Svelte bundle and serves it over HTTP.
|
Package ui owns the embedded admin-ui Svelte bundle and serves it over HTTP. |
|
Package capgw is the capability inlet: `POST /v1/cap/<name>` on the web head, where dispatched work — a run on a NODE, a chassis of its own that this chassis dispatched a run to — asks this chassis to do something on its behalf: call a model, note a card, finish the run.
|
Package capgw is the capability inlet: `POST /v1/cap/<name>` on the web head, where dispatched work — a run on a NODE, a chassis of its own that this chassis dispatched a run to — asks this chassis to do something on its behalf: call a model, note a card, finish the run. |
|
continuation
|
|
|
ui
Package ui owns the embedded continuation "please wait" Svelte bundle.
|
Package ui owns the embedded continuation "please wait" Svelte bundle. |
|
Package grantgw is the grant gateway: the one place a request made with a run grant is decided.
|
Package grantgw is the grant gateway: the one place a request made with a run grant is decided. |
|
Package grantsock is the Unix socket the launcher (`txco sandbox`) reaches the chassis on: the `grant` personality.
|
Package grantsock is the Unix socket the launcher (`txco sandbox`) reaches the chassis on: the `grant` personality. |
|
Package ingress implements the chassis's first-class router: it maps source-specific signal keys (HTTP host, TCP listener, cron job) to a `(tenant, stack)` target, before any txcl rule evaluation.
|
Package ingress implements the chassis's first-class router: it maps source-specific signal keys (HTTP host, TCP listener, cron job) to a `(tenant, stack)` target, before any txcl rule evaluation. |
|
Package llmgw is the AI-gateway inlet: existing AI clients (Claude Code first) point their base URL at the chassis, their Anthropic Messages request runs once through the tenant's `_llm` stack (which may reject it, rewrite it, or repoint the upstream), and the upstream response streams back byte-transparent.
|
Package llmgw is the AI-gateway inlet: existing AI clients (Claude Code first) point their base URL at the chassis, their Anthropic Messages request runs once through the tenant's `_llm` stack (which may reject it, rewrite it, or repoint the upstream), and the upstream response streams back byte-transparent. |
|
personality
|
|
|
calendar
Package calendar is the chassis's `calendar` personality: a CalDAV server and ICS feed publisher over the durable calendar store (chassis/calendar), mounted on the web head under a reserved path prefix (--calendar-path-prefix, default /dav) on every hostname the head serves.
|
Package calendar is the chassis's `calendar` personality: a CalDAV server and ICS feed publisher over the durable calendar store (chassis/calendar), mounted on the web head under a reserved path prefix (--calendar-path-prefix, default /dav) on every hostname the head serves. |
|
contacts
Package contacts is the chassis's `contacts` personality: a CardDAV server over the durable contacts store (chassis/contacts), mounted on the web head under a reserved path prefix (--contacts-path-prefix, default /carddav) on every hostname the head serves.
|
Package contacts is the chassis's `contacts` personality: a CardDAV server over the durable contacts store (chassis/contacts), mounted on the web head under a reserved path prefix (--contacts-path-prefix, default /carddav) on every hostname the head serves. |
|
dns
Package dns implements the chassis's authoritative-DNS head: a personality that answers DNS queries for zones explicitly delegated to this chassis, straight from an in-memory snapshot of the dns_zones/dns_records tables.
|
Package dns implements the chassis's authoritative-DNS head: a personality that answers DNS queries for zones explicitly delegated to this chassis, straight from an in-memory snapshot of the dns_zones/dns_records tables. |
|
imap
Package imap implements the chassis's IMAP head: a personality that serves a tenant's durable mailbox store (chassis/imap) to any IMAP4rev1 client — Apple Mail, Thunderbird, mutt — so a mail client becomes a UI over state that stacks project into the store with txco://imap/* ops.
|
Package imap implements the chassis's IMAP head: a personality that serves a tenant's durable mailbox store (chassis/imap) to any IMAP4rev1 client — Apple Mail, Thunderbird, mutt — so a mail client becomes a UI over state that stacks project into the store with txco://imap/* ops. |
|
ipp
Package ipp is the chassis's `ipp` personality: a stack presented to a user's computer as a PRINTER.
|
Package ipp is the chassis's `ipp` personality: a stack presented to a user's computer as a PRINTER. |
|
ipp/ui
Package ui owns the embedded printer page: what a browser sees at a printer's own address (https://ipp.<zone>/p/<printer> — the https twin of its ipps:// URI, and where a configuration profile's description points).
|
Package ui owns the embedded printer page: what a browser sees at a printer's own address (https://ipp.<zone>/p/<printer> — the https twin of its ipps:// URI, and where a configuration profile's description points). |
|
lmtp
Package lmtp implements the chassis's LMTP head: a personality that speaks LMTP (RFC 2033) to a colocated Postfix (or any LMTP client) and turns each delivery into a normal txcl envelope.
|
Package lmtp implements the chassis's LMTP head: a personality that speaks LMTP (RFC 2033) to a colocated Postfix (or any LMTP client) and turns each delivery into a normal txcl envelope. |
|
mailmap
Package mailmap implements the chassis's "mail-domain accept map" head: a tiny TCP server that speaks the Postfix tcp_table(5) protocol so the edge Postfix can ask the chassis, per recipient domain, "is this an accepted mail domain?" before relaying it to the LMTP head.
|
Package mailmap implements the chassis's "mail-domain accept map" head: a tiny TCP server that speaks the Postfix tcp_table(5) protocol so the edge Postfix can ask the chassis, per recipient domain, "is this an accepted mail domain?" before relaying it to the LMTP head. |
|
scheduled
Package scheduled is the chassis `scheduled` inlet: a per-period poll loop that drains the scheduled_events store (chassis/scheduled) and fires due events into their tenant's `_scheduled/0` stack.
|
Package scheduled is the chassis `scheduled` inlet: a per-period poll loop that drains the scheduled_events store (chassis/scheduled) and fires due events into their tenant's `_scheduled/0` stack. |
|
source
Package source is the chassis `source` inlet: a per-period poll loop that claims due external-source watchers from the tenant_sources runtime table (chassis/source), opens each (a remote IMAP mailbox today), reads what is new past the source's durable cursor, fires each item into the source's `<stack>/_source/0`, and — once an item's run succeeds — acknowledges it at the source (marks it read, or moves it aside).
|
Package source is the chassis `source` inlet: a per-period poll loop that claims due external-source watchers from the tenant_sources runtime table (chassis/source), opens each (a remote IMAP mailbox today), reads what is new past the source's durable cursor, fires each item into the source's `<stack>/_source/0`, and — once an item's run succeeds — acknowledges it at the source (marks it read, or moves it aside). |
|
state
Package state is the chassis `state` inlet: the dispatcher that presents committed state transitions (chassis/state's transactional outbox) into their tenant's `_state/0` stack, at least once each.
|
Package state is the chassis `state` inlet: the dispatcher that presents committed state transitions (chassis/state's transactional outbox) into their tenant's `_state/0` stack, at least once each. |
|
sweep
Package sweep is the store janitor: a single periodic background pass per store.
|
Package sweep is the store janitor: a single periodic background pass per store. |
|
webdav
Package webdav is the chassis's `webdav` personality: a WebDAV server over the drive store (chassis/drive), mounted on the web head under a reserved path prefix (--drive-path-prefix, default /drive) on every hostname the head serves.
|
Package webdav is the chassis's `webdav` personality: a WebDAV server over the drive store (chassis/drive), mounted on the web head under a reserved path prefix (--drive-path-prefix, default /drive) on every hostname the head serves. |
|
websocket
Package websocket implements the chassis's `websocket` personality: the long-lived side of an HTTP Upgrade.
|
Package websocket implements the chassis's `websocket` personality: the long-lived side of an HTTP Upgrade. |
|
Package static serves bundled / workspace files for the txco://static op, layered first-match-wins: a routed stack's own <workspace>/OPS/<stack>/FILES/** , the chassis-wide <workspace>/FILES/** , then the embedded chassis default (favicon.ico).
|
Package static serves bundled / workspace files for the txco://static op, layered first-match-wins: a routed stack's own <workspace>/OPS/<stack>/FILES/** , the chassis-wide <workspace>/FILES/** , then the embedded chassis default (favicon.ico). |
Click to show internal directories.
Click to hide internal directories.