Documentation
¶
Overview ¶
Package identifiers provides the canonical set of named values accepted by CalcMark functions. This is the single source of truth for network scopes, network types, storage types, and compression types.
All consumers (spec/semantic, spec/features, impl/interpreter) derive their identifier lists from this package. This eliminates drift between layers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CompressionTypes = []string{"gzip", "zstd", "lz4", "snappy", "bzip2", "none"}
CompressionTypes lists valid compression type identifiers for compress().
var NetworkScopes = []string{"local", "regional", "continental", "global"}
NetworkScopes lists valid scope identifiers for rtt() and transfer_time(). Ordered by most commonly used first — first element is the representative example shown in the TUI compact footer.
var NetworkTypes = []string{"gigabit", "ten_gig", "hundred_gig", "wifi", "four_g", "five_g"}
NetworkTypes lists valid network type identifiers for throughput() and transfer_time().
var StorageAliases = map[string]string{"sata_ssd": "ssd"}
StorageAliases maps alternative storage names to their canonical name. The interpreter accepts both the canonical name and any alias.
var StorageTypes = []string{"ssd", "nvme", "pcie_ssd", "hdd"}
StorageTypes lists valid storage type identifiers for read() and seek().
var TimeUnits = []string{"nanosecond", "microsecond", "millisecond", "second", "minute", "hour", "day", "week", "month", "quarter", "year"}
TimeUnits lists valid time unit identifiers accepted by convert_rate() and other rate/duration-manipulating functions. Ordered from smallest to largest so "second" is the representative example.
Functions ¶
func AllStorageNames ¶
func AllStorageNames() []string
AllStorageNames returns all valid storage names including aliases. Used by interpreter validation and error messages.
Types ¶
This section is empty.