about summary refs log tree commit diff stats
path: root/internal/config/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/structs.go')
-rw-r--r--internal/config/structs.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/config/structs.go b/internal/config/structs.go
index dd79303..8c69733 100644
--- a/internal/config/structs.go
+++ b/internal/config/structs.go
@@ -25,13 +25,14 @@ type Web struct {
 	Environment           string            `comment:"Affects logging parameters. One of 'development' or 'production'"`
 	ExtraHeadHTML         string            `comment:"Content to add to HTML <head>. Can be used to override styling, add scripts, etc."`
 	Headers               map[string]string `comment:"Extra headers to send with HTTP requests"`
+	LogRequests           bool              `comment:"Whether to log incoming HTTP requests"`
 }
 
 type Importer struct {
 	Sources   map[string]*Source
 	LowMemory bool      `comment:"Use less memory at the expense of import performance"`
 	Timeout   Duration  `comment:"Abort fetch and import process for all jobs if it takes longer than this value."`
-	UpdateAt  LocalTime `comment:"Local time of day to run fetch/import process"`
+	UpdateAt  LocalTime `comment:"Time of day (UTC) to run fetch/import process"`
 }
 
 type Source struct {
@@ -48,6 +49,12 @@ type Source struct {
 	Timeout    Duration     `comment:"Abort import if it takes longer than this."`
 	OutputPath string       `comment:"(Fetcher=channel) Path under ./result symlink to folder containing {options,packages}.json."`
 	Repo       Repository   `comment:"Used to generate declaration/definition links"`
+	Programs   ProgramsDB   `comment:"Used to enable searching for programs in multi-program packages"`
+}
+
+type ProgramsDB struct {
+	Enable    bool   `comment:"Enable searching for programs in multi-program packages"`
+	Attribute string `comment:"Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file"`
 }
 
 func (source *Source) String() string {