community: github.com/documize/community/model/template Index | Files

package template

import "github.com/documize/community/model/template"

Index

Package Files

template.go

type Template Uses

type Template struct {
    ID          string    `json:"id"`
    Title       string    `json:"title"`
    Description string    `json:"description"`
    Author      string    `json:"author"`
    Type        Type      `json:"type"`
    Dated       time.Time `json:"dated"`
}

Template is used to create a new document. Template can consist of content, attachments and have associated meta data indentifying author, version contact details and more.

func (*Template) IsPrivate Uses

func (t *Template) IsPrivate() bool

IsPrivate means only the owner can see the template.

func (*Template) IsPublic Uses

func (t *Template) IsPublic() bool

IsPublic means anyone can see the template.

func (*Template) IsRestricted Uses

func (t *Template) IsRestricted() bool

IsRestricted means selected users can see the template.

type Type Uses

type Type int

Type determines who can see a template.

const (
    // TypePublic means anyone can see the template.
    TypePublic Type = 1
    // TypePrivate means only the owner can see the template.
    TypePrivate Type = 2
    // TypeRestricted means selected users can see the template.
    TypeRestricted Type = 3
)

Package template imports 1 packages (graph). Updated 2017-11-01. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).