1
0
Fork 0
httpserver/middleware/wellknown/site.go

16 Zeilen
390 B
Go

2022-11-06 09:53:38 +00:00
package wellknown
import "go.sebtobie.de/httpserver"
// Finger is an Simple Type for site to transport the information about the webfinger to the middleware
type Finger struct {
Webfinger Webfinger
Protocol string
}
// FingerSite is an type of site that provide content and want to publish it with webfinger
type FingerSite interface {
httpserver.Site
RegisterFingers() []*Finger
}