Help us shape the future of Go! Take the 2026 Go Developer Survey

clientVars

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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"`
	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]*bool                   `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"`
}

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