mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 14:28:49 +01:00
♻️ 重构数据仓库同步 Fix https://github.com/siyuan-note/siyuan/issues/6427
This commit is contained in:
parent
f988805c93
commit
1eaa791c1d
3 changed files with 17 additions and 17 deletions
|
|
@ -23,6 +23,8 @@ type Sync struct {
|
|||
Synced int64 `json:"synced"` // 最近同步时间
|
||||
Stat string `json:"stat"` // 最近同步统计信息
|
||||
GenerateConflictDoc bool `json:"generateConflictDoc"` // 云端同步冲突时是否生成冲突文档
|
||||
Provider int `json:"provider"` // 云端存储服务提供者,0:思源官方,1:S3 协议对象存储服务
|
||||
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 // 存储空间
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue