Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NodeInfoWellKnownPath is the base path for serving responses to nodeinfo lookup requests. NodeInfoWellKnownPath = ".well-known/nodeinfo" // NodeInfoBasePath is the path for serving nodeinfo responses. NodeInfoBasePath = "/nodeinfo/2.0" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config *config.Config, processor processing.Processor) api.FederationModule
New returns a new nodeinfo module
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module implements the FederationModule interface
func (*Module) NodeInfoGETHandler ¶
NodeInfoGETHandler returns a compliant nodeinfo response to node info queries. See: https://nodeinfo.diaspora.software/
func (*Module) NodeInfoWellKnownGETHandler ¶
NodeInfoWellKnownGETHandler returns a well known response to a query to /.well-known/nodeinfo, directing (but not redirecting...) callers to the NodeInfoGETHandler.
Click to show internal directories.
Click to hide internal directories.