summaryrefslogtreecommitdiff
path: root/xmpp/routing.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-04 16:37:27 +0200
committerxengineering <me@xengineering.eu>2023-07-04 16:37:27 +0200
commite529bab2e5df93ff8e9fd415b9d65e9bb6d17695 (patch)
treedac4a542de3c47f6f9bbb19f6fcf090cdbfb085f /xmpp/routing.go
parent7902764e053eb3b8b4d46f8d9caf47d2d5cddd7c (diff)
downloadlimox-e529bab2e5df93ff8e9fd415b9d65e9bb6d17695.tar
limox-e529bab2e5df93ff8e9fd415b9d65e9bb6d17695.tar.zst
limox-e529bab2e5df93ff8e9fd415b9d65e9bb6d17695.zip
Introduce handle() as dummy
Diffstat (limited to 'xmpp/routing.go')
-rw-r--r--xmpp/routing.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmpp/routing.go b/xmpp/routing.go
index 2b1680f..b184b1c 100644
--- a/xmpp/routing.go
+++ b/xmpp/routing.go
@@ -22,3 +22,12 @@ func parse[T any](data T, s *xml.StartElement, d *xml.Decoder, c chan<- any) {
c <- data
}
}
+
+func handle(element any) {
+ switch t := element.(type) {
+ case streamFeatures:
+ log.Println("Handling stream features ...")
+ default:
+ log.Printf("Unknown parsed element: %v", t)
+ }
+}