mirror of
https://github.com/hanzoai/types.git
synced 2026-10-01 00:45:52 +00:00
A value belongs here when two or more services must agree on it exactly and neither should inherit the other's machinery to do so. The package imports the standard library only; go list -deps is 63, all stdlib. Seeded with the metered-series window. Cloud and ai must resolve ?range/?start/ ?end to the same [start, end) and the same bucket interval, and cloud reached that 30-line rule through a package that carries 1925 dependencies. Interval is a closed type. The bucket function is not bindable in the engines that serve these series, so the interval reaches a query by interpolation; ParseWindow yields Hour or Day and nothing else can be constructed through it. ParseWindow is total: it returns a window or an error, never a zero window a caller could read as a valid range. It also carries the resolved label, which every call site previously re-derived. Co-authored-by: Hanzo Dev <[email protected]>
4 lines
43 B
AMPL
4 lines
43 B
AMPL
module github.com/hanzoai/types
|
|
|
|
go 1.26.4
|