Documentation ¶
Overview ¶
stores registers constructors for OrbitDB stores
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Events = []interface{}{ new(EventWrite), new(EventReady), new(EventReplicateProgress), new(EventLoad), new(EventReplicated), new(EventReplicate), }
Functions ¶
This section is empty.
Types ¶
type EventLoadProgress ¶ added in v1.15.0
type EventLoadProgress struct { Address address.Address Hash cid.Cid Entry ipfslog.Entry // contains filtered or unexported fields }
func NewEventLoadProgress ¶ added in v1.15.0
type EventNewPeer ¶
EventNewPeer An event sent when a new peer is discovered on the pubsub channel
func NewEventNewPeer ¶
func NewEventNewPeer(p peer.ID) EventNewPeer
NewEventNewPeer Creates a new EventNewPeer event
type EventReady ¶
EventReady An event sent when the store is ready
func NewEventReady ¶
func NewEventReady(addr address.Address, heads []ipfslog.Entry) EventReady
NewEventReady Creates a new EventReady event
type EventReplicate ¶ added in v1.3.0
func NewEventReplicate ¶ added in v1.3.0
func NewEventReplicate(addr address.Address, c cid.Cid) EventReplicate
type EventReplicateProgress ¶
type EventReplicateProgress struct { Max int Progress int Address address.Address Hash cid.Cid Entry ipfslog.Entry ReplicationStatus replicator.ReplicationInfo }
EventReplicateProgress An event containing the current replication progress.
func NewEventReplicateProgress ¶
func NewEventReplicateProgress(addr address.Address, h cid.Cid, e ipfslog.Entry, replicationStatus replicator.ReplicationInfo) EventReplicateProgress
NewEventReplicateProgress Creates a new EventReplicateProgress event
type EventReplicated ¶
EventReplicated An event sent when data has been replicated
func NewEventReplicated ¶
func NewEventReplicated(addr address.Address, entries []ipfslog.Entry, logLength int) EventReplicated
NewEventReplicated Creates a new EventReplicated event
type EventWrite ¶
EventWrite An event sent when something has been written
func NewEventWrite ¶
NewEventWrite Creates a new EventWrite event
Directories ¶
Path | Synopsis |
---|---|
basestore defines a set of operations common to the different store types
|
basestore defines a set of operations common to the different store types |
documentstore a document store for OrbitDB
|
documentstore a document store for OrbitDB |
eventlogstore an event log store for OrbitDB
|
eventlogstore an event log store for OrbitDB |
kvstore a key value store for OrbitDB
|
kvstore a key value store for OrbitDB |
operation a serializable operation that can be appended to IPFS log
|
operation a serializable operation that can be appended to IPFS log |
replicator is a package managing the replication of data among peers
|
replicator is a package managing the replication of data among peers |
Click to show internal directories.
Click to hide internal directories.