publickey

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UsernameKey is for account usernames.
	UsernameKey = "username"
	// PublicKeyPath is a path to a user's public key, for serving bare minimum AP representations.
	PublicKeyPath = "users/:" + UsernameKey + "/" + uris.PublicKeyPath
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(processor *processing.Processor) *Module

func (*Module) PublicKeyGETHandler

func (m *Module) PublicKeyGETHandler(c *gin.Context)

PublicKeyGETHandler should be served at eg https://example.org/users/:username/main-key.

The goal here is to return a MINIMAL activitypub representation of an account in the form of a vocab.ActivityStreamsPerson. The account will only contain the id, public key, username, and type of the account.

func (*Module) Route

func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes)

Jump to

Keyboard shortcuts

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