Documentation
¶
Overview ¶
Package mocklimits defines deterministic limits for mock provider behavior.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns an Anthropic-compatible HTTP handler with deterministic rate limiting behavior.
func RenderText ¶
RenderText writes a human-readable mock server report.
Types ¶
type Report ¶
type Report struct {
Kind string `json:"kind"`
Action string `json:"action"`
Status string `json:"status"`
Addr string `json:"addr"`
BaseURL string `json:"base_url"`
Failures int `json:"failures"`
RetryAfterMS int `json:"retry_after_ms"`
Text string `json:"text"`
Endpoint string `json:"endpoint"`
Messages []string `json:"messages,omitempty"`
}
Report describes the mock server endpoint and rate-limit behavior.
func BuildReport ¶
BuildReport returns a user-facing description of the mock server setup.
Click to show internal directories.
Click to hide internal directories.