stores

package
v1.10.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Overview

stores registers constructors for OrbitDB stores

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLoad

type EventLoad struct {
	Address address.Address
	Heads   []ipfslog.Entry
}

EventNewPeer An event sent when data has been loaded

func NewEventLoad

func NewEventLoad(addr address.Address, heads []ipfslog.Entry) *EventLoad

NewEventLoad Creates a new EventLoad event

type EventNewPeer

type EventNewPeer struct {
	Peer p2pcore.PeerID
}

EventNewPeer An event sent when a new peer is discovered on the pubsub channel

func NewEventNewPeer

func NewEventNewPeer(p p2pcore.PeerID) *EventNewPeer

NewEventNewPeer Creates a new EventNewPeer event

type EventReady

type EventReady struct {
	Address address.Address
	Heads   []ipfslog.Entry
}

EventNewPeer 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

type EventReplicate struct {
	Address address.Address
	Hash    cid.Cid
}

func NewEventReplicate added in v1.3.0

func NewEventReplicate(addr address.Address, c cid.Cid) *EventReplicate

type EventReplicateProgress

type EventReplicateProgress struct {
	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

type EventReplicated struct {
	Address   address.Address
	LogLength int
}

EventNewPeer An event sent when data has been replicated

func NewEventReplicated

func NewEventReplicated(addr address.Address, logLength int) *EventReplicated

NewEventReplicated Creates a new EventReplicated event

type EventWrite

type EventWrite struct {
	Address address.Address
	Entry   ipfslog.Entry
	Heads   []ipfslog.Entry
}

EventNewPeer An event sent when something has been written

func NewEventWrite

func NewEventWrite(addr address.Address, e ipfslog.Entry, heads []ipfslog.Entry) *EventWrite

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
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 the replication logic for an OrbitDB store
replicator is a package managing the replication of data among peers replicator the replication logic for an OrbitDB store

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL