Documentation
¶
Overview ¶
Package configs define and load all configurations. It depends on no othe GCSE packages.
Index ¶
- Constants
- Variables
- func CrawlerDBFsPath() sophie.FsPath
- func CrawlerDBPath() villa.Path
- func DBOutSegments() utils.Segments
- func DataRootFsPath() sophie.FsPath
- func DocsDBFsPath() sophie.FsPath
- func DocsDBPath() string
- func FileCacheBoltPath() string
- func ImportSegments() utils.Segments
- func IndexPath() villa.Path
- func IndexSegments() utils.Segments
- func SetTestingDataPath()
- func StoreBoltPath() string
- func ToCrawlFsPath() sophie.FsPath
- func ToCrawlPath() string
Constants ¶
View Source
const ( FnPackage = "package" FnPerson = "person" // key: RawString, value: DocInfo FnDocs = "docs" FnNewDocs = "newdocs" FnStore = "store" )
Variables ¶
View Source
var ( ServerAddr = ":8080" ServerRoot = villa.Path("./service/web") LoadTemplatePass = "" AutoLoadTemplate = false DataRoot = villa.Path("./data/") // producer: server, consumer: crawler ImportPath villa.Path // producer: crawler, consumer: indexer DBOutPath villa.Path // configures of crawler CrawlByGodocApi = true CrawlGithubUpdate = true CrawlerDuePerRun = 1 * time.Hour CrawlerGithubClientID = "" CrawlerGithubClientSecret = "" CrawlerGithubPersonal = "" BiWebPath = "/bi" NonCrawlHosts = stringsp.Set{} NonStorePackageRegexps = []string{} StoreDAddr = ":8081" LogDir = "/tmp" )
Functions ¶
func CrawlerDBFsPath ¶
func CrawlerDBPath ¶
func CrawlerDBPath() villa.Path
func DBOutSegments ¶
func DataRootFsPath ¶
func DocsDBFsPath ¶
func DocsDBPath ¶
func DocsDBPath() string
func FileCacheBoltPath ¶
func FileCacheBoltPath() string
func ImportSegments ¶
Returns the segments imported from web site.
func IndexSegments ¶
func SetTestingDataPath ¶
func SetTestingDataPath()
func StoreBoltPath ¶
func StoreBoltPath() string
func ToCrawlFsPath ¶
func ToCrawlPath ¶
func ToCrawlPath() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.