added refresh db capability and did some refactoring

This commit is contained in:
2026-04-14 22:46:23 -06:00
parent 36f856cb25
commit 5687f7f992
5 changed files with 70 additions and 33 deletions
+6 -4
View File
@@ -1,13 +1,15 @@
package main
type Config struct {
RepoPath string
MirrorURL string
MirrorRoot string
MirrorURL string
Port string
}
func NewConfig() *Config {
return &Config{
RepoPath: "/home/ewpt3ch/dev/pacman-cache-server/tmprepo",
MirrorURL: "https://us.mirrors.cicku.me/archlinux/",
MirrorRoot: "/home/ewpt3ch/dev/pacman-cache-server/tmprepo",
MirrorURL: "https://us.mirrors.cicku.me/archlinux/",
Port: "8090",
}
}