Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonQuotaCheck ¶
func CommonQuotaCheck(ctx context.Context, res *quota.ApplyQuotaResource, getLimitQuota GetLimitQuota, getCurUsedNum GetCurUsedNum) *quota.ApplyQuotaResult
func InitConfigs ¶
func InitConfigs()
Types ¶
type GetCurUsedNum ¶
type GetLimitQuota ¶
type GetLimitQuota func() int64
type GlobalCounter ¶
type Quota ¶
type Quota struct { }
func (*Quota) Apply4Quotas ¶
func (q *Quota) Apply4Quotas(ctx context.Context, res *quota.ApplyQuotaResource) *quota.ApplyQuotaResult
申请配额sourceType serviceinstance servicetype
func (*Quota) RemandQuotas ¶
func (q *Quota) RemandQuotas(ctx context.Context, quotaType quota.ResourceType)
向配额中心上报配额使用量
Click to show internal directories.
Click to hide internal directories.