config.go 598 B

1234567891011121314151617181920
  1. package main
  2. type AppConfig struct {
  3. *WatchingConfig `mapstructure:"watching"`
  4. *MinIoConfig `mapstructure:"minio"`
  5. }
  6. type WatchingConfig struct {
  7. Dir string `mapstructure:"dir"`
  8. TmpDir string `mapstructure:"tmpDir"`
  9. UploadFileInterval int32 `mapstructure:"uploadFileInterval"`
  10. }
  11. type MinIoConfig struct {
  12. Addr string `mapstructure:"addr"`
  13. Bucket string `mapstructure:"bucket"`
  14. AccessKeyID string `mapstructure:"accessKeyID"`
  15. SecretAccessKey string `mapstructure:"secretAccessKey"`
  16. UseSSL bool `mapstructure:"useSSL"`
  17. }