18 lines
387 B
Go
18 lines
387 B
Go
package storage
|
||
|
||
type Config struct {
|
||
Type string // local, s3
|
||
LocalPath string // for local
|
||
Secret string // for signing
|
||
BaseURL string // public url prefix
|
||
// S3-compatible config
|
||
AccessKey string
|
||
SecretKey string
|
||
Region string
|
||
Bucket string
|
||
Endpoint string
|
||
PathStyle bool
|
||
// CheckOnBoot 启动时检查 bucket 可用性(仅 s3)。
|
||
CheckOnBoot bool
|
||
}
|