Documentation
¶
Index ¶
- type CollectLogCfg
- func (cfg *CollectLogCfg) BindViper(v *viper.Viper, prefix string)
- func (cfg CollectLogCfg) Dump() string
- func (cfg CollectLogCfg) Empty() bool
- func (cfg *CollectLogCfg) FromViper(v *viper.Viper, prefix string)
- func (cfg *CollectLogCfg) SetPFlags(short bool, prefix string)
- func (cfg CollectLogCfg) Validate() error
- type ResolvCacheCfg
- func (cfg *ResolvCacheCfg) BindViper(v *viper.Viper, prefix string)
- func (cfg ResolvCacheCfg) Dump() string
- func (cfg ResolvCacheCfg) Empty() bool
- func (cfg *ResolvCacheCfg) FromViper(v *viper.Viper, prefix string)
- func (cfg *ResolvCacheCfg) SetPFlags(short bool, prefix string)
- func (cfg ResolvCacheCfg) Validate() error
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) 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) 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
Click to show internal directories.
Click to hide internal directories.