Documentation
¶
Index ¶
- Constants
- type DocumentApp
- func (app *DocumentApp) CreateComment(input dto.CreateCommentInput) (*dto.CreateCommentOutput, error)
- func (a *DocumentApp) CreateDocument(input dto.CreateDocumentInput) (*dto.CreateDocumentOutput, error)
- func (app *DocumentApp) CreateVersion(input dto.CreateVersionInput) (*dto.CreateVersionOutput, error)
- func (app *DocumentApp) CreateVersionOnUpdate(doc *domain.Document, userId string)
- func (app *DocumentApp) DeleteComment(input dto.DeleteCommentInput) error
- func (a *DocumentApp) DeleteDocument(input dto.DeleteDocumentInput) error
- func (c *DocumentApp) DeleteDocumentUserPermission(input dto.DeleteDocumentUserPermissionInput) error
- func (app *DocumentApp) GetComments(input dto.GetCommentsInput) (*dto.GetCommentsOutput, error)
- func (a *DocumentApp) GetDocumentWithSpace(input dto.GetDocumentWithSpaceInput) (*dto.GetDocumentWithSpaceOutput, error)
- func (a DocumentApp) GetDocumentsFromSpaceWithUserPermissions(input dto.GetDocumentsFromSpaceInput) (*dto.GetDocumentsFromSpaceOutput, error)
- func (c *DocumentApp) GetPublicDocument(input dto.GetPublicDocumentInput) (*dto.GetPublicDocumentOutput, error)
- func (c *DocumentApp) GetTrash(input dto.GetTrashInput) (*dto.GetTrashOutput, error)
- func (app *DocumentApp) GetVersion(input dto.GetVersionInput) (*dto.GetVersionOutput, error)
- func (c *DocumentApp) ListDocumentPermissions(input dto.ListDocumentPermissionsInput) (*dto.ListDocumentPermissionsOutput, error)
- func (app *DocumentApp) ListVersions(input dto.ListVersionsInput) (*dto.ListVersionsOutput, error)
- func (a *DocumentApp) MoveDocument(input dto.MoveDocumentInput) (*dto.MoveDocumentOutput, error)
- func (a *DocumentApp) ReorderDocuments(input dto.ReorderDocumentsInput) error
- func (app *DocumentApp) ResolveComment(input dto.ResolveCommentInput) error
- func (c *DocumentApp) RestoreDocument(input dto.RestoreDocumentInput) error
- func (app *DocumentApp) RestoreVersion(input dto.RestoreVersionInput) error
- func (app *DocumentApp) Search(input dto.SearchInput) (*dto.SearchOutput, error)
- func (c *DocumentApp) SetPublic(input dto.SetPublicInput) error
- func (app *DocumentApp) UpdateComment(input dto.UpdateCommentInput) error
- func (a *DocumentApp) UpdateDocument(input dto.UpdateDocumentInput) (*dto.UpdateDocumentOutput, error)
- func (c *DocumentApp) UpsertDocumentUserPermission(input dto.UpsertDocumentUserPermissionInput) error
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 (c *DocumentApp) ListDocumentPermissions(input dto.ListDocumentPermissionsInput) (*dto.ListDocumentPermissionsOutput, error)
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.