aboutsummaryrefslogtreecommitdiff
path: root/webfinger
diff options
context:
space:
mode:
Diffstat (limited to 'webfinger')
-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"`
+}