Commit e304797d authored by Jürgen Enge's avatar Jürgen Enge

project layout refactoring

parent a54f492d
# URL Checker
Memoriav URL Check Service
## Installation
go get gitlab.switch.ch/memoriav/memobase-2020/url-checker
go build gitlab.switch.ch/memoriav/memobase-2020/url-checker/cmd/main
......@@ -9,7 +9,7 @@ import (
"github.com/op/go-logging"
"github.com/robfig/cron"
"gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/memostream"
"gitlab.switch.ch/memoriav/memobase-2020/services/url-checker/memocrawler"
"gitlab.switch.ch/memoriav/memobase-2020/services/url-checker/pkg/memocrawler"
"log"
"os"
"os/signal"
......
......@@ -73,22 +73,22 @@ func NewCrawler(
mapping *memostream.FileMapper,
log *logging.Logger) *Crawler {
cr := &Crawler{
db: db,
workers: workers,
pageSize: pageSize,
schema: schema,
tempDir: tempDir,
siegfried: Siegfried{surl: siegfried},
indexer: indexer,
crawlOK: crawlOK,
crawlError: crawlError,
crawlErrorNew: crawlErrorNew,
metaTimeout: metaTimeout,
metaWorkers: metaWorkers,
metaPageSize: metaPageSize,
bannerTimeout: bannerTimeout,
bannerWorkers: bannerWorkers,
bannerPageSize: bannerPageSize,
db: db,
workers: workers,
pageSize: pageSize,
schema: schema,
tempDir: tempDir,
siegfried: Siegfried{surl: siegfried},
indexer: indexer,
crawlOK: crawlOK,
crawlError: crawlError,
crawlErrorNew: crawlErrorNew,
metaTimeout: metaTimeout,
metaWorkers: metaWorkers,
metaPageSize: metaPageSize,
bannerTimeout: bannerTimeout,
bannerWorkers: bannerWorkers,
bannerPageSize: bannerPageSize,
bannerTimestamp: bannerTimestamp,
bannerFolder: bannerFolder,
ffmpeg: ffmpeg,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment