config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportConfigVars added in v1.2.0

func ExportConfigVars()

ExportConfigVars export some configuration variables to expvar

Types

type ArrayFlags

type ArrayFlags struct {
	// contains filtered or unexported fields
}

ArrayFlags contains an array of command flags

func (*ArrayFlags) Set

func (i *ArrayFlags) Set(value string) error

Set is used to add a value to the flag array

func (*ArrayFlags) String

func (i *ArrayFlags) String() string

String return the string value of a flag array

func (*ArrayFlags) Values

func (i *ArrayFlags) Values() []string

Values return the values of a flag array

type Config added in v1.2.0

type Config struct {
	ListenAddr     string
	PublicURL      string
	DB             string
	Delay          time.Duration
	Timeout        time.Duration
	CacheRetention time.Duration
	Outputs        ArrayFlags
	Plugins        ArrayFlags
	Filters        ArrayFlags
	ImportFilename string
	ClearCache     bool
	ShowVersion    bool
	LogPretty      bool
	LogLevel       string
	LogOutput      string
	SentryDSN      string
}

Config contain global configuration

func Get added in v1.2.0

func Get() Config

Get global configuration

Jump to

Keyboard shortcuts

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