aimd

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct{ Label, Value, Caption string }

type Fair

type Fair struct{ Pair Pair }

Fair draws the two-flow convergence (or not).

func (Fair) Render

func (f Fair) Render() Rendered

type Flow

type Flow struct {
	Cwnd        []float64
	Utilization float64
	Losses      int
}

Flow is one AIMD flow's window trace plus its summary metrics.

type Markdown

type Markdown string

func (Markdown) Render

func (m Markdown) Render() Rendered

type Pair

type Pair struct {
	A, B     []float64
	Gap      []float64
	FinalGap float64
	Rule     int
}

Pair is two flows sharing a pipe, with the fairness gap over time.

type Readout

type Readout struct{ Cards []Card }

func (Readout) Render

func (r Readout) Render() Rendered

Render draws the verdict cards. A composite value with no Render method carries no MIME and the client hides the cell — so the cards render themselves. Engine-called, not a cell, so fmt here is fine.

type Rendered

type Rendered struct{ MIME, Data string }

type Saw

type Saw struct{ Flow Flow }

Saw draws the single-flow sawtooth against the capacity line.

func (Saw) Render

func (s Saw) Render() Rendered

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL