queue

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 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 Chart

type Chart struct {
	Title       string
	Queue, Busy []float64
}

func (Chart) Render

func (c Chart) Render() Rendered

type Markdown

type Markdown string

func (Markdown) Render

func (m Markdown) Render() Rendered

type PerHour

type PerHour float64

type Prev

type Prev[T any] struct{ Value T }

Prev holds a cell's own previous output. A cell that takes one is stateful, and the toolchain requires it to take a Tick as well: a register needs a clock.

type Rand

type Rand uint64

Rand is xorshift64*. Its state is a uint64 living inside the folded value, which is what makes the whole simulation a pure function of its seed.

type Readout

type Readout struct{ Cards []Card }

type Rendered

type Rendered struct{ MIME, Data string }

type Sample

type Sample struct {
	Tick        Tick
	Queue, Busy int
	Servers     int
}

type Sim

type Sim struct {
	Tick      Tick
	Rand      Rand
	Busy      int
	Queue     int
	Served    int
	WaitHours float64
	History   []Sample
}

type Tick

type Tick uint64

Jump to

Keyboard shortcuts

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