Documentation
¶
Overview ¶
Package util Copyright 2021 Juergen Enge, info-age GmbH, Basel. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Siegfried *ConfigSiegfried FFMPEG *ConfigFFMPEG ImageMagick *ConfigImageMagick Tika *ConfigTika External []ExternalAction FileMap []FileMap URLRegexp []string XML indexer.ConfigXML NSRL *ConfigNSRL Clamav *ConfigClamAV MimeRelevance map[string]MimeWeight }
func LoadConfig ¶
type ConfigClamAV ¶
type ConfigFFMPEG ¶
type ConfigImageMagick ¶
type ConfigNSRL ¶
type ConfigSiegfried ¶
type ConfigTika ¶
type ExternalAction ¶
type ExternalAction struct { Name, Address, Mimetype string ActionCapabilities []indexer.ActionCapability CallType indexer.ExternalActionCalltype }
type Indexer ¶
type Indexer indexer.ActionDispatcher
func InitIndexer ¶
InitIndexer initializes an ActionDispatcher with Siegfried, ImageMagick, FFPMEG and Tika the actions are named "siegfried", "identify", "ffprobe", "tika" and "fulltext"