events

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineDocxForExportContext

type LineDocxForExportContext struct {
	Line        *models.LineModel
	LineContent *string
	Apool       *apool.APool
	AttribLine  *string
	Text        *string
	PadId       *string
	Alignment   *string // "left", "center", "right", "justify"
	Heading     *string // e.g., "Heading1", "Normal", etc. -> word styles
}

LineDocxForExportContext is the context for the getLineDocxForExport hook

type LineHtmlForExportContext

type LineHtmlForExportContext struct {
	Line        *models.LineModel
	LineContent *string
	Apool       *apool.APool
	AttribLine  *string
	Text        *string
	PadId       *string
}

type LineMarkdownForExportContext added in v0.0.5

type LineMarkdownForExportContext struct {
	Apool      *apool.APool
	AttribLine *string
	Text       *string
	PadId      *string
	Heading    *string // "h1", "h2", etc.
}

type LineOdtForExportContext

type LineOdtForExportContext struct {
	Line         *models.LineModel
	LineContent  *string
	Apool        *apool.APool
	AttribLine   *string
	Text         *string
	PadId        *string
	Alignment    *string // "left", "center", "right", "justify"
	IsHeading    *bool
	OutlineLevel *int
	Heading      *string // e.g., "Heading 1", "Text Body", etc. -> odt styles
}

LineOdtForExportContext is the context for the getLineOdtForExport hook

type LinePDFForExportContext

type LinePDFForExportContext struct {
	Line        *models.LineModel
	LineContent *string
	Apool       *apool.APool
	AttribLine  *string
	Text        *string
	PadId       *string
	Alignment   *string // "left", "center", "right", "justify"
	FontSize    *float64
	Bold        *bool
	Heading     *string // e.g., "h1", "h2", etc.
}

LinePDFForExportContext is the context for the getLinePDFForExport hook

type LineTxtForExportContext

type LineTxtForExportContext struct {
	Line        *models.LineModel
	LineContent *string
	Apool       *apool.APool
	AttribLine  *string
	Text        *string
	PadId       *string
}

LineTxtForExportContext is the context for the getLineTxtForExport hook

type LocaleLoadContext

type LocaleLoadContext struct {
	RequestedLocale    string
	LoadedTranslations map[string]string
}

type UserJoinLeaveContext added in v0.5.0

type UserJoinLeaveContext struct {
	PadId    string
	AuthorId string
	// BroadcastChat sends a chat message to all clients in the pad room without persisting it.
	// The message map is serialized as the "message" field inside a CHAT_MESSAGE COLLABROOM event.
	BroadcastChat func(message map[string]any)
}

UserJoinLeaveContext is passed to userJoin and userLeave hooks.

Jump to

Keyboard shortcuts

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