Documentation ¶
Index ¶
- Variables
- func GetBucketName(v1 *viper.Viper) (string, error)
- func PruneSources(v1 *viper.Viper, useSources []string) (*viper.Viper, error)
- func ReadGleanerConfig(filename string, cfgDir string) (*viper.Viper, error)
- func ReadServersConfig(filename string, cfgDir string) (*viper.Viper, error)
- func SourceToNabuPrefix(sources []Sources, includeProv bool) []string
- type Minio
- type Objects
- type Sources
- func GetActiveSourceByType(sources []Sources, key string) []Sources
- func GetActiveSources(g1 *viper.Viper) ([]Sources, error)
- func GetSourceByType(sources []Sources, key string) []Sources
- func GetSources(g1 *viper.Viper) ([]Sources, error)
- func ReadSourcesCSV(filename string, cfgPath string) ([]Sources, error)
- type SourcesConfig
- type Sparql
- type Summoner
Constants ¶
This section is empty.
Variables ¶
View Source
var MinioTemplate = map[string]interface{}{ "minio": map[string]string{ "address": "localhost", "port": "9000", "accesskey": "", "secretkey": "", "bucket": "", }, }
View Source
var ObjectTemplate = map[string]interface{}{ "objects": map[string]string{ "bucket": "gleaner", "domain": "us-east-1", "endpoint": "http://localhost/blazegraph/namespace/nabu/sparql", "prefix": "", "prefixoff": "", }, }
View Source
var SourcesTemplate = map[string]interface{}{ "sources": map[string]string{ "sourcetype": "sitemap", "name": "", "url": "", "logo": "", "headless": "", "pid": "", "propername": "", "domain": "", "credentialsfile": "", }, }
View Source
var SummonerTemplate = map[string]interface{}{ "summoner": map[string]string{ "after": "", "mode": "full", "threads": "5", "delay": "10000", "headless": "http://127.0.0.1:9222", }, }
Functions ¶
func ReadGleanerConfig ¶
func ReadServersConfig ¶
func SourceToNabuPrefix ¶
Types ¶
type Minio ¶
type Minio struct { Address string // `mapstructure:"MINIO_ADDRESS"` Port int //`mapstructure:"MINIO_PORT"` Ssl bool //`mapstructure:"MINIO_USE_SSL"` Accesskey string //`mapstructure:"MINIO_ACCESS_KEY"` Secretkey string // `mapstructure:"MINIO_SECRET_KEY"` Bucket string }
frig frig... do not use lowercase... those are private variables
type Objects ¶
type Sources ¶
type Sources struct { SourceType string `default:"sitemap"` Name string Logo string URL string Headless bool PID string ProperName string Domain string Active bool `default:"true"` CredentialsFile string // do not want someones google api key exposed. Other map[string]interface{} `mapstructure:",remain"` }
as read from csv
func GetActiveSourceByType ¶
func GetSourceByType ¶
type SourcesConfig ¶
type SourcesConfig struct { Name string Logo string URL string Headless bool PID string ProperName string Domain string }
add needed for file
type Summoner ¶
type Summoner struct { After string Mode string // full || diff: If diff compare what we have currently in gleaner to sitemap, get only new, delete missing Threads int Delay int64 // milliseconds (1000 = 1 second) to delay between calls (will FORCE threads to 1) Headless string // URL for headless see docs/headless }
Click to show internal directories.
Click to hide internal directories.