Versions in this module Expand all Collapse all v0 v0.5.8 Nov 9, 2026 Changes in this version + const PriceSource + func Cost(model string, u Usage) (usd float64, ok bool) + func Top(m map[string]*Bucket, n int) []string + type Bucket struct + USD float64 + Unpriced int64 + type Price struct + CacheRead float64 + Input float64 + Long *Price + LongAfter int64 + Output float64 + type Report struct + Days map[string]*Bucket + Files int + From time.Time + Hosts []string + Models map[string]*Bucket + Projects map[string]*Bucket + Sessions []Session + Skipped int + Total Bucket + Unreadable int + func Read(from time.Time, project string) (*Report, error) + type Session struct + Host string + Model string + Peak int64 + Start int64 + type Usage struct + CacheRead int64 + CacheWrite1h int64 + CacheWrite5m int64 + Input int64 + Output int64 + func (u Usage) Prompt() int64 + func (u Usage) Total() int64