Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRateExceeded = api.Errorf(api.Code_RESOURCE_EXHAUSTED, "request rate limit exceeded") ErrThroughputExceeded = api.Errorf(api.Code_RESOURCE_EXHAUSTED, "request throughput limit exceeded") ErrStorageSizeExceeded = api.Errorf(api.Code_RESOURCE_EXHAUSTED, "data size limit exceeded") )
Functions ¶
func Allow ¶
Allow checks rate, write throughput and storage size limits for the namespace and returns error if at least one of them is exceeded
func Init ¶
func Init(t *metadata.TenantManager, tx *transaction.Manager, c *config.QuotaConfig)
Types ¶
Click to show internal directories.
Click to hide internal directories.