aboutsummaryrefslogtreecommitdiff
path: root/webfinger/webfinger.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-17 21:19:49 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-17 21:19:49 +0000
commit7baee5b892afcddb72a575282c6c8983d477ed44 (patch)
tree1dbde5fe9ab9d3d2f46090f0c72fc0246c410879 /webfinger/webfinger.go
parent2585e05af116cb95d2d2c36b096345c2b982e39c (diff)
downloadcommunique-7baee5b892afcddb72a575282c6c8983d477ed44.tar.gz
introduce concept of registry, start of webfinger impl
Diffstat (limited to '')
-rw-r--r--webfinger/webfinger.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/webfinger/webfinger.go b/webfinger/webfinger.go
new file mode 100644
index 0000000..8e43dd2
--- /dev/null
+++ b/webfinger/webfinger.go
@@ -0,0 +1,13 @@
+package webfinger
+
+type Link struct {
+ Rel string `json:"rel"`
+ Type string `json:"type"`
+ Href string `json:"href"`
+}
+
+type Resource struct {
+ Subject string `json:"subject"`
+ Aliases []string `json:"aliases"`
+ Links []Link `json:"links"`
+}