Versions in this module Expand all Collapse all v0 v0.5.0 Apr 6, 2026 v0.0.5 Feb 24, 2026 v0.0.4 Jan 26, 2026 Changes in this version + const EpDbPassword + func RunFromCLI(logger *zap.SugaredLogger, args []string) + type Author struct + ColorId int + Id string + Name string + PadIDs map[string]int + Timestamp int64 + type Author2Sessions struct + AuthorId string + Sessions map[string]int + type ChatMessage struct + AuthorId string + ChatNum int + PadId string + Text string + Timestamp int64 + type Database interface + Close func() error + GetNextAuthor2Sessions func(lastAuthorId string, limit int) ([]Author2Sessions, error) + GetNextAuthors func(lastAuthorId string, limit int) ([]Author, error) + GetNextGroup2Sessions func(lastGroupId string, limit int) ([]Group2Sessions, error) + GetNextGroups func(lastGroupId string, limit int) ([]Group, error) + GetNextPad2Readonly func(lastPadId string, limit int) ([]Pad2Readonly, error) + GetNextPads func(lastPadId string, limit int) ([]Pad, error) + GetNextReadonly2Pad func(lastReadonlyId string, limit int) ([]Readonly2Pad, error) + GetNextSessions func(lastSessionId string, limit int) ([]Session, error) + GetNextToken2Author func(lastToken string, limit int) ([]Token2Author, error) + GetPadChatMessages func(padId string, lastChatNum int, limit int) ([]ChatMessage, error) + GetPadRevisions func(padId string, lastRev int, limit int) ([]PadRevision, error) + type DriverType int + const DriverMySQL + const DriverPostgres + const DriverSQLite + type Group struct + GroupId string + Pads map[string]int + type Group2Sessions struct + GroupId string + Sessions map[string]int + type Migrator struct + func NewMigrator(oldEtherpadDB *SQLDatabase, newDataStore db.DataStore, ...) *Migrator + func (m *Migrator) MigrateAuthors() error + func (m *Migrator) MigratePad2Readonly() error + func (m *Migrator) MigratePadChats() error + func (m *Migrator) MigratePads() error + func (m *Migrator) MigrateRevisions() error + func (m *Migrator) MigrateToken2Author() error + type Pad struct + AText struct{ ... } + ChatHead int + Head int + PadId string + Pool struct{ ... } + PublicStatus bool + SavedRevisions []struct{ ... } + type Pad2Readonly struct + PadId string + ReadonlyId string + type PadRevision struct + Changeset string + Meta struct{ ... } + PadRevisionId string + RevNum int + type Readonly2Pad struct + PadId string + ReadonlyId string + type SQLDatabase struct + func NewDB(dsn string, dbType string) (*SQLDatabase, error) + func NewMySQLDatabase(dsn string) (*SQLDatabase, error) + func NewPostgresDatabase(dsn string) (*SQLDatabase, error) + func NewSQLDatabase(db *sql.DB, driver DriverType) (*SQLDatabase, error) + func NewSQLiteDatabase(dsn string) (*SQLDatabase, error) + func (s *SQLDatabase) Close() error + func (s *SQLDatabase) GetNextAuthor2Sessions(lastAuthorId string, limit int) ([]Author2Sessions, error) + func (s *SQLDatabase) GetNextAuthors(lastAuthorId string, limit int) ([]Author, error) + func (s *SQLDatabase) GetNextGroup2Sessions(lastGroupId string, limit int) ([]Group2Sessions, error) + func (s *SQLDatabase) GetNextGroups(lastGroupId string, limit int) ([]Group, error) + func (s *SQLDatabase) GetNextPad2Readonly(lastPadId string, limit int) ([]Pad2Readonly, error) + func (s *SQLDatabase) GetNextPads(lastPadId string, limit int) ([]Pad, error) + func (s *SQLDatabase) GetNextReadonly2Pad(lastReadonlyId string, limit int) ([]Readonly2Pad, error) + func (s *SQLDatabase) GetNextSessions(lastSessionId string, limit int) ([]Session, error) + func (s *SQLDatabase) GetNextToken2Author(lastToken string, limit int) ([]Token2Author, error) + func (s *SQLDatabase) GetPadChatMessages(padId string, lastChatNum int, limit int) ([]ChatMessage, error) + func (s *SQLDatabase) GetPadRevisions(padId string, lastRev int, limit int) ([]PadRevision, error) + type Session struct + AuthorId string + GroupId string + SessionId string + ValidUntil int64 + type Token2Author struct + AuthorId string + Token string