From 0e1e52b457a452e1cf4f852b88288cb324165f54 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sat, 17 Dec 2022 16:35:26 -0500 Subject: refactor webfinger package into resources --- resources/webfinger.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 resources/webfinger.go (limited to 'resources') 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"` +} -- cgit v1.2.3