clientVars

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: 0 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

View Source
const WebAccessStore = "sessionUser"

Variables

This section is empty.

Functions

This section is empty.

Types

type APool

type APool struct {
	NumToAttrib map[string][]string `json:"numToAttrib"`
	NextNum     int                 `json:"nextNum"`
}

type AccountPrivs

type AccountPrivs struct {
	MaxRevisions int `json:"maxRevisions"`
}

type ClientVars

type ClientVars struct {
	SkinName                           string                             `json:"skinName"`
	SkinVariants                       string                             `json:"skinVariants"`
	EnableDarkMode                     bool                               `json:"enableDarkMode"`
	RandomVersionString                string                             `json:"randomVersionString"`
	AccountPrivs                       AccountPrivs                       `json:"accountPrivs"`
	AutomaticReconnectionTimeout       int                                `json:"automaticReconnectionTimeout"`
	InitialRevisionList                []string                           `json:"initialRevisionList"`
	InitialOptions                     map[string]interface{}             `json:"initialOptions"`
	SavedRevisions                     []SavedRevisionClient              `json:"savedRevisions"`
	CollabClientVars                   CollabClientVars                   `json:"collab_client_vars"`
	ColorPalette                       []string                           `json:"colorPalette"`
	ClientIP                           string                             `json:"clientIp"`
	UserColor                          string                             `json:"userColor"`
	PadId                              string                             `json:"padId"`
	PadOptions                         map[string]any                     `json:"padOptions"`
	PadShortcutEnabled                 map[string]bool                    `json:"padShortcutEnabled"`
	InitialTitle                       string                             `json:"initialTitle"`
	Opts                               map[string]interface{}             `json:"opts"`
	ChatHead                           int                                `json:"chatHead"`
	NumConnectedUsers                  int                                `json:"numConnectedUsers"`
	ReadOnlyId                         string                             `json:"readOnlyId"`
	ReadOnly                           bool                               `json:"readonly"`
	ServerTimeStamp                    int64                              `json:"serverTimestamp"`
	UserName                           *string                            `json:"userName"`
	SessionRefreshInterval             int                                `json:"sessionRefreshInterval"`
	UserId                             string                             `json:"userId"`
	AbiwordAvailable                   string                             `json:"abiwordAvailable"`
	SOfficeAvailable                   string                             `json:"sofficeAvailable"`
	AvailableExports                   []string                           `json:"availableExports"`
	Plugins                            RootPlugin                         `json:"plugins"`
	Parts                              map[string]interface{}             `json:"parts"`
	IndentationOnNewLine               bool                               `json:"indentationOnNewLine"`
	ScrollWhenFocusLineIsOutOfViewport ScrollWhenFocusLineIsOutOfViewport `json:"scrollWhenFocusLineIsOutOfViewport"`
	InitialChangesets                  []string                           `json:"initialChangesets"`
	CookiePrefix                       string                             `json:"cookiePrefix"`
	// EnablePluginPadOptions mirrors settings.enablePluginPadOptions so the
	// client can decide whether to forward plugin-namespaced ep_* keys
	// through padOptions. Upstream #7698.
	EnablePluginPadOptions bool `json:"enablePluginPadOptions"`
	// EnablePadWideSettings and CanEditPadSettings drive the pad-wide
	// settings section; only the pad's creator may edit it.
	EnablePadWideSettings bool          `json:"enablePadWideSettings"`
	CanEditPadSettings    bool          `json:"canEditPadSettings"`
	PadRetention          *PadRetention `json:"padRetention"`
	// Pad deletion (etherpad-lite #7926, #7959, #7996): the token is sent
	// once, to the creator; canDeletePad offers the plain delete button,
	// canDeleteWithoutToken hides the token field.
	PadDeletionToken              *string `json:"padDeletionToken"`
	CanDeleteWithoutToken         bool    `json:"canDeleteWithoutToken"`
	CanDeletePad                  bool    `json:"canDeletePad"`
	SuppressPadDeletionTokenModal bool    `json:"suppressPadDeletionTokenModal"`
}

type CollabAuthor

type CollabAuthor struct {
	Name    *string `json:"name"`
	ColorId string  `json:"colorId"`
}

type CollabClientVars

type CollabClientVars struct {
	InitialAttributedText InitialAttributedText   `json:"initialAttributedText"`
	ClientIP              string                  `json:"clientIp"`
	PadId                 string                  `json:"padId"`
	HistoricalAuthorData  map[string]CollabAuthor `json:"historicalAuthorData"`
	IsInitialAuthor       bool                    `json:"isInitialAuthor"`
	Apool                 APool                   `json:"apool"`
	Rev                   int                     `json:"rev"`
	Time                  int64                   `json:"time"`
}

type InitialAttributedText

type InitialAttributedText struct {
	Text    string `json:"text"`
	Attribs string `json:"attribs"`
}

type PadRetention added in v0.6.8

type PadRetention struct {
	State           string `json:"state"`
	MsRemaining     int64  `json:"msRemaining,omitempty"`
	DeleteAfterDays int    `json:"deleteAfterDays,omitempty"`
}

type PartInMessage

type PartInMessage struct {
	FullName string            `json:"full_name"`
	Hooks    map[string]string `json:"hooks"`
	Name     string            `json:"name"`
	Plugin   string            `json:"plugin"`
}

type PluginInMessage

type PluginInMessage struct {
	Package PluginInMessagePackage `json:"package"`
	Parts   []PartInMessage        `json:"parts"`
}

type PluginInMessagePackage

type PluginInMessagePackage struct {
	Name     string `json:"name"`
	Path     string `json:"path"`
	RealPath string `json:"realPath"`
	Version  string `json:"version"`
}

type RootPlugin

type RootPlugin struct {
	Plugins map[string]PluginInMessage `json:"plugins"`
	Parts   map[string]PartInMessage   `json:"parts"`
}

type SavedRevisionClient added in v0.0.4

type SavedRevisionClient struct {
	Id        string  `json:"id"`
	Revnum    int     `json:"revNum"`
	SavedBy   string  `json:"savedById"`
	Label     *string `json:"label"`
	Timestamp int64   `json:"timestamp"`
}

type ScrollWhenFocusLineIsOutOfViewport

type ScrollWhenFocusLineIsOutOfViewport struct {
	Percentage                               ScrollWhenFocusLineIsOutOfViewportPercentage `json:"percentage"`
	Duration                                 int                                          `json:"duration"`
	ScrollWhenCaretIsInTheLastLineOfViewport bool                                         `json:"scrollWhenCaretIsInTheLastLineOfViewport"`
	PercentageToScrollWhenUserPressesArrowUp int                                          `json:"percentageToScrollWhenUserPressesArrowUp"`
}

type ScrollWhenFocusLineIsOutOfViewportPercentage

type ScrollWhenFocusLineIsOutOfViewportPercentage struct {
	EditionAboveViewport int `json:"editionAboveViewport"`
	EditionBelowViewport int `json:"editionBelowViewport"`
}

Jump to

Keyboard shortcuts

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