configs

package
v0.0.0-...-e2ffb22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2018 License: BSD-2-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package configs define and load all configurations. It depends on no othe GCSE packages.

Index

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 CrawlerDBFsPath() sophie.FsPath

func CrawlerDBPath

func CrawlerDBPath() villa.Path

func DBOutSegments

func DBOutSegments() utils.Segments

func DataRootFsPath

func DataRootFsPath() sophie.FsPath

func DocsDBFsPath

func DocsDBFsPath() sophie.FsPath

func DocsDBPath

func DocsDBPath() string

func FileCacheBoltPath

func FileCacheBoltPath() string

func ImportSegments

func ImportSegments() utils.Segments

Returns the segments imported from web site.

func IndexPath

func IndexPath() villa.Path

func IndexSegments

func IndexSegments() utils.Segments

func SetTestingDataPath

func SetTestingDataPath()

func StoreBoltPath

func StoreBoltPath() string

func ToCrawlFsPath

func ToCrawlFsPath() sophie.FsPath

func ToCrawlPath

func ToCrawlPath() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL