docManager

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	GetDoc(ctx context.Context, projectId, docId sharedTypes.UUID) (*types.Doc, error)
	GetDocAndRecentUpdates(ctx context.Context, projectId, docId sharedTypes.UUID, fromVersion sharedTypes.Version) (*types.Doc, []sharedTypes.DocumentUpdate, error)
	GetProjectDocsAndFlushIfOld(ctx context.Context, projectId sharedTypes.UUID) ([]*types.Doc, error)
	SetDoc(ctx context.Context, projectId, docId sharedTypes.UUID, request types.SetDocRequest) error
	RenameDoc(ctx context.Context, projectId, docId sharedTypes.UUID, newPath sharedTypes.PathName) error
	ProcessUpdatesForDocHeadless(ctx context.Context, projectId, docId sharedTypes.UUID) error
	FlushAndDeleteDoc(ctx context.Context, projectId, docId sharedTypes.UUID) error
	FlushProject(ctx context.Context, projectId sharedTypes.UUID) error
	FlushAndDeleteProject(ctx context.Context, projectId sharedTypes.UUID) error
	QueueFlushAndDeleteProject(ctx context.Context, projectId sharedTypes.UUID) error
}

func New

func New(db *pgxpool.Pool, client redis.UniversalClient, tc trackChanges.Manager, rtRm realTimeRedisManager.Manager) (Manager, error)

Jump to

Keyboard shortcuts

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