Begin caching, implement commands

This commit is contained in:
2023-12-05 16:56:47 -05:00
parent 47300dbf89
commit a8aa8af3d3
14 changed files with 432 additions and 198 deletions

16
internal/config/config.go Normal file
View File

@ -0,0 +1,16 @@
package config
import "time"
type Config struct {
GitlabHost string `yaml:"gitlabHost" json:"gitlabHost"`
GitlabToken string `yaml:"gitlabToken" json:"gitlabToken"`
LogLevel string `yaml:"logLevel" json:"logLevel" enum:"info,warn,debug,error"`
ProjectPath string `yaml:"projectPath" json:"projectPath"`
Cache cacheConfig `yaml:"cache" json:"cache"`
}
type cacheConfig struct {
Ttl time.Duration `yaml:"ttl" json:"ttl"`
File string
}