Discover Packages
github.com/blackbirdworks/gopherstack
pkgs
quotalimit
package
Version:
v1.10.0
Opens a new window with list of versions in this module.
Published: Nov 25, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package quotalimit lets a service consult Service Quotas applied values without importing it.
type Func func(account, region, serviceCode, quotaCode string ) (limit float64 , ok bool )
Func returns the applied limit of a quota for an account and Region; ok is false when none is known.
Gate holds the optional lookup; the zero value is ready to use and enforces nothing.
func (g *Gate ) Lookup(account, region, serviceCode, quotaCode string ) Limit
Lookup resolves the limit. Call it before taking a service lock: the lookup takes Service Quotas' own lock.
Set installs the lookup; nil disables enforcement.
Limit is a resolved quota limit; the zero value enforces nothing.
Reached reports whether creating one more resource beyond current would exceed the limit.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.