mastodon

package
v0.7.378-dev Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 1 Imported by: 0

Documentation

Overview

Package mastodon holds everything the node needs for the Mastodon bridge. The node itself stays unaware of the ActivityPub gateway: this package only tags bridged users with a foreign network and seeds a single entry account whose home node is the gateway, so it resolves like any other remote user.

Index

Constants

View Source
const (
	// Network is the User.Network tag for accounts bridged in from Mastodon.
	Network = "mastodon"

	// GatewayNodeID is the libp2p peer id of the ActivityPub gateway,
	// deterministically derived from its fixed seed. It is the home node of
	// every bridged Mastodon user.
	GatewayNodeID = "12D3KooWRyHvpYFjCzorxuSyXFigPfhYaHh1GW1JmwQJSPdmj4JK"

	// EntryHandle is the single Mastodon account seeded locally as the entry
	// point into the Fediverse; its followings lead to other Mastodon accounts.
	EntryHandle = "warpnet@mastodon.social"
)

Variables

This section is empty.

Functions

func SeedEntryUser added in v0.7.244

func SeedEntryUser(repo UserSeeder)

SeedEntryUser inserts the bridged Mastodon entry account so it is discoverable/searchable locally; opening it streams to the gateway node.

Types

type UserSeeder added in v0.7.244

type UserSeeder interface {
	Create(user domain.User) (domain.User, error)
	Update(userId string, newUser domain.User) (domain.User, error)
}

UserSeeder is the subset of the user repository the seeding needs.

Jump to

Keyboard shortcuts

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