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

db

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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"`
	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 SerializedAccessToken added in v0.0.2

type SerializedAccessToken struct {
	RequestID     string
	ClientID      string
	Scopes        []string
	GrantedScopes []string
	RequestedAt   time.Time
	SessionData   json.RawMessage
}

func FromFositeRequester added in v0.0.2

func FromFositeRequester(request fosite.Requester) (*SerializedAccessToken, error)

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.

type StoreRefreshToken added in v0.0.2

type StoreRefreshToken struct {
	Active               bool
	AccessTokenSignature string
	fosite.Requester
}

Jump to

Keyboard shortcuts

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