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

db

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 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
	PadIDs    map[string]struct{}
	Timestamp int64
}

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 PadDB

type PadDB struct {
	RevNum         int                       `json:"head"`
	SavedRevisions map[int]PadRevision       `json:"savedRevisions"`
	Revisions      map[int]PadSingleRevision `json:"revisions"`
	ReadOnlyId     string                    `json:"readOnlyId"`
	Pool           PadPool                   `json:"pool"`
	ChatHead       int                       `json:"chatHead"`
	PublicStatus   bool                      `json:"publicStatus"`
	AText          AText                     `json:"atext"`
}

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 PadRevision

type PadRevision struct {
	Content   string
	PadDBMeta PadRevDBMeta
}

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