gxid
Types
A library implementing XID generation Message handled by the actor
pub opaque type Message
Functions
pub fn generate(channel: Subject(Message)) -> XID
Generates a XID
Usage
import gxid.{XID}
let assert Ok(channel) = gxid.start()
let xid: XID = gxid.generate(channel)
See: https:///hexdocs.pm/gleam_otp/0.1.1/gleam/otp/actor/#call
pub fn parse(str_xid: String) -> XID
Parse a XID string to have its composition
Usage
import gxid.{XID}
let xid: XID = gxid.parse("h8a8u4o00de6hq6tsc00")