Versions in this module Expand all Collapse all v0 v0.0.4 Jul 25, 2020 v0.0.3 Jul 20, 2020 Changes in this version + func DefaultNetwork(dir string) (app.Net, error) + type Database struct + func Open(ctx context.Context, n app.Net, opts ...Option) (*Database, error) + func (x *Database) Close() error + func (x *Database) GetThreadID() thread.ID + func (x *Database) IsolatedRead(f func(r notes.FindLoader) error) error + func (x *Database) IsolatedWrite(f func(rw notes.FindLoadPatcher) error) error + type GetSecret func(key string) (secret []byte, err error) + type Option func(*Options) + func WithBaseDirectory(d string) Option + func WithGetSecret(f GetSecret) Option + func WithPath(p string) Option + func WithSetSecret(f SetSecret) Option + func WithThread(t string) Option + type Options struct + BaseDirectory string + Key string + Thread string + type SetSecret func(key string, secret []byte) error