Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsCostHook ¶
func AsCostHook(ledger CostLedger, estimatedCostMicros int64, budgetLimitMicros int64) action.AnyHook
Types ¶
type BudgetCheck ¶
type CostLedger ¶
type MemoryCostLedger ¶
type MemoryCostLedger struct {
// contains filtered or unexported fields
}
func NewMemoryCostLedger ¶
func NewMemoryCostLedger() *MemoryCostLedger
func (*MemoryCostLedger) Reserve ¶
func (l *MemoryCostLedger) Reserve(_ context.Context, event CostEvent, limits []BudgetCheck) error
Click to show internal directories.
Click to hide internal directories.