store

package
v2.0.0-...-a2ae2e8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database = func() *leveldb.DB {
	db, err := leveldb.OpenFile("enclave.db", nil)
	if err != nil {
		log.Fatal("could not open database")
	}
	return db
}()

Functions

func CloseDatabase

func CloseDatabase()

func DeleteNotebook

func DeleteNotebook(notebookId []byte) error

func GetNotebook

func GetNotebook(notebookId []byte) (*enclaveProto.EncryptedNotebook, error)

func HasNotebook

func HasNotebook(notebookId []byte) (bool, error)

func PutNotebook

func PutNotebook(notebookId []byte, entry *enclaveProto.EncryptedNotebook, overwrite bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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