aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-30 08:41:58 +0200
committerClombrong <cromblong@egregore.fun>2025-06-30 18:09:07 +0200
commit530b648bb826ef8a5dfaf5eaa85e8e8eb51ae1ef (patch)
tree4f4385897aadea39762b222f5c06e02c8fd98dc8
parentc55193c8ba67753595b80b7c059b4465ff6c8c57 (diff)
feat(jid): new type Jid.t
-rw-r--r--lib/flesh.ml1
-rw-r--r--lib/jid.ml5
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/flesh.ml b/lib/flesh.ml
index 03882b4..084c21f 100644
--- a/lib/flesh.ml
+++ b/lib/flesh.ml
@@ -3,6 +3,7 @@ module Sasl = Sasl
module Starttls = Starttls
module Wire = Wire
module Xml = Xml
+module Jid = Jid
open Lwt.Syntax
open Lwt.Infix
diff --git a/lib/jid.ml b/lib/jid.ml
new file mode 100644
index 0000000..19759eb
--- /dev/null
+++ b/lib/jid.ml
@@ -0,0 +1,5 @@
+type t = {
+ localpart : string option;
+ domainpart : string;
+ resourcepart : string option;
+ }