config.go 896 B

12345678910111213141516171819202122232425
  1. /*
  2. * @Author: a624669980@163.com a624669980@163.com
  3. * @Date: 2022-12-13 11:05:05
  4. * @LastEditors: a624669980@163.com a624669980@163.com
  5. * @LastEditTime: 2022-12-13 11:05:13
  6. * @FilePath: /drive/internal/driver/config.go
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. package driver
  10. type Config struct {
  11. Name string `json:"name"`
  12. LocalSort bool `json:"local_sort"`
  13. OnlyLocal bool `json:"only_local"`
  14. OnlyProxy bool `json:"only_proxy"`
  15. NoCache bool `json:"no_cache"`
  16. NoUpload bool `json:"no_upload"`
  17. NeedMs bool `json:"need_ms"` // if need get message from user, such as validate code
  18. DefaultRoot string `json:"default_root"`
  19. CheckStatus bool
  20. }
  21. func (c Config) MustProxy() bool {
  22. return c.OnlyProxy || c.OnlyLocal
  23. }