saver

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 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 Item added in v0.13.1

type Item struct {
	Id   string
	Data string
}

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) ListItemsForNode added in v0.13.1

func (s *SQLite3Store) ListItemsForNode(ctx context.Context, nodeId string) ([]*Item, 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