Documentation
¶
Overview ¶
orbitdb implements the OrbitDB interface
Index ¶
- Constants
- Variables
- func NewOrbitDB(ctx context.Context, ipfs coreiface.CoreAPI, options *NewOrbitDBOptions) (iface.OrbitDB, error)
- type CreateDBOptions
- type CreateDocumentDBOptions
- type DetermineAddressOptions
- type DocumentStore
- type EventExchangeHeads
- type EventLogStore
- type IndexConstructor
- type KeyValueStore
- type NewOrbitDBOptions
- type OnWritePrototype
- type OrbitDB
- type Store
- type StoreConstructor
- type StoreIndex
- type StreamOptions
Constants ¶
const CBORReadDefaultTimeout = time.Second * 30
Variables ¶
var AtlasManifestEnvelope = atlas.BuildEntry(utils.ManifestEnvelope{}). StructMap(). AddField("Manifest", atlas.StructMapEntry{SerialName: "manifest"}). AddField("SkipManifest", atlas.StructMapEntry{SerialName: "skip_manifest"}). AddField("Address", atlas.StructMapEntry{SerialName: "address"}). AddField("ManifestType", atlas.StructMapEntry{SerialName: "manifest/type"}). AddField("Type", atlas.StructMapEntry{SerialName: "type"}). AddField("Name", atlas.StructMapEntry{SerialName: "name"}). AddField("AccessController", atlas.StructMapEntry{SerialName: "access_controller"}). Complete()
Functions ¶
func NewOrbitDB ¶
func NewOrbitDB(ctx context.Context, ipfs coreiface.CoreAPI, options *NewOrbitDBOptions) (iface.OrbitDB, error)
NewOrbitDB Creates a new OrbitDB instance with default access controllers and store types
Types ¶
type CreateDBOptions ¶
type CreateDBOptions = iface.CreateDBOptions
CreateDBOptions An alias of the type defined in the iface package
type CreateDocumentDBOptions ¶
type CreateDocumentDBOptions = iface.CreateDocumentDBOptions
CreateDocumentDBOptions An alias of the type defined in the iface package
type DetermineAddressOptions ¶
type DetermineAddressOptions = iface.DetermineAddressOptions
DetermineAddressOptions An alias of the type defined in the iface package
type DocumentStore ¶
type DocumentStore = iface.DocumentStore
DocumentStore An alias of the type defined in the iface package
type EventExchangeHeads ¶ added in v1.23.10
type EventExchangeHeads struct { Peer peer.ID Message *iface.MessageExchangeHeads }
func NewEventExchangeHeads ¶ added in v1.23.10
func NewEventExchangeHeads(p peer.ID, msg *iface.MessageExchangeHeads) EventExchangeHeads
type EventLogStore ¶
type EventLogStore = iface.EventLogStore
EventLogStore An alias of the type defined in the iface package
type IndexConstructor ¶
type IndexConstructor = iface.IndexConstructor
IndexConstructor An alias of the type defined in the iface package
type KeyValueStore ¶
type KeyValueStore = iface.KeyValueStore
KeyValueStore An alias of the type defined in the iface package
type NewOrbitDBOptions ¶
type NewOrbitDBOptions struct { ID *string PeerID peer.ID Directory *string Keystore keystore.Interface Cache cache.Interface Identity *idp.Identity CloseKeystore func() error Logger *zap.Logger Tracer trace.Tracer DirectChannelFactory iface.DirectChannelFactory PubSub iface.PubSubInterface MessageMarshaler iface.MessageMarshaler EventBus event.Bus }
NewOrbitDBOptions Options for a new OrbitDB instance
type OnWritePrototype ¶
type OnWritePrototype = iface.OnWritePrototype
OnWritePrototype An alias of the type defined in the iface package
type StoreConstructor ¶
type StoreConstructor = iface.StoreConstructor
StoreConstructor An alias of the type defined in the iface package
type StoreIndex ¶
type StoreIndex = iface.StoreIndex
StoreIndex An alias of the type defined in the iface package
type StreamOptions ¶
type StreamOptions = iface.StreamOptions
StreamOptions An alias of the type defined in the iface package
Directories
¶
Path | Synopsis |
---|---|
accesscontroller is a package handling permissions for OrbitDB stores
|
accesscontroller is a package handling permissions for OrbitDB stores |
ipfs
ipfs is an access controller
|
ipfs is an access controller |
orbitdb
orbitdb is an access controller for OrbitDB stores
|
orbitdb is an access controller for OrbitDB stores |
orbitdb-selfenroll
orbitdb is an access controller for OrbitDB stores
|
orbitdb is an access controller for OrbitDB stores |
simple
simple is an access controller without any persistence
|
simple is an access controller without any persistence |
utils
utils is a package containing tools related to access controllers
|
utils is a package containing tools related to access controllers |
Package address is a package for managing OrbitDB addresses
|
Package address is a package for managing OrbitDB addresses |
cache is a package defining the interface of cache factories
|
cache is a package defining the interface of cache factories |
cacheleveldown
cacheleveldown is a package returning level db data stores for OrbitDB
|
cacheleveldown is a package returning level db data stores for OrbitDB |
events defines an event subscriber and dispatcher Deprecated: use EventBus instead
|
events defines an event subscriber and dispatcher Deprecated: use EventBus instead |
iface package containing common structures and interfaces of orbitdb
|
iface package containing common structures and interfaces of orbitdb |
internal
|
|
Package messagemarshaler is a package for marshal messages
|
Package messagemarshaler is a package for marshal messages |
pubsub a publish subscribe client for IPFS PubSub
|
pubsub a publish subscribe client for IPFS PubSub |
directchannel
directchannel
|
directchannel |
oneonone
oneonone is a pubsub channel for communication between two peers
|
oneonone is a pubsub channel for communication between two peers |
pubsubcoreapi
pubsubcoreapi pubsub helpers using IPFS CoreAPI
|
pubsubcoreapi pubsub helpers using IPFS CoreAPI |
pubsubraw
pubsubraw pubsub helpers using IPFS Golang implementation
|
pubsubraw pubsub helpers using IPFS Golang implementation |
stores registers constructors for OrbitDB stores
|
stores registers constructors for OrbitDB stores |
basestore
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
documentstore a document store for OrbitDB
|
documentstore a document store for OrbitDB |
eventlogstore
eventlogstore an event log store for OrbitDB
|
eventlogstore an event log store for OrbitDB |
kvstore
kvstore a key value store for OrbitDB
|
kvstore a key value store for OrbitDB |
operation
operation a serializable operation that can be appended to IPFS log
|
operation a serializable operation that can be appended to IPFS log |
replicator
replicator is a package managing the replication of data among peers
|
replicator is a package managing the replication of data among peers |
tests is a package containing tests and tools for testing orbitdb
|
tests is a package containing tests and tools for testing orbitdb |
utils contains functions that are useful in some context
|
utils contains functions that are useful in some context |