Documentation ¶
Overview ¶
Package state contains everything related to the synchronization state for MVDS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrStateNotFound = errors.New("state not found")
)
Functions ¶
func NewPersistentSyncState ¶ added in v0.0.26
func NewSyncState ¶
func NewSyncState() *memorySyncState
Types ¶
type RecordType ¶ added in v0.0.16
type RecordType int
RecordType is the type for a specific record, either `OFFER`, `REQUEST` or `MESSAGE`.
const ( OFFER RecordType = iota REQUEST MESSAGE )
type State ¶
type State struct { Type RecordType SendCount uint64 SendEpoch int64 // GroupID is optional, thus nullable GroupID *GroupID PeerID PeerID MessageID MessageID }
State is a struct used to store a records state(https://github.com/status-im/bigbrother-specs/blob/master/data_sync/mvds.md#state).
Source Files ¶
Click to show internal directories.
Click to hide internal directories.