File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,17 @@ type Regex struct {
23
23
}
24
24
25
25
type Config struct {
26
- keys map [string ]time.Time
27
- db * bolt.DB
28
- Keywords []* Keyword // A list of keywords to search for in the data.
29
- Regexes []* Regex // A list of regular expressions to test against data.
30
- DbFile string `json:"database_file"` // File to use for the Store database.
31
- MaxSize int `json:"max_size"` // Do not save files larger than this many bytes.
32
- MaxTime int `json:"max_time"` // Max time, in seconds, to store previously downloaded keys.
33
- Sleep int // Time, in seconds, to wait between each run.
34
- GhToken string `json:"github_token"` // Github API token
35
- Save bool
26
+ keys map [string ]time.Time
27
+ db * bolt.DB
28
+ Keywords []* Keyword // A list of keywords to search for in the data.
29
+ Regexes []* Regex // A list of regular expressions to test against data.
30
+ DbFile string `json:"database_file"` // File to use for the Store database.
31
+ MaxSize int `json:"max_size"` // Do not save files larger than this many bytes.
32
+ MaxTime int `json:"max_time"` // Max time, in seconds, to store previously downloaded keys.
33
+ Sleep int // Time, in seconds, to wait between each run.
34
+ GhToken string `json:"github_token"` // Github API token
35
+ Save bool
36
+ LocalPath string `json:"local_path"`
36
37
}
37
38
38
39
func newConfig () Config {
You can’t perform that action at this time.
0 commit comments