Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusDB = "seq" SyncSeq = "sync_seq" DefaultType = "_doc" )
sync status
View Source
const Mapping = `` /* 476-byte string literal not displayed */
Mapping block mapping
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastSyncSeq ¶
type LastSyncSeq struct {
SyncSeq int64 `json:"sync_seq"`
}
LastSyncSeq 同于记录同步的seq
type LastSyncSeqRecord ¶
type LastSyncSeqRecord struct {
*db.IKey
*db.Op
Seq *LastSyncSeq
}
LastSyncSeqRecord 用于db 记录 LastSyncSeq
func NewLastRecord ¶
func NewLastRecord(seq int64) *LastSyncSeqRecord
NewLastRecord create LastSyncSeqRecord
type Seq ¶
type Seq struct {
// 同于记录同步的seq, 如果切换节点可以用上, 不切换节点一直和 Number 一致
SyncSeq int `json:"sync_seq"`
// 设置从何处同步的
From string `json:"from"`
Number int `json:"number"`
// Seq 的具体信息
Hash string `json:"hash"`
Type int `json:"type"`
BlockDetail []byte `json:"block_detall"`
}
Seq 记录同步好的block 信息: id = sync_seq
Click to show internal directories.
Click to hide internal directories.