Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Turns ¶
func Turns(in Input) ([]Turn, []Compaction)
Types ¶
type Compaction ¶
type ContextUsage ¶
type ContextUsage struct {
State State
Used, Size *int64
Ratio *float64
SizeSource string
Stale *bool
Sequence *int64
ReportedTurnID string
ReportedAt *time.Time
PressureThreshold *float64
Injected *Injected
}
func Derive ¶
func Derive(in Input) ContextUsage
type Input ¶
type Input struct {
UsageEvents []UsageEvent
Deliveries []Delivery
Compactions []Compaction
Settled *SettledTurn
CatalogWindow *int64
Threshold *float64
Available bool
}
type SettledTurn ¶
type UsageEvent ¶
Click to show internal directories.
Click to hide internal directories.