db

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: 2 Imported by: 1 module, 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 AText added in v0.0.2

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

type AuthorDB

type AuthorDB struct {
	ID        string
	Name      *string
	ColorId   string
	Timestamp int64
	Token     *string
	CreatedAt time.Time
}

type ChangesetDB

type ChangesetDB struct {
	OldLen   int
	NewLen   int
	Ops      string
	CharBank string
}

type ChangesetMeta

type ChangesetMeta struct {
	AuthorId  string
	Timestamp int
}

type ChatMessageDB

type ChatMessageDB struct {
	PadId    string
	Head     int
	Message  string
	Time     *int64
	AuthorId *string
}

type ChatMessageDBWithDisplayName added in v0.0.2

type ChatMessageDBWithDisplayName struct {
	ChatMessageDB
	DisplayName *string
}

type OIDCStorageValue added in v0.5.0

type OIDCStorageValue struct {
	Key       string
	Payload   string
	UpdatedAt time.Time
}

type PadDB

type PadDB struct {
	ID             string          `json:"id"`
	Head           int             `json:"head"`
	SavedRevisions []SavedRevision `json:"savedRevisions"`
	ReadOnlyId     *string         `json:"readonlyId"`
	Pool           RevPool         `json:"pool"`
	ChatHead       int             `json:"chatHead"`
	PublicStatus   bool            `json:"publicStatus"`
	DocumentType   string          `json:"documentType"`
	ATextText      string          `json:"atextText"`
	ATextAttribs   string          `json:"atextAttribs"`
	// Settings holds the pad-wide settings as JSON; nil means defaults.
	// CreatePad writes it only when it inserts the row: later changes go
	// through SetPadSettings so no instance overwrites another's change.
	Settings  *string    `json:"settings,omitempty"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedAt *time.Time `json:"updatedAt"`
}

type PadDBSearch added in v0.0.2

type PadDBSearch struct {
	Padname        string
	LastEdited     int64
	RevisionNumber int
}

type PadDBSearchResult added in v0.0.2

type PadDBSearchResult struct {
	TotalPads int
	Pads      []PadDBSearch
}

type PadMetaData

type PadMetaData struct {
	Id           string
	RevNum       int
	ChangeSet    string
	Atext        AText
	AtextAttribs string
	AuthorId     *string
	Timestamp    int64
	PadPool      PadPool
}

type PadPool added in v0.0.2

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

func (*PadPool) ToIntPool added in v0.0.2

func (p *PadPool) ToIntPool() map[int][]string

type PadRevDBMeta added in v0.0.2

type PadRevDBMeta struct {
	Author    *string
	Timestamp int64
	Pool      *RevPool
	AText     *AText
}

type PadSavedDBMeta added in v0.0.2

type PadSavedDBMeta struct {
	Author    *string
	Timestamp int64
	Pool      *RevPool
	AText     *AText
}

type PadSingleRevision

type PadSingleRevision struct {
	PadId     string
	RevNum    int
	Changeset string
	AText     AText
	AuthorId  *string
	Timestamp int64
	Pool      *RevPool
}

type RevPool added in v0.0.2

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

type RevisionDB

type RevisionDB struct {
	RevNum int
	// contains filtered or unexported fields
}

type SavedRevision added in v0.0.4

type SavedRevision struct {
	RevNum    int
	SavedBy   string
	Timestamp int64
	Label     *string
	Id        string
}

type ServerVersion added in v0.0.5

type ServerVersion struct {
	Version   string
	UpdatedAt time.Time
}

type SheetDB added in v0.6.5

type SheetDB struct {
	ID        string
	Head      int
	Snapshot  string
	CreatedAt time.Time
	UpdatedAt *time.Time
}

SheetDB is the persisted header of a spreadsheet document (keyed by pad id). Snapshot is a marshaled sheet.WorkbookSnapshot.

type SheetOpDB added in v0.6.5

type SheetOpDB struct {
	PadId     string
	Rev       int
	Op        string
	AuthorId  *string
	Timestamp int64
}

SheetOpDB is one persisted operation in a sheet document's op-log.

Jump to

Keyboard shortcuts

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