Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth owns key verification plus per-key request metering: RPM token buckets, a deferred-commit TPM bucket, in-flight concurrency slots, and a rolling daily USD budget. Meter state survives snapshot adoption. Sharded 16-way for ~10ns key pick at 5k RPS (Bifrost-style).
func (*Auth) Authenticate ¶
func (*Auth) Begin ¶
func (a *Auth) Begin(vk config.VirtualKey) BeginResult