Documentation
¶
Overview ¶
Package resets polls public trackers of announced global usage-limit resets: codex-resets.com for Codex and claude-resets.com for Claude.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Claude = Feed{Name: "claude-resets", URL: "https://claude-resets.com/data/resets.json", /* contains filtered or unexported fields */}
Claude reads claude-resets.com's dataset of Claude resets announced by @ClaudeDevs and the Claude team. It has no schedule or forecast, so only Latest and Stats are filled.
var Codex = Feed{Name: "codex-resets", URL: "https://codex-resets.com/api/v1/status", /* contains filtered or unexported fields */}
Functions ¶
This section is empty.
Types ¶
type Reset ¶
type Reset struct {
ID string `json:"id"`
Status string `json:"status,omitempty"`
ResetType string `json:"reset_type"`
AnnouncedAt time.Time `json:"announced_at"`
ScheduledAt *time.Time `json:"scheduled_for,omitempty"`
Text string `json:"text"`
Source Source `json:"source"`
// Scope is who it applied to, e.g. "Max" (Claude).
Scope string `json:"scope,omitempty"`
// UsableUntil is when a banked reset expires (Claude).
UsableUntil *time.Time `json:"usable_until,omitempty"`
}
type Settings ¶
func DefaultSettings ¶
func DefaultSettings() Settings
type Snapshot ¶
type Snapshot struct {
Status *Status `json:"status"`
FetchedAt *time.Time `json:"fetchedAt"`
Error string `json:"error,omitempty"`
}
Snapshot is the last successful fetch plus bookkeeping.