Skip to content

Commit 39343ad

Browse files
Add LocalPath to config.
1 parent b98d667 commit 39343ad

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

config.go

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,17 @@ type Regex struct {
2323
}
2424

2525
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"`
3637
}
3738

3839
func newConfig() Config {

0 commit comments

Comments
 (0)