Documentation
¶
Overview ¶
Package admin picks the operational store SetupAgentCore uses when none is configured (§2.9).
Index ¶
Constants ¶
const DefaultAdminDB = "agentic-kit-admin.sqlite"
DefaultAdminDB is where the default store writes when no Postgres URL is set.
Variables ¶
This section is empty.
Functions ¶
func OpenDefaultAdminStore ¶
OpenDefaultAdminStore is the store SetupAgentCore uses when none is configured (§2.9).
AGENTIC_KIT_ADMIN_DATABASE_URL selects Postgres: point it at its own database or the one you already have, the agentic_ prefix keeps them apart. Without it, SQLite on disk at AGENTIC_KIT_ADMIN_DB.
Like the TypeScript package, it uses whichever driver the process has: register a database/sql driver (modernc.org/sqlite or mattn/go-sqlite3; pgx/stdlib or lib/pq) by importing it.
The connection is opened eagerly, so a store that cannot be opened fails at startup rather than losing every run record. The SCHEMA is brought up to date behind it (§2.9): a service starts at the same speed whether or not it has migrating to do, and the first admin call waits for the schema rather than meeting a table that is not there yet.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package memory holds operational history in memory: tests, and a template.
|
Package memory holds operational history in memory: tests, and a template. |
|
Package migrate applies the platform's OWN schema to the admin store (§2.9), from numbered .sql files.
|
Package migrate applies the platform's OWN schema to the admin store (§2.9), from numbered .sql files. |
|
Package postgres holds operational history in Postgres (§2.9): the production store, reached through AGENTIC_KIT_ADMIN_DATABASE_URL.
|
Package postgres holds operational history in Postgres (§2.9): the production store, reached through AGENTIC_KIT_ADMIN_DATABASE_URL. |
|
Package sqlite holds operational history in SQLite (§2.9): the development store.
|
Package sqlite holds operational history in SQLite (§2.9): the development store. |