aboutsummaryrefslogtreecommitdiff
path: root/resources/webfinger.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/webfinger.go')
-rw-r--r--resources/webfinger.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/webfinger.go b/resources/webfinger.go
new file mode 100644
index 0000000..d936519
--- /dev/null
+++ b/resources/webfinger.go
@@ -0,0 +1,13 @@
+package resources
+
+type Link struct {
+ Rel string `json:"rel"`
+ Type string `json:"type"`
+ Href string `json:"href"`
+}
+
+type WebfingerResource struct {
+ Subject string `json:"subject"`
+ Aliases []string `json:"aliases"`
+ Links []Link `json:"links"`
+}