bseal/uuid54
generate a 54 bits number uuid (string length is 9)
nodeid (4 bit): 1 - 15
time (32 bit): 136 years
index (18 bit): 1 - 262143 (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