Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "openserp", Short: "Open SERP", Long: `Search via Google, Yandex and Baidu`, Version: version, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { core.InitLogger(appConf.IsVerbose, appConf.IsDebug) err := initializeConfig(cmd) logrus.Debugf("Config: %+v", appConf) return err }, }
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
Host string
Port int
Timeout int
ConfigPath string
IsBrowserHead bool `mapstructure:"head"`
IsLeaveHead bool `mapstructure:"leave_head"`
IsLeakless bool `mapstructure:"leakless"`
IsDebug bool `mapstructure:"debug"`
IsVerbose bool `mapstructure:"verbose"`
IsRawRequests bool `mapstructure:"raw_requests"`
}
Click to show internal directories.
Click to hide internal directories.