Versions in this module Expand all Collapse all v2026 v2026.1201.0 Dec 1, 2026 Changes in this version + func WriteFilePosition(ctx context.Context, home, projectID, path, view string, position FilePosition) error + func WriteFolderState(ctx context.Context, home, projectID, panel string, state FolderState) error + func WritePDFPreferences(ctx context.Context, home, projectID string, prefs PDFPreferences) error + type FilePosition struct + Anchor int + Head int + Layout string + Left float64 + Page int + ScrollAnchor *int + ScrollOffset *float64 + Top float64 + func ReadFilePosition(ctx context.Context, home, projectID, path, view string) (*FilePosition, error) + type FolderState struct + Expanded []string + RootCollapsed bool + func ReadFolderState(ctx context.Context, home, projectID, panel string) (*FolderState, error) + type PDFPreferences struct + Continuous bool + Direction string + FitMode *string + TwoPages bool + Zoom float64 + func ReadPDFPreferences(ctx context.Context, home, projectID string) (*PDFPreferences, error) v2026.1121.0 Nov 21, 2026 Changes in this version + func AcquireMaintenance(ctx context.Context, home string) (func() error, error) + func AppendLog(ctx context.Context, db *sql.DB, event LogEvent) (string, error) + func Backup(ctx context.Context, db *sql.DB, destination string) (err error) + func BackupExisting(ctx context.Context, source, destination string) error + func CaptureText(ctx context.Context, db *sql.DB, path string) ([]byte, error) + func CollectArtifacts(ctx context.Context, home string) (int, error) + func HasText(ctx context.Context, db *sql.DB, path string) (bool, error) + func Open(ctx context.Context, home string, kind Kind) (*sql.DB, error) + func OpenReadOnly(ctx context.Context, path string) (*sql.DB, error) + func Path(home string, kind Kind) (string, error) + func ReadArtifact(home, id string) ([]byte, error) + func ReleaseDataPool(home string) error + func RestoreBackup(ctx context.Context, destination, source string) error + func RestoreText(ctx context.Context, db *sql.DB, path string) error + func RunArtifactCollection(ctx context.Context, home string) + func StoreArtifact(home string, content []byte) (string, error) + type Kind string + const Data + const Logs + type Lease struct + func BorrowData(ctx context.Context, home string) (*Lease, error) + func (lease *Lease) Close() error + type LogEvent struct + CorrelationKey string + Level string + Message string + Source string + Time time.Time