Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RequestsPerSecond float64 `json:"requests_per_second" yaml:"requests_per_second"`
Burst int `json:"burst" yaml:"burst"`
MaxConcurrent int `json:"max_concurrent" yaml:"max_concurrent"`
}
Config applies to all callers of one configured endpoint. Zero disables the corresponding limit. A positive rate with burst zero uses a capacity of one.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry survives runtime replacement. Configuration changes preserve tokens and active requests; database transactions do not sit on the request path.
Click to show internal directories.
Click to hide internal directories.