config

package
v0.0.0-...-770dba1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectLogCfg

type CollectLogCfg struct {
	File string
}

CollectLogCfg stores collect logger settings

func (*CollectLogCfg) BindViper

func (cfg *CollectLogCfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (CollectLogCfg) Dump

func (cfg CollectLogCfg) Dump() string

Dump configuration

func (CollectLogCfg) Empty

func (cfg CollectLogCfg) Empty() bool

Empty returns true if configuration is empty

func (*CollectLogCfg) FromViper

func (cfg *CollectLogCfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*CollectLogCfg) SetPFlags

func (cfg *CollectLogCfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (CollectLogCfg) Validate

func (cfg CollectLogCfg) Validate() error

Validate checks that configuration is ok

type ResolvCacheCfg

type ResolvCacheCfg struct {
	ExpireSecs int
	DumpLog    string
	DumpSecs   int
	Limits     resolvcache.Limits
}

ResolvCacheCfg stores repository settings

func (*ResolvCacheCfg) BindViper

func (cfg *ResolvCacheCfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (ResolvCacheCfg) Dump

func (cfg ResolvCacheCfg) Dump() string

Dump configuration

func (ResolvCacheCfg) Empty

func (cfg ResolvCacheCfg) Empty() bool

Empty returns true if configuration is empty

func (*ResolvCacheCfg) FromViper

func (cfg *ResolvCacheCfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*ResolvCacheCfg) SetPFlags

func (cfg *ResolvCacheCfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (ResolvCacheCfg) Validate

func (cfg ResolvCacheCfg) Validate() error

Validate checks that configuration is ok

Jump to

Keyboard shortcuts

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