func GetCfgPath() string
func WriteFile(path string, content []byte)
type Config struct { RootPath string `yaml:"RootPath"` TokenRefreshRate int64 `yaml:"TokenRefreshRate"` FileRefreshRate int64 `yaml:"FileRefreshRate"` DownloadTimeout int64 `yaml:"DownloadTimeout"` TokenBase64 string `yaml:"TokenBase64"` }
func ReadConfig(_path string) *Config
func (cfg Config) Bytes() (b []byte)