saver

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SCHEMA string

Functions

func StartHTTP

func StartHTTP(store *SQLite3Store, port int) error

Types

type SQLite3Store

type SQLite3Store struct {
	// contains filtered or unexported fields
}

func OpenSQLite3Store

func OpenSQLite3Store(path string) (*SQLite3Store, error)

func (*SQLite3Store) Close

func (s *SQLite3Store) Close() error

func (*SQLite3Store) ReadNodePublicKey added in v0.9.5

func (s *SQLite3Store) ReadNodePublicKey(ctx context.Context, nodeId string) (*crypto.Key, error)

func (*SQLite3Store) WriteItemIfNotExist

func (s *SQLite3Store) WriteItemIfNotExist(ctx context.Context, id, nodeId, data string) error

func (*SQLite3Store) WriteNodePublicKey added in v0.9.5

func (s *SQLite3Store) WriteNodePublicKey(ctx context.Context, nodeId, publicKey string) error

Jump to

Keyboard shortcuts

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