From 7baee5b892afcddb72a575282c6c8983d477ed44 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sat, 17 Dec 2022 16:19:49 -0500 Subject: introduce concept of registry, start of webfinger impl --- webfinger/webfinger.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 webfinger/webfinger.go (limited to 'webfinger') 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"` +} -- cgit v1.2.3