git-project-manager/internal/config/config.go

17 lines
474 B
Go
Raw Normal View History

2023-12-05 21:56:47 +00:00
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
}