Discover Packages
github.com/Willyham/gospider
cmd
package
Version:
v0.0.0-...-04f6dc1
Opens a new window with list of versions in this module.
Published: Oct 16, 2017
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
RootCmd represents the base command when called without any subcommands
Execute adds all child commands to the root command and sets flags appropriately.
This is called by main.main(). It only needs to happen once to the rootCmd.
type Config struct {
Root string `mapstructure:"root"`
IgnoreRobots bool `mapstructure:"ignore-robots"`
Concurrency int `mapstructure:"concurrency"`
Timeout time .Duration `mapstructure:"timeout"`
RootURL *url .URL
}
Config holds all configuation needed to start a spider.
NewConfig creates a config from a deserialized map. Best used with
viper.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.