Documentation
¶
Index ¶
- type AppConfig
- type DBConfig
- func (dbcfg *DBConfig) GetConfigName() string
- func (dbcfg *DBConfig) GetConfigPath() string
- func (dbcfg *DBConfig) GetDB() *sql.DB
- func (dbcfg *DBConfig) GetDBDir() string
- func (dbcfg *DBConfig) GetDBFilename() string
- func (dbcfg *DBConfig) GetDBPassword() string
- func (dbcfg *DBConfig) GetLog() logger.LoggerInterface
- func (dbcfg *DBConfig) InitConfig(v *viper.Viper)
- type Flags
- type PprofConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
EncryptionCurrentVersion string
MaxConcurrentConnections int
ShaSumsURL string
UrlFile string
NumParts int
PartsDir string
PrefixParts string
Proxy string
KeepParts bool
DecryptManifest bool
ManifestFile string
ManifestTimestamp int64
DownloadOnly bool
AssembleOnly bool
OutputFile string
Verbose bool
DecryptedContent []byte
ConfigName string
ConfigPath string
Log logger.LoggerInterface
BindFlagsToViper func(string, logger.LoggerInterface)
}
func NewAppConfig ¶
func (*AppConfig) InitConfig ¶
type DBConfig ¶
type DBConfig struct {
DB *sql.DB
DBDir string
DBFilename string
DBPassword string
ConfigName string
ConfigPath string
Log logger.LoggerInterface
}
func NewDBConfig ¶
func (*DBConfig) GetConfigName ¶
func (*DBConfig) GetConfigPath ¶
func (*DBConfig) GetDBFilename ¶
func (*DBConfig) GetDBPassword ¶
func (*DBConfig) GetLog ¶
func (dbcfg *DBConfig) GetLog() logger.LoggerInterface
func (*DBConfig) InitConfig ¶
type Flags ¶
type Flags struct {
MaxConcurrentConnections string
ShaSumsURL string
UrlFile string
NumParts string
PartsDir string
PrefixParts string
Proxy string
KeepParts string
DecryptManifest string
ManifestFile string
DownloadOnly string
AssembleOnly string
OutputFile string
EnablePprof string
Verbose string
}
type PprofConfig ¶
type PprofConfig struct {
EnablePprof bool
SecretToken string
PprofPort string
CertPath string
KeyPath string
BaseURL string
ConfigName string
ConfigPath string
Log logger.LoggerInterface
}
func NewPprofConfig ¶
func NewPprofConfig(v *viper.Viper) *PprofConfig
func (*PprofConfig) InitConfig ¶
func (ppcfg *PprofConfig) InitConfig(v *viper.Viper)
Click to show internal directories.
Click to hide internal directories.