domain

package
v0.0.0-...-22f568f Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	// ID is the unique identifier of the document.
	ID string
	// Name is the name of the document.
	Name string
	// Content is the content of the document.
	Content string
	// DocumentHistory is the history of the document.
	DocumentHistory []History
}

Document represents a document to be indexed.

type Folder

type Folder struct {
	// ID is the unique identifier of the folder.
	ID string
	// Name is the name of the folder.
	Name string
	// ParentFolderID is the unique identifier of the parent folder.
	ParentFolderID string
	// Folders is the folders in the folder.
	Folders []Folder
	// Documents is the documents in the folder.
	Documents []Document
}

type History

type History struct {
	// ID is the unique identifier of the historical record of the document.
	ID string
	// EditedBy is the user who edited the document.
	EditedBy string
	// EditedAt is the date when the document was edited.
	EditedAt time.Time
}

Jump to

Keyboard shortcuts

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