Versions in this module Expand all Collapse all v0 v0.3.5 Mar 17, 2025 v0.3.1 Mar 17, 2025 Changes in this version + var ErrDomainRequired = errors.New("domain must be specified") + var ErrRelRequired = errors.New("rel is required for links in resource") + var ErrResourceDomainMatch = errors.New("resource does not match configured domain") + var ErrSubjectRequired = errors.New("subject is required for resource") + func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error) + type Config struct + Domain string + Passthrough bool + Resources map[string]WebFingerResponse + func CreateConfig() *Config + type WebFinger struct + func (w *WebFinger) ServeHTTP(responseWriter http.ResponseWriter, req *http.Request) + type WebFingerLink struct + Href string + Properties map[string]string + Rel string + Titles map[string]string + Type string + type WebFingerResponse struct + Aliases []string + Links []WebFingerLink + Subject string