Categorygithub.com/eiri/dieci
modulepackage
0.0.0-20230305220548-7bfe347b5ddc
Repository: https://github.com/eiri/dieci.git
Documentation: pkg.go.dev

# README

Dieci

Build Status Go Report Card

Write-once data store.

Summary

This is an experimental immutable binary store with write-once policy infuenced by Plain 9 Venti storage system.

Name

Dieci is ten in Italian. The name somehow maybe related to venti which is twenty in Italian.

License

MIT

# Functions

NewBadgerBackend returns new instance of Badger backend for a given transaction.
NewDatalog returns a new datalog for a given transaction.
NewIndex returns a new index.
NewKey generates and returns new key.
NewPKI returns an instance of PKI interface.
NewScore returns a new score for a given data.
Open opens provided storage.
ValidateKey attempt to decode byte slice into sno ID to confirm that it's a valid key.

# Variables

ErrDecrypt is a shield error for any decyption failure.
ErrEncrypt is a shield error for any encyption failure.

# Structs

BadgerBackend implements backedn with BadgerDB.
Datalog represents a datastore's datalog.
Index represents an index of a datalog file.
PKI represent an interface to PKI service (e.g Valut).
Store represents a data store.

# Interfaces

Backend is an interface for Dieci backend implementation.

# Type aliases

Key is an alias for key representation.
Score is a type alias for score representation.