Documentation
¶
Overview ¶
Package ids generates immutable resource identifiers.
Catalog rows use UUIDv7 as their primary key — time-sortable, std-blessed, 36-char canonical form. Generation is app-side; PG never invents an id.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnixSec ¶
UnixSec extracts the embedded creation time (seconds since epoch) from a UUIDv7 string. Returns 0 if s is not a parseable UUIDv7. UUIDv7 encodes milliseconds in the first 48 bits, so seconds-precision is exact.
Used by surfaces that expose OpenAI-shape `created` fields (e.g. /v1/models) without adding a separate CreatedAt column to every entity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.