Documentation ¶
Index ¶
- func ConvertDocx()
- func DownloadAndConvert(docBatch [][]string) error
- func IndexCmd(index string)
- func IndexName(namespace string, name string, lang string) string
- func LoadDocFilename(fileUID string) (string, error)
- type BaseIndex
- type Classification
- type ClassificationsIndex
- type Collection
- type CollectionsIndex
- type ContentUnit
- type ContentUnitsIndex
- type EffectiveDate
- type File
- type Index
- type IndexData
- type Indexer
- func (indexer *Indexer) CollectionAdd(uid string) error
- func (indexer *Indexer) CollectionDelete(uid string) error
- func (indexer *Indexer) CollectionUpdate(uid string) error
- func (indexer *Indexer) ContentUnitAdd(uid string) error
- func (indexer *Indexer) ContentUnitDelete(uid string) error
- func (indexer *Indexer) ContentUnitUpdate(uid string) error
- func (indexer *Indexer) CreateIndexes() error
- func (indexer *Indexer) DeleteIndexes() error
- func (indexer *Indexer) FileAdd(uid string) error
- func (indexer *Indexer) FileDelete(uid string) error
- func (indexer *Indexer) FileUpdate(uid string) error
- func (indexer *Indexer) PersonAdd(uid string) error
- func (indexer *Indexer) PersonDelete(uid string) error
- func (indexer *Indexer) PersonUpdate(uid string) error
- func (indexer *Indexer) PublisherAdd(uid string) error
- func (indexer *Indexer) PublisherUpdate(uid string) error
- func (indexer *Indexer) RefreshAll() error
- func (indexer *Indexer) ReindexAll() error
- func (indexer *Indexer) SourceAdd(uid string) error
- func (indexer *Indexer) SourceUpdate(uid string) error
- func (indexer *Indexer) TagAdd(uid string) error
- func (indexer *Indexer) TagUpdate(uid string) error
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDocx ¶
func ConvertDocx()
func DownloadAndConvert ¶ added in v0.7.4
func LoadDocFilename ¶ added in v0.7.4
Types ¶
type BaseIndex ¶ added in v0.6.7
type BaseIndex struct {
// contains filtered or unexported fields
}
func (*BaseIndex) CreateIndex ¶ added in v0.6.7
func (*BaseIndex) DeleteIndex ¶ added in v0.6.7
func (*BaseIndex) RefreshIndex ¶ added in v0.6.7
func (*BaseIndex) RefreshIndexByLang ¶ added in v0.6.7
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 ClassificationsIndex ¶ added in v0.6.7
type ClassificationsIndex struct {
BaseIndex
}
func MakeClassificationsIndex ¶ added in v0.6.7
func MakeClassificationsIndex(namespace string) *ClassificationsIndex
func (*ClassificationsIndex) Add ¶ added in v0.6.7
func (index *ClassificationsIndex) Add(scope Scope) error
func (*ClassificationsIndex) Delete ¶ added in v0.6.7
func (index *ClassificationsIndex) Delete(scope Scope) error
func (*ClassificationsIndex) ReindexAll ¶ added in v0.6.7
func (index *ClassificationsIndex) ReindexAll() error
func (*ClassificationsIndex) Update ¶ added in v0.6.7
func (index *ClassificationsIndex) Update(scope Scope) error
type Collection ¶
type Collection struct { MDB_UID string `json:"mdb_uid"` TypedUIDs []string `json:"typed_uids"` Name string `json:"name"` Description string `json:"description"` ContentType string `json:"content_type"` ContentUnitsContentTypes []string `json:"content_units_content_types,omitempty"` EffectiveDate *utils.Date `json:"effective_date"` OriginalLanguage string `json:"original_language,omitempty"` }
type CollectionsIndex ¶ added in v0.6.7
type CollectionsIndex struct { BaseIndex // contains filtered or unexported fields }
func MakeCollectionsIndex ¶ added in v0.6.9
func MakeCollectionsIndex(namespace string) *CollectionsIndex
func (*CollectionsIndex) Add ¶ added in v0.6.9
func (index *CollectionsIndex) Add(scope Scope) error
func (*CollectionsIndex) Delete ¶ added in v0.6.9
func (index *CollectionsIndex) Delete(scope Scope) error
func (*CollectionsIndex) ReindexAll ¶ added in v0.6.9
func (index *CollectionsIndex) ReindexAll() error
func (*CollectionsIndex) Update ¶ added in v0.6.9
func (index *CollectionsIndex) Update(scope Scope) error
type ContentUnit ¶
type ContentUnit struct { MDB_UID string `json:"mdb_uid"` TypedUIDs []string `json:"typed_uids"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` ContentType string `json:"content_type"` CollectionsContentTypes []string `json:"collections_content_types,omitempty"` EffectiveDate *utils.Date `json:"effective_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 ContentUnitsIndex ¶ added in v0.6.7
type ContentUnitsIndex struct { BaseIndex // contains filtered or unexported fields }
func MakeContentUnitsIndex ¶ added in v0.6.7
func MakeContentUnitsIndex(namespace string) *ContentUnitsIndex
func (*ContentUnitsIndex) Add ¶ added in v0.6.7
func (index *ContentUnitsIndex) Add(scope Scope) error
func (*ContentUnitsIndex) Delete ¶ added in v0.6.7
func (index *ContentUnitsIndex) Delete(scope Scope) error
func (*ContentUnitsIndex) ReindexAll ¶ added in v0.6.7
func (index *ContentUnitsIndex) ReindexAll() error
func (*ContentUnitsIndex) Update ¶ added in v0.6.7
func (index *ContentUnitsIndex) Update(scope Scope) error
type EffectiveDate ¶ added in v0.6.9
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 IndexData ¶ added in v0.6.7
type Indexer ¶ added in v0.6.7
type Indexer struct {
// contains filtered or unexported fields
}
func MakeFakeIndexer ¶ added in v0.7.0
func MakeFakeIndexer() *Indexer
func MakeIndexer ¶ added in v0.6.7
Receives namespace and list of indexes names.
func MakeProdIndexer ¶ added in v0.6.7
func MakeProdIndexer() *Indexer
func (*Indexer) CollectionAdd ¶ added in v0.6.7
Set of MDB event handlers to incrementally change all indexes.
func (*Indexer) CollectionDelete ¶ added in v0.6.7
func (*Indexer) CollectionUpdate ¶ added in v0.6.7
func (*Indexer) ContentUnitAdd ¶ added in v0.6.7
func (*Indexer) ContentUnitDelete ¶ added in v0.6.7
func (*Indexer) ContentUnitUpdate ¶ added in v0.6.7
func (*Indexer) CreateIndexes ¶ added in v0.6.7
func (*Indexer) DeleteIndexes ¶ added in v0.6.7
func (*Indexer) FileDelete ¶ added in v0.6.7
func (*Indexer) FileUpdate ¶ added in v0.6.7
func (*Indexer) PersonDelete ¶ added in v0.6.9
func (*Indexer) PersonUpdate ¶ added in v0.6.7
func (*Indexer) PublisherAdd ¶ added in v0.6.7
func (*Indexer) PublisherUpdate ¶ added in v0.6.7
func (*Indexer) RefreshAll ¶ added in v0.6.7
func (*Indexer) ReindexAll ¶ added in v0.6.7
func (*Indexer) SourceUpdate ¶ added in v0.6.7
Click to show internal directories.
Click to hide internal directories.