# Functions
No description provided by the author
AddCost adds the cost to the context.
EnsurePermission middleware that checks if the session type has the required permission.
EnsureUsage is a middleware that checks if the quota has enough usage left.
GetAccessQuota returns the access quota from the context.
GetProjectID returns the projectID and if its active from the context.
GetTime returns the time from the context.
HasSpending returns the result of spending from the context.
No description provided by the author
No description provided by the author
SetCost middleware that sets the cost of the request, and defaults to Option.BaseRequestCost.
SpendUsage is a middleware that spends the usage from the quota.
No description provided by the author
WithCost sets the cost and rate limit increment to the context.
WithTime sets the time to the context.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
RateLimitConfig is the configuration for the rate limiter middleware.
# Interfaces
Client is the interface that wraps the basic FetchKeyQuota, GetUsage and SpendQuota methods.