config.go 716 B

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