Documentation
¶
Index ¶
Constants ¶
View Source
const ( TierFree = "free" TierStandard = "standard" TierEnterprise = "enterprise" )
Variables ¶
View Source
var ErrInstanceLimit = fmt.Errorf("ratelimit: instance limit reached: %w", commonerrors.ErrConflict)
ErrInstanceLimit is returned when a tenant already has the tier's max instances. On tier downgrade this means the tenant still has more gateways than the new tier allows — delete excess gateways (or keep them on a higher tier) before lowering the plan.
Functions ¶
This section is empty.
Types ¶
type Limits ¶
Limits are plan caps; QuotaPerMonth == 0 means unlimited, MaxInstances == 0 means unlimited. Create inherits the highest sibling tier so MaxInstances stays consistent under immutable entitlements.
func (Limits) HasInstanceCap ¶
func (Limits) HasMonthlyQuota ¶
Click to show internal directories.
Click to hide internal directories.