doc

package
v1.65.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2018 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByTitle added in v1.56.0

type ByTitle []Document

ByTitle sorts a collection of documents by document title.

func (ByTitle) Len added in v1.56.0

func (a ByTitle) Len() int

func (ByTitle) Less added in v1.56.0

func (a ByTitle) Less(i, j int) bool

func (ByTitle) Swap added in v1.56.0

func (a ByTitle) Swap(i, j int)

type Document

type Document struct {
	model.BaseEntity
	OrgID        string              `json:"orgId"`
	LabelID      string              `json:"folderId"`
	UserID       string              `json:"userId"`
	Job          string              `json:"job"`
	Location     string              `json:"location"`
	Title        string              `json:"name"`
	Excerpt      string              `json:"excerpt"`
	Slug         string              `json:"-"`
	Tags         string              `json:"tags"`
	Template     bool                `json:"template"`
	Protection   workflow.Protection `json:"protection"`
	Approval     workflow.Approval   `json:"approval"`
	Lifecycle    workflow.Lifecycle  `json:"lifecycle"`
	Versioned    bool                `json:"versioned"`
	VersionID    string              `json:"versionId"`
	VersionOrder int                 `json:"versionOrder"`
	GroupID      string              `json:"groupId"`
}

Document represents the purpose of Documize.

func (*Document) SetDefaults

func (d *Document) SetDefaults()

SetDefaults ensures on blanks and cleans.

type DocumentMeta

type DocumentMeta struct {
	Viewers []DocumentMetaViewer `json:"viewers"`
	Editors []DocumentMetaEditor `json:"editors"`
}

DocumentMeta details who viewed the document.

type DocumentMetaEditor

type DocumentMetaEditor struct {
	PageID    string    `json:"pageId"`
	UserID    string    `json:"userId"`
	Action    string    `json:"action"`
	Created   time.Time `json:"created"`
	Firstname string    `json:"firstname"`
	Lastname  string    `json:"lastname"`
}

DocumentMetaEditor contains the "edit" metatdata content.

type DocumentMetaViewer

type DocumentMetaViewer struct {
	UserID    string    `json:"userId"`
	Created   time.Time `json:"created"`
	Firstname string    `json:"firstname"`
	Lastname  string    `json:"lastname"`
}

DocumentMetaViewer contains the "view" metatdata content.

type SitemapDocument

type SitemapDocument struct {
	DocumentID string
	Document   string
	FolderID   string
	Folder     string
	Revised    time.Time
}

SitemapDocument details a document that can be exposed via Sitemap.

type UploadModel

type UploadModel struct {
	JobID string `json:"jobId"`
}

UploadModel details the job ID of an uploaded document.

type Version added in v1.59.0

type Version struct {
	VersionID  string `json:"versionId"`
	DocumentID string `json:"documentId"`
}

Version points to a version of a document.

Jump to

Keyboard shortcuts

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