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) Timeline() *Timeline
- func (c *Collector) UpdateMeta(kind PhaseKind, fn func(*PhaseMeta))
- type ConnDetails
- type Phase
- type PhaseKind
- type PhaseMeta
- type Report
- type TLSCert
- type TLSDetails
- type Timeline
- type TraceDetails
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) UpdateMeta ¶
type ConnDetails ¶ added in v0.15.0
type ConnDetails struct {
Reused bool
WasIdle bool
IdleTime time.Duration
Network string
DialAddr string
LocalAddr string
RemoteAddr string
ResolvedAddrs []string
Proxy string
ProxyTunnel bool
SSH string
K8s string
Protocol string
}
func (*ConnDetails) Clone ¶ added in v0.15.0
func (c *ConnDetails) Clone() *ConnDetails
type Report ¶
type Report struct {
Timeline *Timeline
Budget Budget
BudgetReport BudgetReport
}
Report summarises a collected timeline along with evaluated budgets.
type TLSCert ¶ added in v0.15.0
type TLSDetails ¶ added in v0.15.0
type TLSDetails struct {
Version string
Cipher string
ALPN string
ServerName string
Resumed bool
Verified bool
Certificates []TLSCert
}
func (*TLSDetails) Clone ¶ added in v0.15.0
func (t *TLSDetails) Clone() *TLSDetails
type Timeline ¶
type TraceDetails ¶ added in v0.15.0
type TraceDetails struct {
Connection *ConnDetails
TLS *TLSDetails
}
func (*TraceDetails) Clone ¶ added in v0.15.0
func (d *TraceDetails) Clone() *TraceDetails
Click to show internal directories.
Click to hide internal directories.