encrepo

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, MIT Imports: 25 Imported by: 2

README


Yolo - The Berty Project

Berty is a secure peer-to-peer messaging app that works with or without internet access, cellular data or trust in the network

Made by Berty Technologies discord github twitter go.dev reference GitHub release

TODO: short headline.

TODO: short intro for non-tech. what is this repo about.

TODO: optional clarification for techs, if the short intro is not enough to understand what is this repo about.

Install

TODO

Getting Started

TODO

Troubleshooting

(please use issues)

Development

TODO

Architecture

TODO

Testing

TODO

Contributing

Contribute to Berty

If you want to help out, please see CONTRIBUTING.md.

This repository falls under the Berty Code of Conduct.

You can contact us on the #dev-💻 channel on discord.

License

Dual-licensed under Apache 2.0 and MIT terms.

SPDX-License-Identifier: (Apache-2.0 OR MIT)

See the COPYRIGHT file for more details.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDatabaseNotFound = errors.New("database not found")
)

Functions

func Init

func Init(dbPath string, key []byte, opts SQLCipherDatastoreOptions, conf *config.Config) error

func IsInitialized

func IsInitialized(dbPath string, key []byte, opts SQLCipherDatastoreOptions) (bool, error)

func KeystoreFromDatastore

func KeystoreFromDatastore(ds datastore.Datastore) keystore.Keystore

func NewNamespacedDatastore

func NewNamespacedDatastore(child ds.Datastore, prefix ds.Key) ds.Batching

func NewSQLCipherDatastore

func NewSQLCipherDatastore(driver, dbPath, table string, key []byte, opts SQLCipherDatastoreOptions) (*sqlds.Datastore, error)

func NewSQLiteDatastore

func NewSQLiteDatastore(driver, dbPath, table string) (*sqlds.Datastore, error)

func Open

func Open(dbPath string, key []byte, opts SQLCipherDatastoreOptions) (repo.Repo, error)

func OpenSQLCipherDatastore

func OpenSQLCipherDatastore(driver, dbPath, table string, key []byte, opts SQLCipherDatastoreOptions) (*sqlds.Datastore, error)

Types

type SQLCipherDatastoreOptions added in v1.1.4

type SQLCipherDatastoreOptions struct {
	PlaintextHeader bool
	Salt            []byte
	JournalMode     string
}

Jump to

Keyboard shortcuts

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