Versions in this module Expand all Collapse all v0 v0.8.0 Sep 21, 2026 v0.7.1 Sep 21, 2026 Changes in this version + var ErrUnavailable = errors.New("usage unavailable") + type Cache struct + func (c *Cache) Clear() + func (c *Cache) Fetch(ctx context.Context, key string, fetch func(context.Context) (Snapshot, error)) (Snapshot, error) + func (c *Cache) Peek(key string) (Snapshot, bool) + type Client struct + CodexURL string + HTTPClient *http.Client + OpenCodeGoURL string + func (c Client) Fetch(ctx context.Context, provider string, credential auth.ModelAuth) (Snapshot, error) + type Snapshot struct + CheckedAt time.Time + Plan string + Windows []Window + func (u Snapshot) Summary() string + type Window struct + Name string + Remaining float64 + ResetsAt time.Time