Documentation ¶
Overview ¶
Package wellknown provides an middleware that lets sites to register themselfs to wellknown uris
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finger ¶
Finger is an Simple Type for site to transport the information about the webfinger to the middleware
type FingerSite ¶
type FingerSite interface { httpserver.Site RegisterFingers() []*Finger }
FingerSite is an type of site that provide content and want to publish it with webfinger
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is an middleware for sites to register themselfs to provide wellknown urls
func (*Middleware) Defaults ¶
func (*Middleware) Defaults() middleware.Config
Defaults returns nothing
func (*Middleware) Init ¶
func (m *Middleware) Init(rg *gin.RouterGroup)
Init initializes the routergroup. It must always run on /
func (*Middleware) PreSetup ¶
func (m *Middleware) PreSetup(s []any) error
PreSetup goes through all sites and collects all registrations for wellknown uris
Click to show internal directories.
Click to hide internal directories.