about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-20 19:57:13 +0200
committerAlan Pearce2024-05-20 19:57:13 +0200
commit12d5d45a7894c3f6b6d598f9447de839d31436ef (patch)
tree179d57e1bf998184db3ee2df121904a37240356b /internal/config/config.go
parenta90419aa46ec42588f65e6327559ce479f9c5b67 (diff)
downloadsearchix-12d5d45a7894c3f6b6d598f9447de839d31436ef.tar.lz
searchix-12d5d45a7894c3f6b6d598f9447de839d31436ef.tar.zst
searchix-12d5d45a7894c3f6b6d598f9447de839d31436ef.zip
docs: add comments to default configuration
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 9ab7ab5..a0a05eb 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -1,7 +1,6 @@
 package config
 
 import (
-	"html/template"
 	"log/slog"
 	"maps"
 	"net/url"
@@ -94,30 +93,6 @@ func mustLocalTime(in string) (time LocalTime) {
 	return
 }
 
-type Web struct {
-	ContentSecurityPolicy CSP
-	ListenAddress         string
-	Port                  int
-	BaseURL               URL
-	SentryDSN             string
-	Environment           string
-	ExtraHeadHTML         template.HTML
-	Headers               map[string]string
-}
-
-type Importer struct {
-	Sources  map[string]*Source
-	Timeout  Duration
-	UpdateAt LocalTime
-}
-
-type Config struct {
-	DataPath string
-	LogLevel slog.Level
-	Web      *Web
-	Importer *Importer
-}
-
 var nixpkgs = Repository{
 	Type:  "github",
 	Owner: "NixOS",