Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renamed to purbkv #7

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion store/kv/blob.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Blob is a wrapper around libpurb.Purb
package kv
package purbkv

import (
"go.dedis.ch/kyber/v3/group/curve25519"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/bucket.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"slices"
Expand Down
4 changes: 2 additions & 2 deletions store/kv/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (m minimalController) SetCommands(builder node.Builder) {}
// OnStart implements node.Initializer. It opens the database in a file using
// the config path as the base.
func (m minimalController) OnStart(flags cli.Flags, inj node.Injector) error {
db, err := kv.NewDB(flags.String("config"), m.purbIsOn)
db, err := purbkv.NewDB(flags.String("config"), m.purbIsOn)
if err != nil {
return xerrors.Errorf("db: %v", err)
}
Expand All @@ -51,7 +51,7 @@ func (m minimalController) OnStart(flags cli.Flags, inj node.Injector) error {

// OnStop implements node.Initializer. It closes the database.
func (m minimalController) OnStop(inj node.Injector) error {
var db kv.DB
var db purbkv.DB
err := inj.Resolve(&db)
if err != nil {
return xerrors.Errorf("injector: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion store/kv/db.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/db_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/example_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/keyloader.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"bufio"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/keyloader_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/purbdb_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion store/kv/kv.go → store/kv/purbkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// bbolt as the engine (https://github.com/etcd-io/bbolt).
//
// Documentation Last Review: 08.10.2020
package kv
package purbkv

import "go.dedis.ch/dela/core/store"

Expand Down
2 changes: 1 addition & 1 deletion store/kv/transaction.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package kv
package purbkv

import (
"golang.org/x/exp/maps"
Expand Down
Loading