First pass implementation of an SQLite backing store for fetched opportunities
This commit is contained in:
1 parent
9b0e6dccfe
commit
045492a148
29 files changed
+3132
-9
No files matched your search
@@ -34,6 +34,7 @@ is kept.
|
||||
|---|---|---|---|
|
||||
| `logging.level` | string | `warn` | One of `debug`, `info`, `warn`, `error` |
|
||||
| `logging.file` | string | | Log file for `fetch service` (unless `--foreground`); other commands log to the terminal |
|
||||
| `database.file` | string | | Path to the SQLite database file, used by the `migrate` commands |
|
||||
| `sources.<source>.enabled` | bool | `false` | For every source |
|
||||
| `sources.<source>.interval` | duration | `10m` | For every source; e.g. `30s`, `1h` |
|
||||
| `sources.find_a_tender.api_root` | string | `https://www.find-tender.service.gov.uk/api/1.0` | URL of the Find a Tender API |
|
||||
@@ -49,6 +50,8 @@ Example `config.yaml`:
|
||||
logging:
|
||||
level: info
|
||||
file: ""
|
||||
database:
|
||||
file: ./jobsearch.db
|
||||
sources:
|
||||
find_a_tender:
|
||||
enabled: true
|
||||
@@ -126,6 +129,7 @@ Nothing in `section.go` needs changing.
|
||||
| File | Contents |
|
||||
|---|---|
|
||||
| `config.go` | `JobSearchConfig`, defaults, Viper loading, text output |
|
||||
| `conf_database.go` | `database` section |
|
||||
| `load.go` | `Init`, `.env` and config file loading |
|
||||
| `modify.go` | `StoreValue` and `PurgeValue` |
|
||||
| `section.go` | The `Section` interface and the struct tag reflection shared by every section |
|
||||
|
||||
Reference in new issue
Block a user