bseal/uuid60
generate a 60 bits number uuid (string length is 10)
nodeid (4 bit): 1 - 15
time (34 bit): 544 years
index (22 bit): 1 - 4194303 (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