package
1.1.5
Repository: https://github.com/textileio/go-threads.git
Documentation: pkg.go.dev

# README

Datastore backed Logstore

Work pretty much inspired by go-libp2p-peerstore great implementation.

This is a go-datastore backed implementation of go-threads/core/logstore:

  • AddrBook
  • HeadBook
  • KeyBook

For testing, two go-datastore implementation are table-tested:

Tests leverage the /test suites used also for in-memory implementation.

# Functions

DefaultOpts returns the default options for a persistent peerstore, with the full-purge GC algorithm: * Cache size: 1024.
NewAddrBook initializes a new datastore-backed address book.
NewHeadBook returns a new HeadBook backed by a datastore.
NewKeyBook returns a new key book for storing public and private keys of (thread.ID, peer.ID) pairs with durable guarantees by store.
NewLogstore creates a logstore backed by the provided persistent datastore.
No description provided by the author

# Constants

No description provided by the author

# Variables

Define if storage will accept empty dumps.

# Structs

No description provided by the author
Configuration object for datastores.