es

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLASSIFICATIONS_MANAGER = new(ClassificationsManager)

Functions

func CollectionAdd added in v0.6.6

func CollectionAdd(uid string) error

func CollectionDelete added in v0.6.6

func CollectionDelete(uid string) error

func CollectionUpdate added in v0.6.6

func CollectionUpdate(uid string) error

func ContentUnitAdd added in v0.6.6

func ContentUnitAdd(uid string) error

func ContentUnitDelete added in v0.6.6

func ContentUnitDelete(uid string) error

func ContentUnitUpdate added in v0.6.6

func ContentUnitUpdate(uid string) error

func ConvertDocx

func ConvertDocx()

func FileAdd added in v0.6.6

func FileAdd(uid string) error

func FileDelete added in v0.6.6

func FileDelete(uid string) error

func FileUpdate added in v0.6.6

func FileUpdate(uid string) error

func IndexClassifications

func IndexClassifications()

func IndexName

func IndexName(prefix string, language string) string

func IndexUnits

func IndexUnits()

func Init

func Init() time.Time

func ParseDocx

func ParseDocx(uid string) (string, error)

func PersonAdd added in v0.6.6

func PersonAdd(uid string) error

func PersonUpdate added in v0.6.6

func PersonUpdate(uid string) error

func PublisherAdd added in v0.6.6

func PublisherAdd(uid string) error

func PublisherUpdate added in v0.6.6

func PublisherUpdate(uid string) error

func Shutdown

func Shutdown()

func SourceAdd added in v0.6.6

func SourceAdd(uid string) error

func SourceUpdate added in v0.6.6

func SourceUpdate(uid string) error

func TagAdd added in v0.6.6

func TagAdd(uid string) error

func TagUpdate added in v0.6.6

func TagUpdate(uid string) error

Types

type Classification

type Classification struct {
	MDB_UID            string `json:"mdb_uid"`
	Name               string `json:"name,omitempty"`
	NameSuggest        string `json:"name_suggest,omitempty"`
	Description        string `json:"description,omitempty"`
	DescriptionSuggest string `json:"description_suggest,omitempty"`
	Type               string `json:"classification_type"`
}

type ClassificationsManager

type ClassificationsManager struct {
	Sources      map[int64][]string
	Tags         map[int64][]string
	Persons      map[int64][]string
	Translations map[int64][]string
	Transcripts  map[int64]map[string][]string
}

func (*ClassificationsManager) Load

func (cm *ClassificationsManager) Load() error

type Collection

type Collection struct {
	MDB_UID      string            `json:"mdb_uid"`
	ContentType  string            `json:"content_type"`
	FilmDate     *utils.Date       `json:"film_date"`
	Names        map[string]string `json:"names"`
	Descriptions map[string]string `json:"descriptions"`
	ContentUnits []*ContentUnit    `json:"content_units"`
}

type ContentUnit

type ContentUnit struct {
	MDB_UID                 string      `json:"mdb_uid"`
	Name                    string      `json:"name,omitempty"`
	Description             string      `json:"description,omitempty"`
	ContentType             string      `json:"content_type"`
	CollectionsContentTypes []string    `json:"collections_content_types,omitempty"`
	FilmDate                *utils.Date `json:"film_date,omitempty"`
	Duration                uint16      `json:"duration,omitempty"`
	OriginalLanguage        string      `json:"original_language,omitempty"`
	Translations            []string    `json:"translations,omitempty"`
	Tags                    []string    `json:"tags,omitempty"`
	Sources                 []string    `json:"sources,omitempty"`
	Authors                 []string    `json:"authors,omitempty"`
	Persons                 []string    `json:"persons,omitempty"`
	Transcript              string      `json:"transcript,omitempty"`
}

type File

type File struct {
	MDB_UID  string      `json:"mdb_uid"`
	Name     string      `json:"name"`
	Size     int64       `json:"size"`
	URL      string      `json:"url"`
	Secure   int         `json:"secure"`
	FilmDate *utils.Date `json:"film_date"`
	Duration float64     `json:"duration,omitempty"`
	Language string      `json:"language,omitempty"`
	MimeType string      `json:"mimetype,omitempty"`
	Type     string      `json:"type,omitempty"`
	SubType  string      `json:"subtype,omitempty"`
}

type TagIndexUOW

type TagIndexUOW struct {
	Tag *mdbmodels.Tag
}

Jump to

Keyboard shortcuts

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