lib

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitStore

type InitStore struct {
	C                 *fiber.App
	PrivateAPI        fiber.Router
	UiAssets          embed.FS
	RetrievedSettings *settings.Settings
	CookieStore       *session.Store
	Store             db.DataStore
	Handler           *ws.PadMessageHandler
	PadManager        *pad2.Manager
	Validator         *validator.Validate
	Logger            *zap.SugaredLogger
	Hooks             *hooks.Hook
	ReadOnlyManager   *pad2.ReadOnlyManager
	SecurityManager   *pad2.SecurityManager
	AuthorManager     *author.Manager
	Importer          *io.Importer
	// Cluster is the bus to the other instances on the database; nil
	// means a single instance.
	Cluster cluster.Bus
	// RetentionLeader elects the instance running the retention sweep.
	RetentionLeader *cluster.Elector
	// Lifecycle tells whether this instance should receive traffic.
	Lifecycle *lifecycle.State
}

Directories

Path Synopsis
Package accounts is etherpad-go's account management: accounts (people, service accounts and the anonymous visitor), roles built from scopes, role assignments limited to pad patterns, and the rules that keep an instance from locking itself out or opening up by mistake.
Package accounts is etherpad-go's account management: accounts (people, service accounts and the anonymous visitor), roles built from scopes, role assignments limited to pad patterns, and the rules that keep an instance from locking itself out or opening up by mistake.
admincli
Package admincli is "etherpad-go admin": creating admins, resetting passwords and listing accounts from the command line, on the database of the settings.
Package admincli is "etherpad-go admin": creating admins, resetting passwords and listing accounts from the command line, on the database of the settings.
api
io
legacy
Package legacy serves etherpad-lite's HTTP API, /api/{version}/{function}, for clients written against it (Moodle, Nextcloud, WordPress plugins and the like).
Package legacy serves etherpad-lite's HTTP API, /api/{version}/{function}, for clients written against it (Moodle, Nextcloud, WordPress plugins and the like).
mcp
Package mcp serves the Model Context Protocol at /mcp: AI clients (Claude, …) read and edit pads and use their chat with a token (Authorization: Bearer ep_…).
Package mcp serves the Model Context Protocol at /mcp: AI clients (Claude, …) read and edit pads and use their chat with a token (Authorization: Bearer ep_…).
pad
padlogin
Package padlogin is the optional login on pads: a person logs in on Etherpad's own OpenID Connect provider and keeps a session cookie; who does not log in has the visitors' rights (lib/accounts).
Package padlogin is the optional login on pads: a person logs in on Etherpad's own OpenID Connect provider and keeps a session cookie; who does not log in has the visitors' rights (lib/accounts).
session
Package session implements the Etherpad API session endpoints (createSession, getSessionInfo, deleteSession, listSessionsOfGroup, listSessionsOfAuthor from the original HTTP API).
Package session implements the Etherpad API session endpoints (createSession, getSessionInfo, deleteSession, listSessionsOfGroup, listSessionsOfAuthor from the original HTTP API).
tokentransfer
Package tokentransfer moves an author's identity to another browser (etherpad-lite's /tokenTransfer): the first browser asks for a code, the second redeems it within five minutes, once, and gets the same author token as an HttpOnly cookie plus the pad preferences.
Package tokentransfer moves an author's identity to another browser (etherpad-lite's /tokenTransfer): the first browser asks for a code, the second redeems it within five minutes, once, and gets the same author token as an HttpOnly cookie plus the pad preferences.
versionstatus
Package versionstatus answers /api/version-status: whether to tell the visitor of a pad that this Etherpad is a minor version or more behind.
Package versionstatus answers /api/version-status: whether to tell the visitor of a pad that this Etherpad is a minor version or more behind.
Package apikeys manages the keys of the HTTP API (/api).
Package apikeys manages the keys of the HTTP API (/api).
Package cluster passes live updates between Etherpad instances that share one database.
Package cluster passes live updates between Etherpad instances that share one database.
Package compact is "etherpad-go compact": etherpad-lite's bin/compactPad, bin/compactAllPads and bin/compactStalePads as a command of the binary.
Package compact is "etherpad-go compact": etherpad-lite's bin/compactPad, bin/compactAllPads and bin/compactStalePads as a command of the binary.
db
io
Package lifecycle tracks whether this instance should receive traffic: not before it has started, and no longer once it is shutting down.
Package lifecycle tracks whether this instance should receive traffic: not before it has started, and no longer once it is shutting down.
Package mail sends plain-text notices through an SMTP server (the updater's mails to the admin).
Package mail sends plain-text notices through an SMTP server (the updater's mails to the admin).
Package metrics holds the Prometheus instruments on the hot path of the pad message handler: etherpad-lite's prom-instruments (scaling dive, #7756).
Package metrics holds the Prometheus instruments on the hot path of the pad message handler: etherpad-lite's prom-instruments (scaling dive, #7756).
db
pad
ws
Package paddiff is a port of the original Etherpad src/node/utils/padDiff.ts.
Package paddiff is a port of the original Etherpad src/node/utils/padDiff.ts.
Package security provides the SecretRotator, a port of Etherpad's src/node/security/SecretRotator.ts.
Package security provides the SecretRotator, a port of Etherpad's src/node/security/SecretRotator.ts.
Package skin knows what the server needs about the skins: the toolbar colour of the colibris variants, for the theme-color meta.
Package skin knows what the server needs about the skins: the toolbar colour of the colibris variants, for the theme-color meta.
Package socialmeta builds the Open Graph + Twitter Card <meta> tag block emitted on the homepage, pad page, and timeslider so URLs shared in chat apps (WhatsApp, Signal, Slack, ...) unfurl with a preview.
Package socialmeta builds the Open Graph + Twitter Card <meta> tag block emitted on the homepage, pad page, and timeslider so URLs shared in chat apps (WhatsApp, Signal, Slack, ...) unfurl with a preview.
test
testdb
Package testdb gives tests one shared Postgres and one shared MariaDB server per machine, and isolated databases on them.
Package testdb gives tests one shared Postgres and one shared MariaDB server per machine, and isolated databases on them.
ws
Package tokens manages the tokens of accounts: API keys with their own scopes, pad pattern and expiry.
Package tokens manages the tokens of accounts: API keys with their own scopes, pad pattern and expiry.
Package updater implements Etherpad-Go's self-update subsystem: a tiered (off / notify / manual / auto / autonomous) updater that checks GitHub releases, and — for writable single-binary installs — downloads the matching release binary, verifies it, atomically replaces the running executable and exits with code 75 so a process supervisor restarts into the new version.
Package updater implements Etherpad-Go's self-update subsystem: a tiered (off / notify / manual / auto / autonomous) updater that checks GitHub releases, and — for writable single-binary installs — downloads the matching release binary, verifies it, atomically replaces the running executable and exits with code 75 so a process supervisor restarts into the new version.
ws

Jump to

Keyboard shortcuts

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