added refresh db capability and did some refactoring
This commit is contained in:
@@ -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",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user