admin

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package admin picks the operational store SetupAgentCore uses when none is configured (§2.9).

Index

Constants

View Source
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

func OpenDefaultAdminStore(ctx context.Context, log *slog.Logger) (ports.AdminStore, error)

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.

Jump to

Keyboard shortcuts

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