core/

directory
v0.1.0-dev8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0

README

Core

Cross-domain infrastructure packages reused across services and domains (SubmitQueue, Stovepipe, and other repo-local services). These are foundational building blocks — not domain entities, not pluggable extensions — and they carry no domain dependencies.

For infrastructure shared only within a single domain (across that domain's own gateway and orchestrator), see the domain-scoped core/ package, e.g. submitqueue/core/ (which holds the queue consumer framework and the request lifecycle).

Packages

  • errs/ — Error classification framework. Classifies errors by origin (user vs. infra) and retryability. Extensions return plain errors; service controllers classify them.
  • httpclient/ — Shared HTTP transport helpers (timeouts, instrumentation) for extensions that talk to external services over HTTP.
  • metrics/ — Metrics utility helpers for tally.Scope. Provides standardized counters, timers, and histograms with error-aware tagging via core/errs integration.

Directories

Path Synopsis
generic
Package generic provides an errs.Classifier for errors that are not tied to any particular backend.
Package generic provides an errs.Classifier for errors that are not tied to any particular backend.
mysql
Package mysql provides an errs.Classifier for errors originating from the go-sql-driver/mysql driver and the standard database/sql + net packages commonly seen when talking to a MySQL backend.
Package mysql provides an errs.Classifier for errors originating from the go-sql-driver/mysql driver and the standard database/sql + net packages commonly seen when talking to a MySQL backend.

Jump to

Keyboard shortcuts

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