From 614f50a7bacc878abcaccc9186673ab2958a717d Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 30 May 2021 14:59:11 -0700 Subject: added webfinger discovery for boards --- webfinger.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 webfinger.go (limited to 'webfinger.go') diff --git a/webfinger.go b/webfinger.go new file mode 100644 index 0000000..004bdca --- /dev/null +++ b/webfinger.go @@ -0,0 +1,12 @@ +package main + +type Webfinger struct { + Subject string `json:"subject,omitempty"` + Links []WebfingerLink `json:"links,omitempty"` +} + +type WebfingerLink struct { + Rel string `json:"rel,omitempty"` + Type string `json:"type,omitempty"` + Href string `json:"href,omitempty"` +} -- cgit v1.2.3