Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamedMultiWriterStringSetCRDT ¶
type NamedMultiWriterStringSetCRDT struct { GraphManager gsync.GossipMultiWriterIPNS Set map[string]struct{} Ipfs *LockedIPFS // contains filtered or unexported fields }
NamedMultiWriterStringSetCRDT Is a string set CRDT that is updated by gossiping about the named structure (e.g. the structure is referenced by UUID or Hash(PublicKey))
func (*NamedMultiWriterStringSetCRDT) AddElem ¶
func (mwSet *NamedMultiWriterStringSetCRDT) AddElem(elem string) error
AddElem adds an element to the set
func (*NamedMultiWriterStringSetCRDT) GetSet ¶
func (mwSet *NamedMultiWriterStringSetCRDT) GetSet() map[string]struct{}
GetSet returns the map containing the set elements. Do not modify the contents.
type OverwriteWithConflicts ¶
type OverwriteWithConflicts struct {
GraphManager gsync.GossipMultiWriterIPNS
}
OverwriteWithConflicts Allows for gossip based updating of a value where simultaneous updates are preserved as conflicts
func (*OverwriteWithConflicts) GetLatestVersions ¶
func (overwriter *OverwriteWithConflicts) GetLatestVersions() []cid.Cid
GetLatestVersions Returns all of the conflicting values
func (*OverwriteWithConflicts) UpdateVersion ¶
func (overwriter *OverwriteWithConflicts) UpdateVersion(newCid cid.Cid)
UpdateVersion Overwrites the current value with a new one
type StringSetAdd ¶
type StringSetAdd struct {
// contains filtered or unexported fields
}
StringSetAdd Is the operation for adding a string to the set
Click to show internal directories.
Click to hide internal directories.