pub(crate) fn archiver_consumer_name(cfg: &SampleConfig, channel: u8) -> StringExpand description
Builds the durable JetStream consumer name for one archived channel.
The name is archiver-<box>-<source_type>-<source_id>-<channel>-current, with each
part passed through sanitize_consumer_token. Missing values default to
unknown-box, labjack and the LabJack name. The channel number is not
zero-padded.
§Arguments
cfg- Archiver config supplying the identity fields.channel- LabJack channel number.
§Examples
box_id = "box-01", source_type = None, source_id = "MU1", channel = 8
-> "archiver-box-01-labjack-mu1-8-current"