package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Jun 10, 2019
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
func NewSyncState() *memorySyncState
ID creates the MessageID for a Message
Turns an ECSDA PublicKey to a PeerID
type SyncState interface {
Get(group GroupID, id MessageID, peer PeerID) (State, error)
Set(group GroupID, id MessageID, peer PeerID, newState State) error
Remove(group GroupID, id MessageID, peer PeerID) error
Map(process func(GroupID, MessageID, PeerID, State) State) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.