Documentation
¶
Index ¶
- type Budget
- type BudgetBreach
- type BudgetReport
- type Collector
- func (c *Collector) Begin(kind PhaseKind, ts time.Time)
- func (c *Collector) Complete(ts time.Time)
- func (c *Collector) End(kind PhaseKind, ts time.Time, err error)
- func (c *Collector) Fail(err error)
- func (c *Collector) Merge(other *Collector) error
- func (c *Collector) SortedPhases() []Phase
- func (c *Collector) Timeline() *Timeline
- func (c *Collector) UpdateMeta(kind PhaseKind, fn func(*PhaseMeta))
- type Phase
- type PhaseKind
- type PhaseMeta
- type Report
- type Timeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Budget ¶
type BudgetBreach ¶
type BudgetReport ¶
type BudgetReport struct {
Breaches []BudgetBreach
}
func EvaluateBudget ¶
func EvaluateBudget(tl *Timeline, b Budget) BudgetReport
func (BudgetReport) WithinLimit ¶
func (r BudgetReport) WithinLimit() bool
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector() *Collector
func (*Collector) SortedPhases ¶
func (*Collector) UpdateMeta ¶
type Report ¶
type Report struct {
Timeline *Timeline
Budget Budget
BudgetReport BudgetReport
}
Report summarises a collected timeline along with evaluated budgets.
Click to show internal directories.
Click to hide internal directories.