This commit is contained in:
Liang Ding 2022-10-31 22:55:20 +08:00
parent f988805c93
commit 1eaa791c1d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 17 additions and 17 deletions

View file

@ -23,6 +23,8 @@ type Sync struct {
Synced int64 `json:"synced"` // 最近同步时间
Stat string `json:"stat"` // 最近同步统计信息
GenerateConflictDoc bool `json:"generateConflictDoc"` // 云端同步冲突时是否生成冲突文档
Provider int `json:"provider"` // 云端存储服务提供者0思源官方1S3 协议对象存储服务
S3 *S3 `json:"s3"` // S3 协议对象存储服务配置
}
func NewSync() *Sync {
@ -31,5 +33,14 @@ func NewSync() *Sync {
Enabled: false,
Mode: 1,
GenerateConflictDoc: false,
Provider: 0,
}
}
type S3 struct {
Endpoint string // 服务端点
AccessKey string // Access Key
SecretKey string // Secret Key
Regin string // 存储区域
Bucket string // 存储空间
}