config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 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 ResolvCacheCfg

type ResolvCacheCfg struct {
	ExpireSecs int
	TraceFile  string
	DumpFile   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

type ResolvCheckAPICfg

type ResolvCheckAPICfg struct {
	Enable bool
	Log    bool
}

ResolvCheckAPICfg stores event service preferences

func (*ResolvCheckAPICfg) BindViper

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

BindViper setups posix flags for commandline configuration and bind to viper

func (ResolvCheckAPICfg) Dump

func (cfg ResolvCheckAPICfg) Dump() string

Dump configuration

func (ResolvCheckAPICfg) Empty

func (cfg ResolvCheckAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*ResolvCheckAPICfg) FromViper

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

FromViper fill values from viper

func (*ResolvCheckAPICfg) SetPFlags

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

SetPFlags setups posix flags for commandline configuration

func (ResolvCheckAPICfg) Validate

func (cfg ResolvCheckAPICfg) Validate() error

Validate checks that configuration is ok

type ResolvCollectAPICfg

type ResolvCollectAPICfg struct {
	Enable bool
	Log    bool
}

ResolvCollectAPICfg stores event service preferences

func (*ResolvCollectAPICfg) BindViper

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

BindViper setups posix flags for commandline configuration and bind to viper

func (ResolvCollectAPICfg) Dump

func (cfg ResolvCollectAPICfg) Dump() string

Dump configuration

func (ResolvCollectAPICfg) Empty

func (cfg ResolvCollectAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*ResolvCollectAPICfg) FromViper

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

FromViper fill values from viper

func (*ResolvCollectAPICfg) SetPFlags

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

SetPFlags setups posix flags for commandline configuration

func (ResolvCollectAPICfg) Validate

func (cfg ResolvCollectAPICfg) 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