bseal/uuid48
generate a 48 bits number uuid (string length is 8)
nodeid (4 bit): 1 - 15
time (30 bit): 34 years
index (14 bit): 1 - 16383 (generates of per second)
Types
pub type Message {
Generate(client: Subject(Int))
}
Constructors
-
Generate(client: Subject(Int))
Functions
pub fn start(
nodeid nodeid: Int,
epoch epoch: Int,
) -> Result(Subject(Message), StartError)
pub fn string_with(
service: Subject(Message),
encode: fn(Int) -> String,
) -> String