config

package
v3.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportVars

func ExportVars(conf Config)

ExportVars export some configuration variables to expvar

Types

type Config

type Config struct {
	ListenAddr      string        `flag:"listen-addr" desc:"HTTP listen address" default:":8080"`
	PublicURL       string        `flag:"public-url" desc:"Public URL used for PSHB subscriptions" default:""`
	DB              string        `flag:"db" desc:"Database location" default:"boltdb://data.db"`
	Delay           time.Duration `flag:"delay" desc:"Delay between aggregations" default:"1m"`
	Timeout         time.Duration `flag:"timeout" desc:"Aggregation timeout" default:"5s"`
	CacheRetention  time.Duration `flag:"cache-retention" desc:"Cache retention duration" default:"72h"`
	FanOutDelay     time.Duration `flag:"fan-out-delay" desc:"Delay between deployment of each aggregator" default:"0s"`
	Plugins         []string      `flag:"plugin" desc:"Plugin to load" default:""`
	ImportFilename  string        `flag:"import" desc:"Import an OPML file at service startup" default:""`
	ClearCache      bool          `flag:"clear-cache" desc:"Clear cache at service startup" default:"false"`
	ClearConfig     bool          `flag:"clear-config" desc:"Clear configuration at service startup" default:"false"`
	LogPretty       bool          `flag:"log-pretty" desc:"Writes log using plain text format" default:"false"`
	LogLevel        string        `flag:"log-level" desc:"Logging level (debug, info, warn or error)" default:"info"`
	LogOutput       string        `flag:"log-output" desc:"Log output (STDOUT if empty)" default:""`
	PasswdFile      string        `flag:"passwd-file" desc:"Password file for basic HTTP authentication" default:".htpasswd"`
	SentryDSN       string        `flag:"sentry-dsn" desc:"Sentry DSN URL" default:""`
	ExploreProvider string        `flag:"explore-provider" desc:"Provider used to find RSS feeds" default:"default"`
}

Config contain global configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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