s3 adapter

This commit is contained in:
2025-02-24 18:10:41 +08:00
parent 9b8f61e8e1
commit 9bf07d3127
6 changed files with 176 additions and 18 deletions

View File

@ -10,8 +10,17 @@ type RecordConfig struct {
}
type StorageConfig struct {
Type string `mapstructure:"type"`
Path string `mapstructure:"path"`
Type string `mapstructure:"type"`
Path string `mapstructure:"path"`
S3 S3Config `mapstructure:"s3"`
}
type S3Config struct {
Region string `mapstructure:"region"`
Bucket string `mapstructure:"bucket"`
Prefix string `mapstructure:"prefix"`
AkId string `mapstructure:"akId"`
AkSec string `mapstructure:"akSec"`
}
type DeviceMapping struct {