Documentation
¶
Overview ¶
Package ratelimit provides a sliding-window start limiter — the windowed timestamp pattern from internal/action/auto.go:reserve(), reusable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window allows up to max events per sliding window. max <= 0 is unlimited. Safe for concurrent use; clock injectable for tests.
Click to show internal directories.
Click to hide internal directories.