document

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MaxVersionsPerDocument = 50

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentApp

type DocumentApp struct {
	Config              config.Config
	Logger              zerolog.Logger
	DocumentPers        domain.DocumentPers
	SpacePers           domain.SpacePers
	PermissionPers      domain.PermissionPers
	CommentPers         domain.CommentPers
	DocumentVersionPers domain.DocumentVersionPers
}

func NewDocumentApp

func NewDocumentApp(config config.Config, logger zerolog.Logger, documentPers domain.DocumentPers, spacePers domain.SpacePers, permissionPers domain.PermissionPers, commentPers domain.CommentPers, documentVersionPers domain.DocumentVersionPers) *DocumentApp

func (*DocumentApp) CreateComment

func (app *DocumentApp) CreateComment(input dto.CreateCommentInput) (*dto.CreateCommentOutput, error)

func (*DocumentApp) CreateDocument

func (a *DocumentApp) CreateDocument(input dto.CreateDocumentInput) (*dto.CreateDocumentOutput, error)

func (*DocumentApp) CreateVersion

func (app *DocumentApp) CreateVersion(input dto.CreateVersionInput) (*dto.CreateVersionOutput, error)

func (*DocumentApp) CreateVersionOnUpdate

func (app *DocumentApp) CreateVersionOnUpdate(doc *domain.Document, userId string)

CreateVersionOnUpdate should be called when a document is updated to create an automatic version

func (*DocumentApp) DeleteComment

func (app *DocumentApp) DeleteComment(input dto.DeleteCommentInput) error

func (*DocumentApp) DeleteDocument

func (a *DocumentApp) DeleteDocument(input dto.DeleteDocumentInput) error

func (*DocumentApp) DeleteDocumentUserPermission

func (c *DocumentApp) DeleteDocumentUserPermission(input dto.DeleteDocumentUserPermissionInput) error

func (*DocumentApp) GetComments

func (app *DocumentApp) GetComments(input dto.GetCommentsInput) (*dto.GetCommentsOutput, error)

func (*DocumentApp) GetDocumentWithSpace

func (a *DocumentApp) GetDocumentWithSpace(input dto.GetDocumentWithSpaceInput) (*dto.GetDocumentWithSpaceOutput, error)

func (DocumentApp) GetDocumentsFromSpaceWithUserPermissions

func (a DocumentApp) GetDocumentsFromSpaceWithUserPermissions(input dto.GetDocumentsFromSpaceInput) (*dto.GetDocumentsFromSpaceOutput, error)

func (*DocumentApp) GetPublicDocument

func (c *DocumentApp) GetPublicDocument(input dto.GetPublicDocumentInput) (*dto.GetPublicDocumentOutput, error)

func (*DocumentApp) GetTrash

func (c *DocumentApp) GetTrash(input dto.GetTrashInput) (*dto.GetTrashOutput, error)

func (*DocumentApp) GetVersion

func (app *DocumentApp) GetVersion(input dto.GetVersionInput) (*dto.GetVersionOutput, error)

func (*DocumentApp) ListDocumentPermissions

func (*DocumentApp) ListVersions

func (app *DocumentApp) ListVersions(input dto.ListVersionsInput) (*dto.ListVersionsOutput, error)

func (*DocumentApp) MoveDocument

func (a *DocumentApp) MoveDocument(input dto.MoveDocumentInput) (*dto.MoveDocumentOutput, error)

func (*DocumentApp) ReorderDocuments

func (a *DocumentApp) ReorderDocuments(input dto.ReorderDocumentsInput) error

func (*DocumentApp) ResolveComment

func (app *DocumentApp) ResolveComment(input dto.ResolveCommentInput) error

func (*DocumentApp) RestoreDocument

func (c *DocumentApp) RestoreDocument(input dto.RestoreDocumentInput) error

func (*DocumentApp) RestoreVersion

func (app *DocumentApp) RestoreVersion(input dto.RestoreVersionInput) error

func (*DocumentApp) Search

func (app *DocumentApp) Search(input dto.SearchInput) (*dto.SearchOutput, error)

func (*DocumentApp) SetPublic

func (c *DocumentApp) SetPublic(input dto.SetPublicInput) error

func (*DocumentApp) UpdateComment

func (app *DocumentApp) UpdateComment(input dto.UpdateCommentInput) error

func (*DocumentApp) UpdateDocument

func (a *DocumentApp) UpdateDocument(input dto.UpdateDocumentInput) (*dto.UpdateDocumentOutput, error)

func (*DocumentApp) UpsertDocumentUserPermission

func (c *DocumentApp) UpsertDocumentUserPermission(input dto.UpsertDocumentUserPermissionInput) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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