webfinger

package module
v0.0.0-...-1bbbfa2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 10 Imported by: 0

README

Webfinger handlers on top of Go-ActivityPub storage

This project can be used as a standalone application or as a package from an external project.

Usage:

	// .well-known
    cfg := NodeInfoConfig()
    ni := nodeinfo.NewService(cfg, NodeInfoResolverNew(a.front.storage))
	h := webfinger.handler{}

    // Web-Finger
    r.Route("/.well-known", func(r chi.Router) {
        r.Get("/webfinger", h.HandleWebFinger)
        r.Get("/host-meta", h.HandleHostMeta)
        r.Get("/nodeinfo", ni.NodeInfoDiscover)
    })
    r.Get("/nodeinfo", ni.NodeInfo)

Documentation

Overview

Package webfinger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterID

func FilterID(id string) filters.Check

func FilterName

func FilterName(name string) filters.Check

func FilterURL

func FilterURL(u string) filters.Check

func LoadActor

func LoadActor(dbs []Storage, checkFns ...filters.Check) (vocab.Item, error)

func LoadIRI

func LoadIRI(dbs []Storage, what vocab.IRI, checkFns ...filters.Check) (vocab.Item, error)

func New

func New(l lw.Logger, db ...Storage) handler

Types

type Storage

type Storage struct {
	Store
	Root vocab.Actor
}

type Store

type Store interface {
	Open() error
	Close()
	processing.ReadStore
}

Directories

Path Synopsis
cmd
point command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL